Class SystemOperation
- java.lang.Object
-
- org.apache.storm.container.cgroup.SystemOperation
-
public class SystemOperation extends Object
A class that implements system operations for using cgroups.
-
-
Constructor Summary
Constructors Constructor Description SystemOperation()
-
-
-
Method Detail
-
isRoot
public static boolean isRoot() throws IOException
- Throws:
IOException
-
mount
public static void mount(String name, String target, String type, String options) throws IOException
- Throws:
IOException
-
umount
public static void umount(String pathToDir) throws IOException
- Throws:
IOException
-
exec
public static String exec(String cmd) throws IOException
- Throws:
IOException
-
-