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 CgroupCore
public int getCpuShares() throws IOException
IOException
public void setCpuShares(int weight) throws IOException
IOException
public long getCpuRtRuntimeUs() throws IOException
IOException
public void setCpuRtRuntimeUs(long us) throws IOException
IOException
public Long getCpuRtPeriodUs() throws IOException
IOException
public void setCpuRtPeriodUs(long us) throws IOException
IOException
public Long getCpuCfsPeriodUs() throws IOException
IOException
public void setCpuCfsPeriodUs(long us) throws IOException
IOException
public Long getCpuCfsQuotaUs() throws IOException
IOException
public void setCpuCfsQuotaUs(long us) throws IOException
IOException
public CpuCore.Stat getCpuStat() throws IOException
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.