|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LauncherMBean
MBean interface for
Launcher
.
Field Summary | |
---|---|
static int |
OUTPUT_LIMIT
Limit for the program output read at once. |
Method Summary | |
---|---|
java.lang.String[] |
getAllDeploymentDocks()
Returns the list of deployment docks running on the Launcher. |
java.lang.String |
getConfiguration()
Returns the configuration received from the server. |
void |
killProcess(int id)
Kills the launched process with ID id . |
void |
launchConfiguredSofaClass(java.lang.String className)
Launches a class in separate JVM with sofa configuration set as java properties. |
void |
launchConfiguredSofaClass(java.lang.String className,
java.lang.String[] parameters)
Launches a class in separate JVM with sofa configuration set as java properties. |
void |
launchDeploymentDock(java.lang.String dockName)
Launches a sofa deployment dock in a separate jvm with configuration downloaded from the zeroconf server. |
void |
launchSofaApp(java.lang.String className,
java.lang.String[] parameters)
Launches a sofa application (e.g. |
java.lang.String[] |
listProcesses()
Returns an array of all launched processes in format ID: command arg1 arg2 ... |
java.lang.String |
readError(int id)
Returns the next portion of standard error of the process with ID id . |
java.lang.String |
readOutput(int id)
Returns the next portion of standard output of the process with ID id . |
void |
setDefaultDir(java.lang.String dir)
Sets the default working directory of new process to dir . |
void |
setDefaultJvm(java.lang.String jvmpath)
Sets the default JVM path (path to java executable) to
jvmpath . |
void |
setDefaultJvmArgs(java.lang.String[] jvmargs)
Sets the default JVM arguments to jvmargs . |
void |
shutSofaApp(java.lang.String appID)
Shuts down a launched sofa application with the given appID. |
Field Detail |
---|
static final int OUTPUT_LIMIT
Method Detail |
---|
void setDefaultDir(java.lang.String dir)
dir
.
dir
- working directory for newly lauched processes, or null
if the working directory should be inherited from the current
process.void setDefaultJvm(java.lang.String jvmpath)
java
executable) to
jvmpath
.
jvmpath
- path to JVM which should be used to launch Java classes,
or null
if the JVM path of this process should be used.void setDefaultJvmArgs(java.lang.String[] jvmargs)
jvmargs
.
jvmargs
- array of virtual machine arguments to be used when
starting Java classes, or null
if no JVM arguments
should be used.java.lang.String[] listProcesses()
java.lang.String readOutput(int id) throws java.io.IOException
id
. The returned string will be at most OUTPUT_LIMIT
characters long. If no output is available right now, returns an empty
string.
java.lang.IllegalArgumentException
- if id
is an invalid ID.
java.io.IOException
java.lang.String readError(int id) throws java.io.IOException
id
. The returned string will be at most OUTPUT_LIMIT
characters long. If no error output is available right now, returns
an empty string.
java.lang.IllegalArgumentException
- if id
is an invalid ID.
java.io.IOException
void killProcess(int id)
id
. After the kill,
id
becomes invalid.
java.lang.IllegalArgumentException
- if id
is an invalid ID.void launchConfiguredSofaClass(java.lang.String className, java.lang.String[] parameters) throws java.io.IOException
className
- Name of the class to be launched.parameters
- The parameters to be passed to the class's main function.
java.io.IOException
void launchConfiguredSofaClass(java.lang.String className) throws java.io.IOException
className
- Name of the class to be launched.
java.io.IOException
void launchDeploymentDock(java.lang.String dockName) throws java.io.IOException
dockName
- The name of the deployment dock.
java.io.IOException
void launchSofaApp(java.lang.String className, java.lang.String[] parameters) throws java.io.IOException
className
- Full name of the deployment plan to be launched (e.g. org.objectweb.dsrg.sofa.examples.logdemo.deplplan.Local).parameters
- Parameters to pass - e.g. version of the deployment plan.
java.io.IOException
void shutSofaApp(java.lang.String appID) throws java.io.IOException
appID
- Id of the running sofa application (usually outputed when
java.io.IOException
java.lang.String getConfiguration() throws java.net.SocketException, java.io.IOException
java.net.SocketException
java.io.IOException
java.lang.String[] getAllDeploymentDocks()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |