Class CpusetCore
java.lang.Object
org.apache.storm.container.cgroup.core.CpusetCore
- All Implemented Interfaces:
CgroupCore
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint[]getCpus()intint[]getMems()intgetType()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanstatic int[]voidsetCpuExclusive(boolean flag) voidsetCpus(int[] nums) voidsetMemExclusive(boolean flag) voidsetMemHardwall(boolean flag) voidsetMemMigrate(boolean flag) voidsetMemPressureEnabled(boolean flag) voidsetMems(int[] nums) voidsetMemSpreadPage(boolean flag) voidsetMemSpreadSlab(boolean flag) voidsetSchedLoadBlance(boolean flag) voidsetSchedRelaxDomainLevel(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:
getTypein 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
-