Class CpusetCore
java.lang.Object
org.apache.storm.container.cgroup.core.CpusetCore
- All Implemented Interfaces:
CgroupCore
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint[]
getCpus()
int
int[]
getMems()
int
getType()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
static int[]
void
setCpuExclusive
(boolean flag) void
setCpus
(int[] nums) void
setMemExclusive
(boolean flag) void
setMemHardwall
(boolean flag) void
setMemMigrate
(boolean flag) void
setMemPressureEnabled
(boolean flag) void
setMems
(int[] nums) void
setMemSpreadPage
(boolean flag) void
setMemSpreadSlab
(boolean flag) void
setSchedLoadBlance
(boolean flag) void
setSchedRelaxDomainLevel
(int value)
-
Field Details
-
CPUSET_CPUS
- See Also:
-
CPUSET_MEMS
- See Also:
-
CPUSET_MEMORY_MIGRATE
- See Also:
-
CPUSET_CPU_EXCLUSIVE
- See Also:
-
CPUSET_MEM_EXCLUSIVE
- See Also:
-
CPUSET_MEM_HARDWALL
- See Also:
-
CPUSET_MEMORY_PRESSURE
- See Also:
-
CPUSET_MEMORY_PRESSURE_ENABLED
- See Also:
-
CPUSET_MEMORY_SPREAD_PAGE
- See Also:
-
CPUSET_MEMORY_SPREAD_SLAB
- See Also:
-
CPUSET_SCHED_LOAD_BALANCE
- See Also:
-
CPUSET_SCHED_RELAX_DOMAIN_LEVEL
- See Also:
-
-
Constructor Details
-
CpusetCore
-
-
Method Details
-
parseNums
-
getType
- Specified by:
getType
in interfaceCgroupCore
-
getCpus
- Throws:
IOException
-
setCpus
- Throws:
IOException
-
getMems
- Throws:
IOException
-
setMems
- Throws:
IOException
-
isMemMigrate
- Throws:
IOException
-
setMemMigrate
- Throws:
IOException
-
isCpuExclusive
- Throws:
IOException
-
setCpuExclusive
- Throws:
IOException
-
isMemExclusive
- Throws:
IOException
-
setMemExclusive
- Throws:
IOException
-
isMemHardwall
- Throws:
IOException
-
setMemHardwall
- Throws:
IOException
-
getMemPressure
- Throws:
IOException
-
isMemPressureEnabled
- Throws:
IOException
-
setMemPressureEnabled
- Throws:
IOException
-
isMemSpreadPage
- Throws:
IOException
-
setMemSpreadPage
- Throws:
IOException
-
isMemSpreadSlab
- Throws:
IOException
-
setMemSpreadSlab
- Throws:
IOException
-
isSchedLoadBlance
- Throws:
IOException
-
setSchedLoadBlance
- Throws:
IOException
-
getSchedRelaxDomainLevel
- Throws:
IOException
-
setSchedRelaxDomainLevel
- Throws:
IOException
-