Package org.apache.storm.container.cgroup.core

# Class CpuacctCore

java.lang.Object
org.apache.storm.container.cgroup.core.CpuacctCore

All Implemented Interfaces:
  `CgroupCore`

public class CpuacctCore extends Object implements CgroupCore

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `CpuacctCore.StatType`

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `CPUACCT_STAT`
  `static final String`
  `CPUACCT_USAGE`
  `static final String`
  `CPUACCT_USAGE_PERCPU`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CpuacctCore(String dir)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Map<CpuacctCore.StatType,Long>`
  `getCpuStat()`
  `Long`
  `getCpuUsage()`
  `Long[]`
  `getPerCpuUsage()`
  `SubSystemType`
  `getType()`

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

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

- ## Field Details

  - ### CPUACCT_USAGE

    public static final String CPUACCT_USAGE
    See Also:
      - Constant Field Values

  - ### CPUACCT_STAT

    public static final String CPUACCT_STAT
    See Also:
      - Constant Field Values

  - ### CPUACCT_USAGE_PERCPU

    public static final String CPUACCT_USAGE_PERCPU
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### CpuacctCore

    public CpuacctCore(String dir)

- ## Method Details

  - ### getType

    public SubSystemType getType()
    Specified by:
      `getType` in interface `CgroupCore`

  - ### getCpuUsage

    public Long getCpuUsage() throws IOException
    Throws:
      `IOException`

  - ### getCpuStat

    public Map<CpuacctCore.StatType,Long> getCpuStat() throws IOException
    Throws:
      `IOException`

  - ### getPerCpuUsage

    public Long[] getPerCpuUsage() throws IOException
    Throws:
      `IOException`