public static class OsStats.Cgroup extends java.lang.Object implements Writeable, ToXContent
| Modifier and Type | Class and Description |
|---|---|
static class |
OsStats.Cgroup.CpuStat
Encapsulates CPU time statistics.
|
Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
Cgroup(java.lang.String cpuAcctControlGroup,
long cpuAcctUsageNanos,
java.lang.String cpuControlGroup,
long cpuCfsPeriodMicros,
long cpuCfsQuotaMicros,
OsStats.Cgroup.CpuStat cpuStat) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCpuAcctControlGroup()
The control group for the
cpuacct subsystem. |
long |
getCpuAcctUsageNanos()
The total CPU time consumed by all tasks in the
cpuacct control group from
cpuAcctControlGroup. |
long |
getCpuCfsPeriodMicros()
The period of time for how frequently the control group from
cpuControlGroup has its access to CPU
resources reallocated. |
long |
getCpuCfsQuotaMicros()
The total amount of time for which all tasks in the control
group from
cpuControlGroup can run in one
period as represented by cpuCfsPeriodMicros. |
java.lang.String |
getCpuControlGroup()
The control group for the
cpu subsystem. |
OsStats.Cgroup.CpuStat |
getCpuStat()
The CPU time statistics.
|
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 Cgroup(java.lang.String cpuAcctControlGroup,
long cpuAcctUsageNanos,
java.lang.String cpuControlGroup,
long cpuCfsPeriodMicros,
long cpuCfsQuotaMicros,
OsStats.Cgroup.CpuStat cpuStat)
public java.lang.String getCpuAcctControlGroup()
cpuacct subsystem.public long getCpuAcctUsageNanos()
cpuacct control group from
cpuAcctControlGroup.public java.lang.String getCpuControlGroup()
cpu subsystem.public long getCpuCfsPeriodMicros()
cpuControlGroup has its access to CPU
resources reallocated.public long getCpuCfsQuotaMicros()
cpuControlGroup can run in one
period as represented by cpuCfsPeriodMicros.public OsStats.Cgroup.CpuStat getCpuStat()
OsStats.Cgroup.CpuStat.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