|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.dyade.aaa.agent.SCAdminHelper
| Field Summary | |
protected java.util.Hashtable |
ASP
Hashtable that contain all Process of running AgentServer |
protected org.objectweb.util.monolog.api.Logger |
logmon
|
| Constructor Summary | |
SCAdminHelper()
|
|
| Method Summary | |
void |
crashAgentServer(short sid,
int port)
Stops violently an agent server from its id. |
void |
crashAgentServer(short sid,
java.lang.String host,
int port)
Stops violently an agent server from its id. |
void |
destroyAgentServer(short sid)
Kill an agent server and remove it from the ASP table. |
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. |
java.lang.String |
startAgentServer(short sid)
Starts an agent server from its id. |
java.lang.String |
startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg)
Starts an agent server from its id. |
java.lang.String |
startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg,
java.lang.String[] servarg)
|
java.lang.String |
startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg,
java.lang.String className,
java.lang.String[] servarg)
Starts an agent server from its id. |
java.lang.String |
startAgentServer(short sid,
java.lang.String[] jvmarg)
Starts an agent server from its id. |
void |
stopAgentServer(short sid,
int port)
Stops cleanly an agent server from its id. |
void |
stopAgentServer(short sid,
java.lang.String host,
int port)
Stops cleanly an agent server from its id. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.util.Hashtable ASP
Process of running AgentServer
protected org.objectweb.util.monolog.api.Logger logmon
| Constructor Detail |
public SCAdminHelper()
| Method Detail |
public java.lang.String startAgentServer(short sid)
throws java.lang.Exception
sid - id of agent server to start
java.lang.Exception
public java.lang.String startAgentServer(short sid,
java.lang.String[] jvmarg)
throws java.lang.Exception
sid - id of agent server to startjvmarg - arguments to pass to the created java program
java.lang.Exception
public java.lang.String startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg)
throws java.lang.Exception
sid - id of agent server to startdir - new working directory for the created agent server,
current working directory if nulljvmarg - arguments to pass to the created java program
java.lang.Exception
public java.lang.String startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg,
java.lang.String[] servarg)
throws java.lang.Exception
java.lang.Exception
public java.lang.String startAgentServer(short sid,
java.io.File dir,
java.lang.String[] jvmarg,
java.lang.String className,
java.lang.String[] servarg)
throws java.lang.Exception
sid - id of agent server to startdir - new working directory for the created agent server,
current working directory if nulljvmarg - arguments to pass to the created java programclassName - the name of the main classservarg - additional arguments to pass to the created java program
java.lang.Exception
public void killAgentServer(short sid)
throws java.lang.Exception
sid - id of agent server to stop
java.lang.Exception
public int joinAgentServer(short sid)
throws java.lang.Exception
sid - id of agent server to stop
UnknownServerException - if the agent server is unknown.
java.lang.Exception
public int exitValue(short sid)
throws java.lang.IllegalThreadStateException,
UnknownServerException
sid - id of agent server to stop
java.lang.IllegalThreadStateException - if the agent server is still running.
UnknownServerException - if the agent server is unknown.
public void destroyAgentServer(short sid)
throws java.lang.Exception
sid - id of agent server to stop
java.lang.Exception
public void stopAgentServer(short sid,
int port)
throws java.lang.Exception
sid - id of agent server to stopport - port of the corresponding AdminProxy.
java.lang.Exception
public void stopAgentServer(short sid,
java.lang.String host,
int port)
throws java.lang.Exception
sid - id of agent server to stophost - hostname of the agent server.port - port of the corresponding AdminProxy.
java.lang.Exception
public void crashAgentServer(short sid,
int port)
throws java.lang.Exception
sid - id of agent server to stopport - port of the corresponding AdminProxy.
java.lang.Exception
public void crashAgentServer(short sid,
java.lang.String host,
int port)
throws java.lang.Exception
sid - id of agent server to stophost - hostname of the agent server.port - port of the corresponding AdminProxy.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||