Class Cpu
- java.lang.Object
-
- org.apache.druid.java.util.metrics.cgroups.Cpu
-
public class Cpu extends Object
Collect CPU share and quota information from cpu cgroup files.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Cpu.CpuAllocationMetric
-
Constructor Summary
Constructors Constructor Description Cpu(CgroupDiscoverer cgroupDiscoverer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cpu.CpuAllocationMetric
snapshot()
Take a snapshot of cpu cgroup data
-
-
-
Constructor Detail
-
Cpu
public Cpu(CgroupDiscoverer cgroupDiscoverer)
-
-
Method Detail
-
snapshot
public Cpu.CpuAllocationMetric snapshot()
Take a snapshot of cpu cgroup data- Returns:
- A snapshot with the data populated.
-
-