public class CgroupUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CGROUP_STATUS_FILE |
static String |
MOUNT_STATUS_FILE |
Constructor and Description |
---|
CgroupUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
deleteDir(String dir) |
static boolean |
enabled() |
static String |
getDir(String dir,
String constant) |
static Set<SubSystemType> |
getSubSystemsFromString(String str)
Get a set of SubSystemType objects from a comma delimited list of subsystem names
|
static List<String> |
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,
List<String> linesToWrite) |
static void |
writeFileByLine(String filePath,
String lineToWrite) |
public static final String CGROUP_STATUS_FILE
public static final String MOUNT_STATUS_FILE
public static void deleteDir(String dir)
public static Set<SubSystemType> getSubSystemsFromString(String str)
Get a set of SubSystemType objects from a comma delimited list of subsystem names
public static String subSystemsToString(Set<SubSystemType> subSystems)
Get a string that is a comma delimited list of subsystems
public static boolean enabled()
public static List<String> readFileByLine(String filePath) throws IOException
IOException
public static void writeFileByLine(String filePath, List<String> linesToWrite) throws IOException
IOException
public static void writeFileByLine(String filePath, String lineToWrite) throws IOException
IOException
Copyright © 2019 The Apache Software Foundation. All rights reserved.