org.apache.storm.metric.cgroup

## Class CGroupCpu

- java.lang.Object
- - org.apache.storm.metric.cgroup.CGroupMetricsBase<Map<String,Long>>
  - - org.apache.storm.metric.cgroup.CGroupCpu

- All Implemented Interfaces:
    IMetric

      public class CGroupCpu
      extends CGroupMetricsBase<Map<String,Long>>

  Report CPU used in the cgroup.

- - ### Constructor Summary

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

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Map<String,Long>` | `getDataFrom(CgroupCore core)`
    `int` | `getUserHZ()`

    - ### Methods inherited from class org.apache.storm.metric.cgroup.CGroupMetricsBase

      `getValueAndReset`

    - ### 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

    - #### getUserHZ

          public int getUserHZ()
                        throws IOException

      Throws:
        `IOException`

    - #### getDataFrom

          public Map<String,Long> getDataFrom(CgroupCore core)
                                       throws IOException

      Specified by:
        `getDataFrom` in class `CGroupMetricsBase<Map<String,Long>>`
      Throws:
        `IOException`

Copyright © 2019 The Apache Software Foundation. All rights reserved.