Package org.apache.storm.metrics2.cgroup

## Class CGroupCpu

- java.lang.Object
- - org.apache.storm.metrics2.cgroup.CGroupMetricsBase
  - - org.apache.storm.metrics2.cgroup.CGroupCpu

- All Implemented Interfaces:
    `WorkerMetricRegistrant`

      public class CGroupCpu
      extends CGroupMetricsBase
      implements WorkerMetricRegistrant

  Report CPU used in the cgroup.

- - ### Field Summary

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

      `core, enabled`

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `CGroupCpu​(Map<String,​Object> conf)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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 Detail

    - #### CGroupCpu

          public CGroupCpu​(Map<String,​Object> conf)

  - ### Method Detail

    - #### registerMetrics

          public void registerMetrics​(TopologyContext topologyContext)

      Specified by:
        `registerMetrics` in interface `WorkerMetricRegistrant`