public interface CgroupOperation
Modifier and Type | Method and Description |
---|---|
void |
createCgroup(CgroupCommon cgroup)
create a cgroup.
|
void |
deleteCgroup(CgroupCommon cgroup)
delete a cgroup.
|
List<Hierarchy> |
getHierarchies()
Get a list of hierarchies.
|
Hierarchy |
getHierarchyWithSubSystem(SubSystemType subsystem)
get the first hierarchy that has a certain subsystem isMounted.
|
Hierarchy |
getHierarchyWithSubSystems(List<SubSystemType> subSystems)
get the first hierarchy that has a certain list of subsystems isMounted.
|
Set<SubSystem> |
getSubSystems()
get a list of available subsystems.
|
boolean |
isMounted(Hierarchy hierarchy)
check if a hiearchy is mounted.
|
boolean |
isSubSystemEnabled(SubSystemType subsystem)
Check if a subsystem is enabled.
|
void |
mount(Hierarchy hierarchy)
mount a hierarchy.
|
void |
umount(Hierarchy hierarchy)
umount a heirarchy.
|
boolean isSubSystemEnabled(SubSystemType subsystem)
Hierarchy getHierarchyWithSubSystem(SubSystemType subsystem)
Hierarchy getHierarchyWithSubSystems(List<SubSystemType> subSystems)
boolean isMounted(Hierarchy hierarchy)
void mount(Hierarchy hierarchy) throws IOException
IOException
void umount(Hierarchy hierarchy) throws IOException
IOException
void createCgroup(CgroupCommon cgroup) throws SecurityException
SecurityException
void deleteCgroup(CgroupCommon cgroup) throws IOException
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.