public abstract class LinuxCommands extends Object
| Constructor and Description |
|---|
LinuxCommands() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
createNamedPipes(File... files) |
abstract String[] |
decorateWithCPUAffinity(String[] cmd,
String affinity) |
abstract String |
getFileOwner(File f) |
static LinuxCommands |
getInstance() |
abstract String[] |
getRunAsCommand(String user,
String[] cmd) |
abstract String |
getRunningUser() |
abstract long |
getSystemRSSFreeMemory() |
abstract long |
getSystemRSSMemory() |
abstract long |
getSystemRSSUsedMemory() |
abstract long[] |
getTreeRSS(int[] pids) |
abstract void |
killTree(int pid) |
abstract void |
setImmutable(File f,
boolean immutable) |
abstract void |
setNiceness(int pId,
int niceness) |
public static LinuxCommands getInstance()
public abstract void setImmutable(File f, boolean immutable) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract void setNiceness(int pId,
int niceness)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract String[] decorateWithCPUAffinity(String[] cmd, String affinity)
public abstract long[] getTreeRSS(int[] pids)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void killTree(int pid)
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract long getSystemRSSUsedMemory()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract long getSystemRSSFreeMemory()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract long getSystemRSSMemory()
throws IOException,
InterruptedException
IOExceptionInterruptedExceptionpublic abstract void createNamedPipes(File... files) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract String getFileOwner(File f) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract String getRunningUser() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2010–2016. All rights reserved.