org.elasticsearch.monitor.network
Class NetworkInfo

java.lang.Object
  extended by org.elasticsearch.monitor.network.NetworkInfo
All Implemented Interfaces:
Serializable, Streamable, ToXContent

public class NetworkInfo
extends Object
implements Streamable, Serializable, ToXContent

See Also:
Serialized Form

Nested Class Summary
static class NetworkInfo.Interface
           
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
static NetworkInfo.Interface NA_INTERFACE
           
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
NetworkInfo()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NA_INTERFACE

public static final NetworkInfo.Interface NA_INTERFACE
Constructor Detail

NetworkInfo

public NetworkInfo()
Method Detail

refreshInterval

public long refreshInterval()

getRefreshInterval

public long getRefreshInterval()

primaryInterface

public NetworkInfo.Interface primaryInterface()

getPrimaryInterface

public NetworkInfo.Interface getPrimaryInterface()

toXContent

public XContentBuilder toXContent(XContentBuilder builder,
                                  ToXContent.Params params)
                           throws IOException
Specified by:
toXContent in interface ToXContent
Throws:
IOException

readNetworkInfo

public static NetworkInfo readNetworkInfo(StreamInput in)
                                   throws IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.