Class CgroupUtils
java.lang.Object
org.apache.storm.container.cgroup.CgroupUtils
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static boolean
enabled()
static String
static Set<SubSystemType>
Get a set of SubSystemType objects from a comma delimited list of subsystem names.readFileByLine
(String filePath) static String
subSystemsToString
(Set<SubSystemType> subSystems) Get a string that is a comma delimited list of subsystems.static void
writeFileByLine
(String filePath, String lineToWrite) static void
writeFileByLine
(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
-