public class NetworkInfo extends Object implements Streamable, Serializable, ToXContent
Modifier and Type | Class and Description |
---|---|
static class |
NetworkInfo.Interface |
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static NetworkInfo.Interface |
NA_INTERFACE |
EMPTY_PARAMS
Constructor and Description |
---|
NetworkInfo() |
Modifier and Type | Method and Description |
---|---|
NetworkInfo.Interface |
getPrimaryInterface() |
long |
getRefreshInterval() |
NetworkInfo.Interface |
primaryInterface() |
void |
readFrom(StreamInput in) |
static NetworkInfo |
readNetworkInfo(StreamInput in) |
long |
refreshInterval() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static final NetworkInfo.Interface NA_INTERFACE
public long refreshInterval()
public long getRefreshInterval()
public NetworkInfo.Interface primaryInterface()
public NetworkInfo.Interface getPrimaryInterface()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public static NetworkInfo readNetworkInfo(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2015. All rights reserved.