org.elasticsearch.monitor.process
Class ProcessInfo

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

public class ProcessInfo
extends Object
implements Streamable, Serializable, ToXContent

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
ProcessInfo(long id, long maxFileDescriptors)
           
 
Method Summary
 long getId()
          The process id.
 long getMaxFileDescriptors()
           
 long getRefreshInterval()
           
 long id()
          The process id.
 long maxFileDescriptors()
           
 void readFrom(StreamInput in)
           
static ProcessInfo readProcessInfo(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
 

Constructor Detail

ProcessInfo

public ProcessInfo(long id,
                   long maxFileDescriptors)
Method Detail

refreshInterval

public long refreshInterval()

getRefreshInterval

public long getRefreshInterval()

id

public long id()
The process id.


getId

public long getId()
The process id.


maxFileDescriptors

public long maxFileDescriptors()

getMaxFileDescriptors

public long getMaxFileDescriptors()

toXContent

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

readProcessInfo

public static ProcessInfo readProcessInfo(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.