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 ToXContentIOExceptionpublic static NetworkInfo readNetworkInfo(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionCopyright © 2009–2016. All rights reserved.