org.elasticsearch.monitor.process
Class ProcessInfo

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

public class ProcessInfo
extends java.lang.Object
implements Streamable, java.io.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)
           
 
Method Summary
 long getId()
          The process id.
 long id()
          The process id.
 void readFrom(StreamInput in)
           
static ProcessInfo readProcessInfo(StreamInput in)
           
 void 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)
Method Detail

id

public long id()
The process id.


getId

public long getId()
The process id.


toXContent

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

readProcessInfo

public static ProcessInfo readProcessInfo(StreamInput in)
                                   throws java.io.IOException
Throws:
java.io.IOException

readFrom

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

writeTo

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