public static class OsStats.Cgroup.CpuStat extends java.lang.Object implements Writeable, ToXContentFragment
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_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, waitisFragmentpublic CpuStat(long numberOfElapsedPeriods,
long numberOfTimesThrottled,
long timeThrottledNanos)
public long getNumberOfElapsedPeriods()
cpu.cfs_period_uspublic long getNumberOfTimesThrottled()
public long getTimeThrottledNanos()
public void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOException