Writeable
, ToXContent
, ToXContentFragment
public static class OsStats.Cgroup extends java.lang.Object implements Writeable, ToXContentFragment
Modifier and Type | Class | Description |
---|---|---|
static class |
OsStats.Cgroup.CpuStat |
Encapsulates CPU time statistics.
|
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
EMPTY_PARAMS
Constructor | Description |
---|---|
Cgroup(java.lang.String cpuAcctControlGroup,
long cpuAcctUsageNanos,
java.lang.String cpuControlGroup,
long cpuCfsPeriodMicros,
long cpuCfsQuotaMicros,
OsStats.Cgroup.CpuStat cpuStat,
java.lang.String memoryControlGroup,
java.lang.String memoryLimitInBytes,
java.lang.String memoryUsageInBytes) |
Modifier and Type | Method | 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.
|
java.lang.String |
getMemoryControlGroup() |
The control group for the
memory subsystem. |
java.lang.String |
getMemoryLimitInBytes() |
The maximum amount of user memory (including file cache).
|
java.lang.String |
getMemoryUsageInBytes() |
The total current memory usage by processes in the cgroup (in bytes).
|
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 Cgroup(java.lang.String cpuAcctControlGroup, long cpuAcctUsageNanos, java.lang.String cpuControlGroup, long cpuCfsPeriodMicros, long cpuCfsQuotaMicros, OsStats.Cgroup.CpuStat cpuStat, java.lang.String memoryControlGroup, java.lang.String memoryLimitInBytes, java.lang.String memoryUsageInBytes)
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 java.lang.String getMemoryControlGroup()
memory
subsystem.public java.lang.String getMemoryLimitInBytes()
String
because the value can be too big to fit in a
long
. (The alternative would have been BigInteger
but then
it would not be possible to index the OS stats document into Elasticsearch without
losing information, as BigInteger
is not a supported Elasticsearch type.)public java.lang.String getMemoryUsageInBytes()
String
for consistency with memoryLimitInBytes
.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