public class CpuacctCore extends Object implements CgroupCore
Modifier and Type | Class and Description |
---|---|
static class |
CpuacctCore.StatType |
Modifier and Type | Field and Description |
---|---|
static String |
CPUACCT_STAT |
static String |
CPUACCT_USAGE |
static String |
CPUACCT_USAGE_PERCPU |
Constructor and Description |
---|
CpuacctCore(String dir) |
Modifier and Type | Method and Description |
---|---|
Map<CpuacctCore.StatType,Long> |
getCpuStat() |
Long |
getCpuUsage() |
Long[] |
getPerCpuUsage() |
SubSystemType |
getType() |
public static final String CPUACCT_USAGE
public static final String CPUACCT_STAT
public static final String CPUACCT_USAGE_PERCPU
public CpuacctCore(String dir)
public SubSystemType getType()
getType
in interface CgroupCore
public Long getCpuUsage() throws IOException
IOException
public Map<CpuacctCore.StatType,Long> getCpuStat() throws IOException
IOException
public Long[] getPerCpuUsage() throws IOException
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.