public class HostAgent extends UnicastRemoteObject implements HostAgentIF, Runnable
ref| Modifier and Type | Method and Description |
|---|---|
int |
bgexec(String command,
File workdir,
File logfile) |
void |
dumpHeap(int pid,
String userDir,
String options) |
boolean |
exists(int pid) |
String |
fgexec(String[] command,
int maxWaitSec) |
String |
fgexec(String command,
int maxWaitSec) |
String |
fgexec(String command,
String[] envp,
int maxWaitSec) |
String[] |
getDumpHeapCommand(int pid,
String userDir,
String options) |
String |
getDumpLocksCommand(int pid) |
String |
getKillCommand(int pid) |
String |
getNetcontrolCommand(String target,
int op) |
String |
getPrintStacksCommand(int pid) |
String |
getProcessStatus(int maxWaitSec) |
String |
getShutdownCommand(int pid) |
void |
kill(int pid) |
static void |
main(String[] args)
The startup routine for this host agent.
|
void |
printStacks(int pid) |
void |
run()
Initializes and registers with the master controller.
|
void |
shutdown(int pid) |
void |
shutDownHostAgent() |
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic void run()
public int bgexec(String command, File workdir, File logfile) throws RemoteException
bgexec in interface HostAgentIFRemoteExceptionpublic String fgexec(String command, int maxWaitSec) throws RemoteException
fgexec in interface HostAgentIFRemoteExceptionpublic String fgexec(String command, String[] envp, int maxWaitSec) throws RemoteException
fgexec in interface HostAgentIFRemoteExceptionpublic String fgexec(String[] command, int maxWaitSec) throws RemoteException
fgexec in interface HostAgentIFRemoteExceptionpublic boolean exists(int pid)
throws RemoteException
exists in interface HostAgentIFRemoteExceptionpublic void shutdown(int pid)
throws RemoteException
shutdown in interface HostAgentIFRemoteExceptionpublic void kill(int pid)
throws RemoteException
kill in interface HostAgentIFRemoteExceptionpublic void printStacks(int pid)
throws RemoteException
printStacks in interface HostAgentIFRemoteExceptionpublic void dumpHeap(int pid,
String userDir,
String options)
throws RemoteException
dumpHeap in interface HostAgentIFRemoteExceptionpublic String getShutdownCommand(int pid) throws RemoteException
getShutdownCommand in interface HostAgentIFRemoteExceptionpublic String getKillCommand(int pid) throws RemoteException
getKillCommand in interface HostAgentIFRemoteExceptionpublic String getDumpLocksCommand(int pid) throws RemoteException
getDumpLocksCommand in interface HostAgentIFRemoteExceptionpublic String getPrintStacksCommand(int pid) throws RemoteException
getPrintStacksCommand in interface HostAgentIFRemoteExceptionpublic String[] getDumpHeapCommand(int pid, String userDir, String options) throws RemoteException
getDumpHeapCommand in interface HostAgentIFRemoteExceptionpublic String getNetcontrolCommand(String target, int op) throws RemoteException
getNetcontrolCommand in interface HostAgentIFRemoteExceptionpublic String getProcessStatus(int maxWaitSec) throws RemoteException
getProcessStatus in interface HostAgentIFRemoteExceptionpublic void shutDownHostAgent()
throws RemoteException
shutDownHostAgent in interface HostAgentIFRemoteExceptionpublic static void main(String[] args)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.