Class CgroupCenter
java.lang.Object
org.apache.storm.container.cgroup.CgroupCenter
- All Implemented Interfaces:
CgroupOperation
-
Method Summary
Modifier 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
-
getHierarchies
Description copied from interface:CgroupOperationGet a list of hierarchies.- Specified by:
getHierarchiesin interfaceCgroupOperation
-
getSubSystems
Description copied from interface:CgroupOperationget a list of available subsystems.- Specified by:
getSubSystemsin interfaceCgroupOperation
-
isSubSystemEnabled
Description copied from interface:CgroupOperationCheck if a subsystem is enabled.- Specified by:
isSubSystemEnabledin interfaceCgroupOperation
-
getHierarchyWithSubSystem
Description copied from interface:CgroupOperationget the first hierarchy that has a certain subsystem isMounted.- Specified by:
getHierarchyWithSubSystemin interfaceCgroupOperation
-
getHierarchyWithSubSystems
Description copied from interface:CgroupOperationget the first hierarchy that has a certain list of subsystems isMounted.- Specified by:
getHierarchyWithSubSystemsin interfaceCgroupOperation
-
isMounted
Description copied from interface:CgroupOperationcheck if a hiearchy is mounted.- Specified by:
isMountedin interfaceCgroupOperation
-
mount
Description copied from interface:CgroupOperationmount a hierarchy.- Specified by:
mountin interfaceCgroupOperation- Throws:
IOException
-
umount
Description copied from interface:CgroupOperationumount a heirarchy.- Specified by:
umountin interfaceCgroupOperation- Throws:
IOException
-
createCgroup
Description copied from interface:CgroupOperationcreate a cgroup.- Specified by:
createCgroupin interfaceCgroupOperation- Throws:
SecurityException
-
deleteCgroup
Description copied from interface:CgroupOperationdelete a cgroup.- Specified by:
deleteCgroupin interfaceCgroupOperation- Throws:
IOException
-