public class CpuCore extends Object implements CgroupCore
| Modifier and Type | Class and Description |
|---|---|
static class |
CpuCore.Stat |
| Modifier and Type | Field and Description |
|---|---|
static String |
CPU_CFS_PERIOD_US |
static String |
CPU_CFS_QUOTA_US |
static String |
CPU_RT_PERIOD_US |
static String |
CPU_RT_RUNTIME_US |
static String |
CPU_SHARES |
static String |
CPU_STAT |
| Modifier and Type | Method and Description |
|---|---|
Long |
getCpuCfsPeriodUs() |
Long |
getCpuCfsQuotaUs() |
Long |
getCpuRtPeriodUs() |
long |
getCpuRtRuntimeUs() |
int |
getCpuShares() |
CpuCore.Stat |
getCpuStat() |
SubSystemType |
getType() |
void |
setCpuCfsPeriodUs(long us) |
void |
setCpuCfsQuotaUs(long us) |
void |
setCpuRtPeriodUs(long us) |
void |
setCpuRtRuntimeUs(long us) |
void |
setCpuShares(int weight) |
public static final String CPU_SHARES
public static final String CPU_RT_RUNTIME_US
public static final String CPU_RT_PERIOD_US
public static final String CPU_CFS_PERIOD_US
public static final String CPU_CFS_QUOTA_US
public static final String CPU_STAT
public CpuCore(String dir)
public SubSystemType getType()
getType in interface CgroupCorepublic int getCpuShares()
throws IOException
IOExceptionpublic void setCpuShares(int weight)
throws IOException
IOExceptionpublic long getCpuRtRuntimeUs()
throws IOException
IOExceptionpublic void setCpuRtRuntimeUs(long us)
throws IOException
IOExceptionpublic Long getCpuRtPeriodUs() throws IOException
IOExceptionpublic void setCpuRtPeriodUs(long us)
throws IOException
IOExceptionpublic Long getCpuCfsPeriodUs() throws IOException
IOExceptionpublic void setCpuCfsPeriodUs(long us)
throws IOException
IOExceptionpublic Long getCpuCfsQuotaUs() throws IOException
IOExceptionpublic void setCpuCfsQuotaUs(long us)
throws IOException
IOExceptionpublic CpuCore.Stat getCpuStat() throws IOException
IOExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.