
Public Member Functions | |
| SCAdminBase () | |
| SCAdminBase (String path) throws Exception | |
| String | startAgentServer (short sid) throws Exception |
| String | startAgentServer (short sid, File dir) throws Exception |
| String | startAgentServer (short sid, File dir, String[] jvmargs) throws Exception |
| String | startAgentServer (short sid, File dir, String[] jvmargs, String[] servargs) throws Exception |
| String | startAgentServer (short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception |
| Process | execAgentServer (short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception |
| String | waitServerStarting (Process p) throws Exception |
| void | closeServerStream (Process p) throws Exception |
| void | killAgentServer (short sid) throws Exception |
| int | joinAgentServer (short sid) throws Exception |
| int | exitValue (short sid) throws IllegalThreadStateException, UnknownServerException |
| void | stopAgentServer (short sid) throws Exception |
| void | crashAgentServer (short sid) throws Exception |
| void | update () throws Exception |
| void | update (String path) throws Exception |
Protected Attributes | |
| A3CMLConfig | a3config = null |
| Logger | logmon = null |
| SCAdminHelper | scadmin = null |
Definition at line 32 of file SCAdminBase.java.
| String fr.dyade.aaa.agent.SCAdminBase.startAgentServer | ( | short | sid | ) | throws Exception |
Starts an agent server from its id.
| sid | id of agent server to start |
Definition at line 56 of file SCAdminBase.java.
| String fr.dyade.aaa.agent.SCAdminBase.startAgentServer | ( | short | sid, | |
| File | dir | |||
| ) | throws Exception |
Starts an agent server from its id using specific storage directory. JVM arguments are initialized from A3 configuration.
| sid | id of agent server to start | |
| dir | new working directory for the created agent server, current working directory if null |
Definition at line 68 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.a3config, fr.dyade.aaa.agent.conf.A3CMLConfig.getJvmArgs(), fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.startAgentServer().
Here is the call graph for this function:

| String fr.dyade.aaa.agent.SCAdminBase.startAgentServer | ( | short | sid, | |
| File | dir, | |||
| String[] | jvmargs | |||
| ) | throws Exception |
Starts an agent server from its id using specific jvmargs and storage directory.
| sid | id of agent server to start | |
| dir | new working directory for the created agent server, current working directory if null | |
| jvmargs | arguments to pass to the created java program |
Definition at line 89 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.startAgentServer().
Here is the call graph for this function:

| String fr.dyade.aaa.agent.SCAdminBase.startAgentServer | ( | short | sid, | |
| File | dir, | |||
| String[] | jvmargs, | |||
| String[] | servargs | |||
| ) | throws Exception |
Starts an agent server from its id using specific jvmargs and storage directory.
| sid | id of agent server to start | |
| dir | new working directory for the created agent server, current working directory if null | |
| jvmargs | arguments to pass to the created java program | |
| args | additional arguments to pass to the created java program |
Definition at line 106 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.startAgentServer().
Here is the call graph for this function:

| String fr.dyade.aaa.agent.SCAdminBase.startAgentServer | ( | short | sid, | |
| File | dir, | |||
| String[] | jvmargs, | |||
| String | className, | |||
| String[] | args | |||
| ) | throws Exception |
Starts an agent server from its id.
| sid | id of agent server to start | |
| dir | new working directory for the created agent server, current working directory if null | |
| jvmargs | arguments to pass to the created java program | |
| className | the name of the main class | |
| args | additional arguments to pass to the created java program |
Definition at line 124 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.startAgentServer().
Here is the call graph for this function:

| Process fr.dyade.aaa.agent.SCAdminBase.execAgentServer | ( | short | sid, | |
| File | dir, | |||
| String[] | jvmargs, | |||
| String | className, | |||
| String[] | args | |||
| ) | throws Exception |
Runs an agent server from its id and specific parameters.
| name | id of agent server to start | |
| sid | id of agent server to start | |
| dir | new working directory for the created agent server, current working directory if null | |
| jvmargs | arguments to pass to the created java program | |
| className | the name of the main class | |
| args | additional arguments to pass to the created java program |
Definition at line 144 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminHelper.execAgentServer(), and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| String fr.dyade.aaa.agent.SCAdminBase.waitServerStarting | ( | Process | p | ) | throws Exception |
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.
| p | the AgentServer process. |
Definition at line 159 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.waitServerStarting().
Here is the call graph for this function:

| void fr.dyade.aaa.agent.SCAdminBase.closeServerStream | ( | Process | p | ) | throws Exception |
Closes all subsequent streams of the process to avoid deadlock due to limited buffer size.
| p | the AgentServer process. |
Definition at line 169 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminHelper.closeServerStream(), and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| void fr.dyade.aaa.agent.SCAdminBase.killAgentServer | ( | short | sid | ) | throws Exception |
Kills this agent server process.
| sid | id of agent server to stop |
Definition at line 178 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminHelper.killAgentServer(), and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| int fr.dyade.aaa.agent.SCAdminBase.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 |
| UnknownServerException | if the agent server is unknown. |
Definition at line 190 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminHelper.joinAgentServer(), and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| int fr.dyade.aaa.agent.SCAdminBase.exitValue | ( | short | sid | ) | throws IllegalThreadStateException, UnknownServerException |
Ask for the exit value of an agent server.
| sid | id of agent server to stop |
| IllegalThreadStateException | if the agent server is still running. | |
| UnknownServerException | if the agent server is unknown. |
Definition at line 204 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminHelper.exitValue(), and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| void fr.dyade.aaa.agent.SCAdminBase.stopAgentServer | ( | short | sid | ) | throws Exception |
Stops cleanly an agent server from its id.
| sid | id of agent server to stop |
Definition at line 214 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.a3config, fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs(), fr.dyade.aaa.agent.conf.A3CMLServer.hostname, fr.dyade.aaa.agent.SCAdminBase.logmon, fr.dyade.aaa.agent.SCAdminBase.scadmin, and fr.dyade.aaa.agent.SCAdminHelper.stopAgentServer().
Here is the call graph for this function:

| void fr.dyade.aaa.agent.SCAdminBase.crashAgentServer | ( | short | sid | ) | throws Exception |
Stops violently an agent server from its id.
| sid | id of agent server to stop |
Definition at line 229 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.a3config, fr.dyade.aaa.agent.SCAdminHelper.crashAgentServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServer(), fr.dyade.aaa.agent.conf.A3CMLConfig.getServiceArgs(), fr.dyade.aaa.agent.conf.A3CMLServer.hostname, fr.dyade.aaa.agent.SCAdminBase.logmon, and fr.dyade.aaa.agent.SCAdminBase.scadmin.
Here is the call graph for this function:

| void fr.dyade.aaa.agent.SCAdminBase.update | ( | ) | throws Exception |
Updates the configuration.
Definition at line 242 of file SCAdminBase.java.
References fr.dyade.aaa.agent.SCAdminBase.a3config, and fr.dyade.aaa.agent.SCAdminBase.logmon.
Referenced by fr.dyade.aaa.agent.SCAdminBase.SCAdminBase().
1.5.0