crashAgentServer
public void crashAgentServer(short sid,
String host,
int port)
throws Exception
Stops violently an agent server from its id.
sid
- id of agent server to stophost
- hostname of the agent server.port
- port of the corresponding AdminProxy.
crashAgentServer
public void crashAgentServer(short sid,
int port)
throws Exception
Stops violently an agent server from its id.
sid
- id of agent server to stopport
- port of the corresponding AdminProxy.
destroyAgentServer
public void destroyAgentServer(short sid)
throws Exception
Kill an agent server and remove it from the ASP table.
sid
- id of agent server to stop
exitValue
public int exitValue(short sid)
throws IllegalThreadStateException,
UnknownServerException
Ask for the exit value of an agent server.
sid
- id of agent server to stop
- the exit value of the agent server.
UnknownServerException
- if the agent server is unknown.
joinAgentServer
public int joinAgentServer(short sid)
throws Exception
Causes the current thread to wait, if necessary, until the process
running this agent server has terminated.
sid
- id of agent server to stop
- the exit value of the agent server.
killAgentServer
public void killAgentServer(short sid)
throws Exception
Kills this agent server process.
sid
- id of agent server to stop
startAgentServer
public String startAgentServer(short sid)
throws Exception
Starts an agent server from its id.
sid
- id of agent server to start
startAgentServer
public String startAgentServer(short sid,
File dir,
String[] jvmarg)
throws Exception
Starts an agent server from its id.
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmarg
- arguments to pass to the created java program
startAgentServer
public String startAgentServer(short sid,
File dir,
String[] jvmarg,
String className,
String[] servarg)
throws Exception
Starts an agent server from its id.
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmarg
- arguments to pass to the created java programclassName
- the name of the main classservarg
- additional arguments to pass to the created java program
startAgentServer
public String startAgentServer(short sid,
File dir,
String[] jvmarg,
String[] servarg)
throws Exception
startAgentServer
public String startAgentServer(short sid,
String[] jvmarg)
throws Exception
Starts an agent server from its id.
sid
- id of agent server to startjvmarg
- arguments to pass to the created java program
stopAgentServer
public void stopAgentServer(short sid,
String host,
int port)
throws Exception
Stops cleanly an agent server from its id.
sid
- id of agent server to stophost
- hostname of the agent server.port
- port of the corresponding AdminProxy.
stopAgentServer
public void stopAgentServer(short sid,
int port)
throws Exception
Stops cleanly an agent server from its id.
sid
- id of agent server to stopport
- port of the corresponding AdminProxy.