fr.dyade.aaa.agent

Class SCAdminBase


public class SCAdminBase
extends java.lang.Object

Field Summary

protected A3CMLConfig
a3config
protected Logger
logmon
protected SCAdminHelper
scadmin

Constructor Summary

SCAdminBase()
SCAdminBase(String path)

Method Summary

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)

Field Details

a3config

protected A3CMLConfig a3config


logmon

protected Logger logmon


scadmin

protected SCAdminHelper scadmin

Constructor Details

SCAdminBase

public SCAdminBase()


SCAdminBase

public SCAdminBase(String path)
            throws Exception

Method Details

crashAgentServer

public void crashAgentServer(short sid)
            throws Exception
Stops violently an agent server from its id.

Parameters:
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.

Parameters:
sid - id of agent server to stop

Returns:
the exit value of the agent server.

Throws:
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.

Parameters:
sid - id of agent server to stop

Returns:
the exit value of the agent server.


killAgentServer

public void killAgentServer(short sid)
            throws Exception
Kills this agent server process.

Parameters:
sid - id of agent server to stop


startAgentServer

public String startAgentServer(short sid)
            throws Exception
Starts an agent server from its id.

Parameters:
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.

Parameters:
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