fr.dyade.aaa.agent
Class SCAdminBase
java.lang.Object
fr.dyade.aaa.agent.SCAdminBase
public class SCAdminBase
extends java.lang.Object
void | crashAgentServer(short sid) - Stops violently an agent server from its id.
|
int | exitValue(short sid) - Ask for the exit value of an agent server.
|
int | joinAgentServer(short sid) - Causes the current thread to wait, if necessary, until the process
running this agent server has terminated.
|
void | killAgentServer(short sid) - Kills this agent server process.
|
String | startAgentServer(short sid) - Starts an agent server from its id.
|
String | startAgentServer(short sid, File dir)
|
String | startAgentServer(short sid, File dir, String[] jvmargs)
|
String | startAgentServer(short sid, File dir, String[] jvmargs, String[] servargs)
|
void | stopAgentServer(short sid) - Stops cleanly an agent server from its id.
|
void | update() - Updates the configuration.
|
void | update(String path)
|
logmon
protected Logger logmon
SCAdminBase
public SCAdminBase()
SCAdminBase
public SCAdminBase(String path)
throws Exception
crashAgentServer
public void crashAgentServer(short sid)
throws Exception
Stops violently an agent server from its id.
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)
throws Exception
startAgentServer
public String startAgentServer(short sid,
File dir,
String[] jvmargs)
throws Exception
startAgentServer
public String startAgentServer(short sid,
File dir,
String[] jvmargs,
String[] servargs)
throws Exception
stopAgentServer
public void stopAgentServer(short sid)
throws Exception
Stops cleanly an agent server from its id.
sid
- id of agent server to stop
update
public void update()
throws Exception
Updates the configuration.
update
public void update(String path)
throws Exception
Copyright B) 2004 Scalagent - All rights reserved