public final class CachingLinuxCommands extends LinuxCommands
| Constructor and Description |
|---|
CachingLinuxCommands(LinuxCommands commands) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNamedPipes(File... files) |
String[] |
decorateWithCPUAffinity(String[] cmd,
String affinity) |
String |
getFileOwner(File f) |
String[] |
getRunAsCommand(String user,
String[] cmd) |
String |
getRunningUser() |
long |
getSystemRSSFreeMemory() |
long |
getSystemRSSMemory() |
long |
getSystemRSSUsedMemory() |
long[] |
getTreeRSS(int[] pIds) |
void |
killTree(int pid) |
void |
setImmutable(File f,
boolean immutable) |
void |
setNiceness(int pId,
int niceness) |
getInstancepublic CachingLinuxCommands(LinuxCommands commands)
public void setNiceness(int pId,
int niceness)
throws IOException,
InterruptedException
setNiceness in class LinuxCommandsIOExceptionInterruptedExceptionpublic void setImmutable(File f, boolean immutable) throws IOException, InterruptedException
setImmutable in class LinuxCommandsIOExceptionInterruptedExceptionpublic void killTree(int pid)
throws IOException,
InterruptedException
killTree in class LinuxCommandsIOExceptionInterruptedExceptionpublic String[] decorateWithCPUAffinity(String[] cmd, String affinity)
decorateWithCPUAffinity in class LinuxCommandspublic long[] getTreeRSS(int[] pIds)
throws IOException,
InterruptedException
getTreeRSS in class LinuxCommandsIOExceptionInterruptedExceptionpublic long getSystemRSSUsedMemory()
throws IOException,
InterruptedException
getSystemRSSUsedMemory in class LinuxCommandsIOExceptionInterruptedExceptionpublic long getSystemRSSFreeMemory()
throws IOException,
InterruptedException
getSystemRSSFreeMemory in class LinuxCommandsIOExceptionInterruptedExceptionpublic long getSystemRSSMemory()
throws IOException,
InterruptedException
getSystemRSSMemory in class LinuxCommandsIOExceptionInterruptedExceptionpublic String getFileOwner(File f) throws IOException, InterruptedException
getFileOwner in class LinuxCommandsIOExceptionInterruptedExceptionpublic String getRunningUser() throws IOException, InterruptedException
getRunningUser in class LinuxCommandsIOExceptionInterruptedExceptionpublic String[] getRunAsCommand(String user, String[] cmd)
getRunAsCommand in class LinuxCommandspublic void createNamedPipes(File... files) throws IOException, InterruptedException
createNamedPipes in class LinuxCommandsIOExceptionInterruptedExceptionCopyright © 2010–2016. All rights reserved.