public class WindowsPlatform extends Platform
| Constructor and Description |
|---|
WindowsPlatform() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
bgexecInternal(java.lang.String[] cmdarray,
java.lang.String workdir,
java.lang.String logfile)
Starts a background command writing its stdout and stderr to
the specified log file.
|
protected void |
dumpHeap(int pid,
java.lang.String userDir,
java.lang.String options)
Tells a process to dump heap
|
protected boolean |
exists(int pid)
Answers whether a Java process exists with the given PID.
|
protected java.lang.String |
getCommentPrefix()
Returns the comment prefix for shell scripts.
|
protected java.lang.String[] |
getDumpHeapCommand(int pid,
java.lang.String userDir,
java.lang.String options) |
protected java.lang.String |
getDumpLocksCommand(int pid) |
protected java.lang.String |
getFileExtension()
Returns the file extension for shell scripts.
|
protected java.lang.String |
getKillCommand(int pid) |
protected java.lang.String |
getMemoryStatus(int maxWaitSec)
Returns the memory status.
|
protected java.lang.String |
getNetcontrolCommand(java.lang.String target,
int op) |
protected java.lang.String |
getNetworkStatistics(int maxWaitSec)
Returns network statistics.
|
protected java.lang.String |
getPrintStacksCommand(int pid) |
protected java.lang.String |
getProcessStatus(int maxWaitSec)
Returns the process status.
|
protected java.lang.String |
getScriptHeader()
Returns the header for shell scripts.
|
protected java.lang.String |
getShutdownCommand(int pid) |
protected void |
kill(int pid)
Kills a process.
|
protected void |
printStacks(int pid)
Tells a process to print its stacks to its standard output
|
protected void |
restartNTP()
Uses NTP to synchronize the local clock with the network time server.
|
protected void |
setExecutePermission(java.lang.String fn)
Gives user execute permission to the file.
|
protected void |
setReadPermission(java.lang.String dir)
Gives universal read permission to all files in the directory.
|
protected void |
shutdown(int pid) |
protected int bgexecInternal(java.lang.String[] cmdarray,
java.lang.String workdir,
java.lang.String logfile)
throws java.io.IOException
bgexecInternal in class Platformcmdarray - An array of strings that specify the command to run.
The first element must be the executable.
Each additional command line argument should have its own entry
in the array.workdir - the current directory of the created processlogfile - the file the created process will write
stdout and stderr to.java.io.IOException - if a child process could not be created.protected boolean exists(int pid)
protected void shutdown(int pid)
protected void kill(int pid)
Platformprotected void printStacks(int pid)
PlatformprintStacks in class Platformpid - the id of the process that will print its stacksprotected void dumpHeap(int pid,
java.lang.String userDir,
java.lang.String options)
Platformprotected java.lang.String getNetworkStatistics(int maxWaitSec)
PlatformgetNetworkStatistics in class Platformprotected java.lang.String getShutdownCommand(int pid)
getShutdownCommand in class Platformprotected java.lang.String getKillCommand(int pid)
getKillCommand in class Platformprotected java.lang.String getDumpLocksCommand(int pid)
getDumpLocksCommand in class Platformprotected java.lang.String getPrintStacksCommand(int pid)
getPrintStacksCommand in class Platformprotected java.lang.String[] getDumpHeapCommand(int pid,
java.lang.String userDir,
java.lang.String options)
getDumpHeapCommand in class Platformprotected java.lang.String getNetcontrolCommand(java.lang.String target,
int op)
getNetcontrolCommand in class Platformprotected void restartNTP()
PlatformrestartNTP in class Platformprotected java.lang.String getFileExtension()
PlatformgetFileExtension in class Platformprotected java.lang.String getScriptHeader()
PlatformgetScriptHeader in class Platformprotected java.lang.String getCommentPrefix()
PlatformgetCommentPrefix in class Platformprotected void setExecutePermission(java.lang.String fn)
PlatformsetExecutePermission in class Platformprotected void setReadPermission(java.lang.String dir)
PlatformsetReadPermission in class Platformprotected java.lang.String getProcessStatus(int maxWaitSec)
PlatformgetProcessStatus in class Platformprotected java.lang.String getMemoryStatus(int maxWaitSec)
PlatformgetMemoryStatus in class PlatformCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.