Class CgroupUtils
java.lang.Object
org.apache.storm.container.cgroup.CgroupUtils
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
CgroupUtilspublic CgroupUtils()
 
- 
- 
Method Details- 
deleteDir
- 
getSubSystemsFromStringGet a set of SubSystemType objects from a comma delimited list of subsystem names.
- 
subSystemsToStringGet a string that is a comma delimited list of subsystems.
- 
enabledpublic static boolean enabled()
- 
readFileByLine- Throws:
- IOException
 
- 
writeFileByLine- Throws:
- IOException
 
- 
writeFileByLine- Throws:
- IOException
 
- 
getDir
 
-