public static class OsStats.Cgroup.CpuStat extends java.lang.Object implements Writeable, ToXContent
Writeable.Reader<V>, Writeable.Writer<V>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
CpuStat(long numberOfElapsedPeriods,
long numberOfTimesThrottled,
long timeThrottledNanos) |
Modifier and Type | Method and Description |
---|---|
long |
getNumberOfElapsedPeriods()
The number of elapsed periods.
|
long |
getNumberOfTimesThrottled()
The number of times tasks in the control group have been
throttled.
|
long |
getTimeThrottledNanos()
The total time duration for which tasks in the control
group have been throttled.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFragment
public CpuStat(long numberOfElapsedPeriods, long numberOfTimesThrottled, long timeThrottledNanos)
public long getNumberOfElapsedPeriods()
cpu.cfs_period_us
public long getNumberOfTimesThrottled()
public long getTimeThrottledNanos()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeable
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException