@Deprecated public class SCAdminBase extends Object
Modifier and Type | Field and Description |
---|---|
protected A3CMLConfig |
a3config
Deprecated.
|
protected Logger |
logmon
Deprecated.
|
protected SCAdminHelper |
scadmin
Deprecated.
|
Constructor and Description |
---|
SCAdminBase()
Deprecated.
|
SCAdminBase(String path)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
closeServerStream(Process p)
Deprecated.
Closes all subsequent streams of the process to avoid deadlock due to
limited buffer size.
|
void |
crashAgentServer(short sid)
Deprecated.
Stops violently an agent server from its id.
|
Process |
execAgentServer(short sid,
File dir,
String[] jvmargs,
String className,
String[] args)
Deprecated.
Runs an agent server from its id and specific parameters.
|
int |
exitValue(short sid)
Deprecated.
Ask for the exit value of an agent server.
|
int |
joinAgentServer(short sid)
Deprecated.
Causes the current thread to wait, if necessary, until the process
running this agent server has terminated.
|
void |
killAgentServer(short sid)
Deprecated.
Kills this agent server process.
|
String |
startAgentServer(short sid)
Deprecated.
Starts an agent server from its id.
|
String |
startAgentServer(short sid,
File dir)
Deprecated.
Starts an agent server from its id using specific storage directory.
|
String |
startAgentServer(short sid,
File dir,
String[] jvmargs)
Deprecated.
Starts an agent server from its id using specific jvmargs and storage
directory.
|
String |
startAgentServer(short sid,
File dir,
String[] jvmargs,
String[] servargs)
Deprecated.
Starts an agent server from its id using specific jvmargs and storage
directory.
|
String |
startAgentServer(short sid,
File dir,
String[] jvmargs,
String className,
String[] args)
Deprecated.
Starts an agent server from its id.
|
void |
stopAgentServer(short sid)
Deprecated.
Stops cleanly an agent server from its id.
|
void |
update()
Deprecated.
Updates the configuration.
|
void |
update(String path)
Deprecated.
|
String |
waitServerStarting(Process p)
Deprecated.
Waits for the starting of an AgentServer pointed out by its process.
|
protected A3CMLConfig a3config
protected Logger logmon
protected SCAdminHelper scadmin
public String startAgentServer(short sid) throws Exception
sid
- id of agent server to startException
- an error occurs.public String startAgentServer(short sid, File dir) throws Exception
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
Exception
- an error occurs.public String startAgentServer(short sid, File dir, String[] jvmargs) throws Exception
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmargs
- arguments to pass to the created java programException
- an error occurs.public String startAgentServer(short sid, File dir, String[] jvmargs, String[] servargs) throws Exception
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmargs
- arguments to pass to the created java programservargs
- additional arguments to pass to the created java programException
- an error occurs.public String startAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmargs
- arguments to pass to the created java programclassName
- the name of the main classargs
- additional arguments to pass to the created java programException
- an error occurs.public Process execAgentServer(short sid, File dir, String[] jvmargs, String className, String[] args) throws Exception
sid
- id of agent server to startdir
- new working directory for the created agent server,
current working directory if null
jvmargs
- arguments to pass to the created java programclassName
- the name of the main classargs
- additional arguments to pass to the created java programException
- an error occurs.public String waitServerStarting(Process p) throws Exception
p
- the AgentServer process.Exception
- an error occurs.public void closeServerStream(Process p) throws Exception
p
- the AgentServer process.Exception
- an error occurs.public void killAgentServer(short sid) throws Exception
sid
- id of agent server to stopException
- an error occurs.public int joinAgentServer(short sid) throws Exception
sid
- id of agent server to stopUnknownServerException
- if the agent server is unknown.Exception
- an error occurs.public int exitValue(short sid) throws IllegalThreadStateException, UnknownServerException
sid
- id of agent server to stopIllegalThreadStateException
- if the agent server is still running.UnknownServerException
- if the agent server is unknown.public void stopAgentServer(short sid) throws Exception
sid
- id of agent server to stopException
- an error occurs.public void crashAgentServer(short sid) throws Exception
sid
- id of agent server to stopException
- an error occurs.public void update() throws Exception
Exception
- an error occurs.Copyright © 2022 ScalAgent D.T.. All rights reserved.