Package org.apache.storm.metrics2.cgroup

# Class CGroupCpuGuarantee

java.lang.Object
org.apache.storm.metrics2.cgroup.CGroupMetricsBase
org.apache.storm.metrics2.cgroup.CGroupCpuGuarantee

All Implemented Interfaces:
  `WorkerMetricRegistrant`

public class CGroupCpuGuarantee extends CGroupMetricsBase implements WorkerMetricRegistrant
Report the guaranteed number of cpu percentage this worker has requested. It gets the result from cpu.shares. Use this when org.apache.storm.container.cgroup.CgroupManager is used as the storm.resource.isolation.plugin.

- ## Field Summary

  ### Fields inherited from class org.apache.storm.metrics2.cgroup.CGroupMetricsBase

  `core, enabled`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CGroupCpuGuarantee(Map<String,Object> conf)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `registerMetrics(TopologyContext topologyContext)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CGroupCpuGuarantee

    public CGroupCpuGuarantee(Map<String,Object> conf)

- ## Method Details

  - ### registerMetrics

    public void registerMetrics(TopologyContext topologyContext)
    Specified by:
      `registerMetrics` in interface `WorkerMetricRegistrant`