Class CgroupCenter
java.lang.Object
org.apache.storm.container.cgroup.CgroupCenter
- All Implemented Interfaces:
- CgroupOperation
- 
Method SummaryModifier and TypeMethodDescriptionvoidcreateCgroup(CgroupCommon cgroup) create a cgroup.voiddeleteCgroup(CgroupCommon cgroup) delete a cgroup.Get a list of hierarchies.getHierarchyWithSubSystem(SubSystemType subSystem) get the first hierarchy that has a certain subsystem isMounted.getHierarchyWithSubSystems(List<SubSystemType> subSystems) get the first hierarchy that has a certain list of subsystems isMounted.static CgroupCenterget a list of available subsystems.booleancheck if a hiearchy is mounted.booleanisSubSystemEnabled(SubSystemType subSystemType) Check if a subsystem is enabled.voidmount a hierarchy.voidumount a heirarchy.
- 
Method Details- 
getInstance
- 
getHierarchiesDescription copied from interface:CgroupOperationGet a list of hierarchies.- Specified by:
- getHierarchiesin interface- CgroupOperation
 
- 
getSubSystemsDescription copied from interface:CgroupOperationget a list of available subsystems.- Specified by:
- getSubSystemsin interface- CgroupOperation
 
- 
isSubSystemEnabledDescription copied from interface:CgroupOperationCheck if a subsystem is enabled.- Specified by:
- isSubSystemEnabledin interface- CgroupOperation
 
- 
getHierarchyWithSubSystemDescription copied from interface:CgroupOperationget the first hierarchy that has a certain subsystem isMounted.- Specified by:
- getHierarchyWithSubSystemin interface- CgroupOperation
 
- 
getHierarchyWithSubSystemsDescription copied from interface:CgroupOperationget the first hierarchy that has a certain list of subsystems isMounted.- Specified by:
- getHierarchyWithSubSystemsin interface- CgroupOperation
 
- 
isMountedDescription copied from interface:CgroupOperationcheck if a hiearchy is mounted.- Specified by:
- isMountedin interface- CgroupOperation
 
- 
mountDescription copied from interface:CgroupOperationmount a hierarchy.- Specified by:
- mountin interface- CgroupOperation
- Throws:
- IOException
 
- 
umountDescription copied from interface:CgroupOperationumount a heirarchy.- Specified by:
- umountin interface- CgroupOperation
- Throws:
- IOException
 
- 
createCgroupDescription copied from interface:CgroupOperationcreate a cgroup.- Specified by:
- createCgroupin interface- CgroupOperation
- Throws:
- SecurityException
 
- 
deleteCgroupDescription copied from interface:CgroupOperationdelete a cgroup.- Specified by:
- deleteCgroupin interface- CgroupOperation
- Throws:
- IOException
 
 
-