fr.dyade.aaa.agent
Class SCAdminBase

java.lang.Object
  extended byfr.dyade.aaa.agent.SCAdminBase

public class SCAdminBase
extends java.lang.Object


Field Summary
protected  A3CMLConfig a3config
           
protected  org.objectweb.util.monolog.api.Logger logmon
           
protected  SCAdminHelper scadmin
           
 
Constructor Summary
SCAdminBase()
           
SCAdminBase(java.lang.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.
 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 startAgentServer(short sid, java.io.File dir, java.lang.String[] jvmargs)
           
 java.lang.String startAgentServer(short sid, java.io.File dir, java.lang.String[] jvmargs, java.lang.String[] servargs)
           
 void stopAgentServer(short sid)
          Stops cleanly an agent server from its id.
 void update()
          Updates the configuration.
 void update(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

a3config

protected A3CMLConfig a3config

logmon

protected org.objectweb.util.monolog.api.Logger logmon

scadmin

protected SCAdminHelper scadmin
Constructor Detail

SCAdminBase

public SCAdminBase()

SCAdminBase

public SCAdminBase(java.lang.String path)
            throws java.lang.Exception
Method Detail

startAgentServer

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

Parameters:
sid - id of agent server to start
Throws:
java.lang.Exception

startAgentServer

public java.lang.String startAgentServer(short sid,
                                         java.io.File dir)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

startAgentServer

public java.lang.String startAgentServer(short sid,
                                         java.io.File dir,
                                         java.lang.String[] jvmargs)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

startAgentServer

public java.lang.String startAgentServer(short sid,
                                         java.io.File dir,
                                         java.lang.String[] jvmargs,
                                         java.lang.String[] servargs)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

killAgentServer

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

Parameters:
sid - id of agent server to stop
Throws:
java.lang.Exception

joinAgentServer

public int joinAgentServer(short sid)
                    throws java.lang.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.
Throws:
UnknownServerException - if the agent server is unknown.
java.lang.Exception

exitValue

public int exitValue(short sid)
              throws java.lang.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:
java.lang.IllegalThreadStateException - if the agent server is still running.
UnknownServerException - if the agent server is unknown.

stopAgentServer

public void stopAgentServer(short sid)
                     throws java.lang.Exception
Stops cleanly an agent server from its id.

Parameters:
sid - id of agent server to stop
Throws:
java.lang.Exception

crashAgentServer

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

Parameters:
sid - id of agent server to stop
Throws:
java.lang.Exception

update

public void update()
            throws java.lang.Exception
Updates the configuration.

Throws:
java.lang.Exception

update

public void update(java.lang.String path)
            throws java.lang.Exception
Throws:
java.lang.Exception


Copyright ? 2004 Scalagent - All rights reserved