Class CgroupUtils
java.lang.Object
org.apache.storm.container.cgroup.CgroupUtils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanenabled()static Stringstatic Set<SubSystemType>Get a set of SubSystemType objects from a comma delimited list of subsystem names.readFileByLine(String filePath) static StringsubSystemsToString(Set<SubSystemType> subSystems) Get a string that is a comma delimited list of subsystems.static voidwriteFileByLine(String filePath, String lineToWrite) static voidwriteFileByLine(String filePath, List<String> linesToWrite)
-
Field Details
-
CGROUP_STATUS_FILE
- See Also:
-
MOUNT_STATUS_FILE
- See Also:
-
-
Constructor Details
-
CgroupUtils
public CgroupUtils()
-
-
Method Details
-
deleteDir
-
getSubSystemsFromString
Get a set of SubSystemType objects from a comma delimited list of subsystem names. -
subSystemsToString
Get a string that is a comma delimited list of subsystems. -
enabled
public static boolean enabled() -
readFileByLine
- Throws:
IOException
-
writeFileByLine
- Throws:
IOException
-
writeFileByLine
- Throws:
IOException
-
getDir
-