Interface CgroupOperation
- All Known Implementing Classes:
- CgroupCenter
public interface CgroupOperation
An interface to implement the basic functions to manage cgroups such as mount and mounting a hiearchy and creating cgroups.  Also
 contains functions to access basic information of cgroups.
- 
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.get a list of available subsystems.booleancheck if a hiearchy is mounted.booleanisSubSystemEnabled(SubSystemType subsystem) Check if a subsystem is enabled.voidmount a hierarchy.voidumount a heirarchy.
- 
Method Details- 
getHierarchiesGet a list of hierarchies.
- 
getSubSystemsget a list of available subsystems.
- 
isSubSystemEnabledCheck if a subsystem is enabled.
- 
getHierarchyWithSubSystemget the first hierarchy that has a certain subsystem isMounted.
- 
getHierarchyWithSubSystemsget the first hierarchy that has a certain list of subsystems isMounted.
- 
isMountedcheck if a hiearchy is mounted.
- 
mountmount a hierarchy.- Throws:
- IOException
 
- 
umountumount a heirarchy.- Throws:
- IOException
 
- 
createCgroupcreate a cgroup.- Throws:
- SecurityException
 
- 
deleteCgroupdelete a cgroup.- Throws:
- IOException
 
 
-