Class ProcessInfo
java.lang.Object
org.elasticsearch.monitor.process.ProcessInfo
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentFragment
public class ProcessInfo extends java.lang.Object implements Writeable, ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
-
Constructor Summary
Constructors Constructor Description ProcessInfo(long id, boolean mlockall, long refreshInterval)ProcessInfo(StreamInput in) -
Method Summary
Modifier and Type Method Description longgetId()The process id.longgetRefreshInterval()booleanisMlockall()longrefreshInterval()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
ProcessInfo
public ProcessInfo(long id, boolean mlockall, long refreshInterval) -
ProcessInfo
- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
refreshInterval
public long refreshInterval() -
getRefreshInterval
public long getRefreshInterval() -
getId
public long getId()The process id. -
isMlockall
public boolean isMlockall() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-