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 TypeMethodDescriptionvoid
createCgroup
(CgroupCommon cgroup) create a cgroup.void
deleteCgroup
(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.boolean
check if a hiearchy is mounted.boolean
isSubSystemEnabled
(SubSystemType subsystem) Check if a subsystem is enabled.void
mount a hierarchy.void
umount 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
-