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 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.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
-
getHierarchies
Get a list of hierarchies. -
getSubSystems
get a list of available subsystems. -
isSubSystemEnabled
Check if a subsystem is enabled. -
getHierarchyWithSubSystem
get the first hierarchy that has a certain subsystem isMounted. -
getHierarchyWithSubSystems
get the first hierarchy that has a certain list of subsystems isMounted. -
isMounted
check if a hiearchy is mounted. -
mount
mount a hierarchy.- Throws:
IOException
-
umount
umount a heirarchy.- Throws:
IOException
-
createCgroup
create a cgroup.- Throws:
SecurityException
-
deleteCgroup
delete a cgroup.- Throws:
IOException
-