Package fr.dyade.aaa.agent
Class SCAdminBase
- java.lang.Object
-
- fr.dyade.aaa.agent.SCAdminBase
-
@Deprecated public class SCAdminBase extends Object
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected A3CMLConfiga3configDeprecated.protected LoggerlogmonDeprecated.protected SCAdminHelperscadminDeprecated.
-
Constructor Summary
Constructors Constructor Description SCAdminBase()Deprecated.SCAdminBase(String path)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcloseServerStream(Process p)Deprecated.Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.voidcrashAgentServer(short sid)Deprecated.Stops violently an agent server from its id.ProcessexecAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args)Deprecated.Runs an agent server from its id and specific parameters.intexitValue(short sid)Deprecated.Ask for the exit value of an agent server.intjoinAgentServer(short sid)Deprecated.Causes the current thread to wait, if necessary, until the process running this agent server has terminated.voidkillAgentServer(short sid)Deprecated.Kills this agent server process.StringstartAgentServer(short sid)Deprecated.Starts an agent server from its id.StringstartAgentServer(short sid, File dir)Deprecated.Starts an agent server from its id using specific storage directory.StringstartAgentServer(short sid, File dir, String[] jvmargs)Deprecated.Starts an agent server from its id using specific jvmargs and storage directory.StringstartAgentServer(short sid, File dir, String[] jvmargs, String[] servargs)Deprecated.Starts an agent server from its id using specific jvmargs and storage directory.StringstartAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args)Deprecated.Starts an agent server from its id.voidstopAgentServer(short sid)Deprecated.Stops cleanly an agent server from its id.voidupdate()Deprecated.Updates the configuration.voidupdate(String path)Deprecated.StringwaitServerStarting(Process p)Deprecated.Waits for the starting of an AgentServer pointed out by its process.
-
-
-
Field Detail
-
a3config
protected A3CMLConfig a3config
Deprecated.
-
logmon
protected Logger logmon
Deprecated.
-
scadmin
protected SCAdminHelper scadmin
Deprecated.
-
-
Method Detail
-
startAgentServer
public String startAgentServer(short sid) throws Exception
Deprecated.Starts an agent server from its id.- Parameters:
sid- id of agent server to start- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
startAgentServer
public String startAgentServer(short sid, File dir) throws Exception
Deprecated.Starts an agent server from its id using specific storage directory. JVM arguments are initialized from A3 configuration.- Parameters:
sid- id of agent server to startdir- new working directory for the created agent server, current working directory ifnull- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
startAgentServer
public String startAgentServer(short sid, File dir, String[] jvmargs) throws Exception
Deprecated.Starts an agent server from its id using specific jvmargs and storage directory.- Parameters:
sid- id of agent server to startdir- new working directory for the created agent server, current working directory ifnulljvmargs- arguments to pass to the created java program- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
startAgentServer
public String startAgentServer(short sid, File dir, String[] jvmargs, String[] servargs) throws Exception
Deprecated.Starts an agent server from its id using specific jvmargs and storage directory.- Parameters:
sid- id of agent server to startdir- new working directory for the created agent server, current working directory ifnulljvmargs- arguments to pass to the created java programservargs- additional arguments to pass to the created java program- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
startAgentServer
public String startAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception
Deprecated.Starts an agent server from its id.- Parameters:
sid- id of agent server to startdir- new working directory for the created agent server, current working directory ifnulljvmargs- arguments to pass to the created java programclassName- the name of the main classargs- additional arguments to pass to the created java program- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
execAgentServer
public Process execAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception
Deprecated.Runs an agent server from its id and specific parameters.- Parameters:
sid- id of agent server to startdir- new working directory for the created agent server, current working directory ifnulljvmargs- arguments to pass to the created java programclassName- the name of the main classargs- additional arguments to pass to the created java program- Returns:
- the created Process object.
- Throws:
Exception- an error occurs.
-
waitServerStarting
public String waitServerStarting(Process p) throws Exception
Deprecated.Waits for the starting of an AgentServer pointed out by its process. Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.- Parameters:
p- the AgentServer process.- Returns:
- the status string of the launched server.
- Throws:
Exception- an error occurs.
-
closeServerStream
public void closeServerStream(Process p) throws Exception
Deprecated.Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.- Parameters:
p- the AgentServer process.- Throws:
Exception- an error occurs.
-
killAgentServer
public void killAgentServer(short sid) throws ExceptionDeprecated.Kills this agent server process.- Parameters:
sid- id of agent server to stop- Throws:
Exception- an error occurs.
-
joinAgentServer
public int joinAgentServer(short sid) throws ExceptionDeprecated.Causes the current thread to wait, if necessary, until the process running this agent server has terminated.- Parameters:
sid- id of agent server to stop- Returns:
- the exit value of the agent server.
- Throws:
UnknownServerException- if the agent server is unknown.Exception- an error occurs.
-
exitValue
public int exitValue(short sid) throws IllegalThreadStateException, UnknownServerExceptionDeprecated.Ask for the exit value of an agent server.- Parameters:
sid- id of agent server to stop- Returns:
- the exit value of the agent server.
- Throws:
IllegalThreadStateException- if the agent server is still running.UnknownServerException- if the agent server is unknown.
-
stopAgentServer
public void stopAgentServer(short sid) throws ExceptionDeprecated.Stops cleanly an agent server from its id.- Parameters:
sid- id of agent server to stop- Throws:
Exception- an error occurs.
-
crashAgentServer
public void crashAgentServer(short sid) throws ExceptionDeprecated.Stops violently an agent server from its id.- Parameters:
sid- id of agent server to stop- Throws:
Exception- an error occurs.
-
update
public void update() throws ExceptionDeprecated.Updates the configuration.- Throws:
Exception- an error occurs.
-
-