public class ExtendedProcessCpuStats
extends java.lang.Object
implements org.elasticsearch.common.io.stream.Streamable
Constructor and Description |
---|
ExtendedProcessCpuStats() |
ExtendedProcessCpuStats(short percent,
long sys,
long user,
long total) |
Modifier and Type | Method and Description |
---|---|
short |
percent()
Get the Process cpu usage.
|
void |
percent(short percent) |
static ExtendedProcessCpuStats |
readExtendedProcessCpuStats(org.elasticsearch.common.io.stream.StreamInput in) |
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
org.elasticsearch.common.unit.TimeValue |
sys()
Get the Process cpu kernel time.
|
void |
sys(org.elasticsearch.common.unit.TimeValue sys) |
org.elasticsearch.common.unit.TimeValue |
total()
Get the Process cpu time (sum of User and Sys).
|
void |
total(org.elasticsearch.common.unit.TimeValue total) |
org.elasticsearch.common.unit.TimeValue |
user()
Get the Process cpu user time.
|
void |
user(org.elasticsearch.common.unit.TimeValue user) |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public ExtendedProcessCpuStats()
public ExtendedProcessCpuStats(short percent, long sys, long user, long total)
public static ExtendedProcessCpuStats readExtendedProcessCpuStats(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
java.io.IOException
public short percent()
Supported Platforms: All.
public void percent(short percent)
public org.elasticsearch.common.unit.TimeValue sys()
Supported Platforms: All.
public void sys(org.elasticsearch.common.unit.TimeValue sys)
public org.elasticsearch.common.unit.TimeValue user()
Supported Platforms: All.
public void user(org.elasticsearch.common.unit.TimeValue user)
public org.elasticsearch.common.unit.TimeValue total()
public void total(org.elasticsearch.common.unit.TimeValue total)
public void readFrom(org.elasticsearch.common.io.stream.StreamInput in) throws java.io.IOException
readFrom
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out) throws java.io.IOException
writeTo
in interface org.elasticsearch.common.io.stream.Streamable
java.io.IOException