|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
appl.parallel.starter.server.XuluServerStarter
public class XuluServerStarter
A running instance of the XuluServerStarter waits for a signal to start a
XuluServer
. When start()
is called the Server is started.
All output from the new Serverprocess are forwarded to the actual screen (if
any). The Server can also be restarted
or
stopped
.
For configuration of the XuluServer the XuluConfig
is used. The
following configuration entries are supported
Entry | Default | Description |
---|---|---|
XuluServerStarter.port | 1099 | The port which is used for the registry creation (if none is running) |
XuluServerStarter.javaprogram | java | The path to the java program |
XuluServerStarter.codebasedir | The absolute path to the codebase directory (should be the path to the binaries) | |
XuluServerStarter.securitypolicy | The path to the security policy | |
XuluServerStarter.furtherjavaarguments | further JVM arguments | |
XuluServerStarter.classpath | The libaries needed | |
XuluServerStarter.memorymax | 64 | The maximum memory the XuluSever attempts to use (-xmx) |
XuluServerStarter.memorymin | 4 | The inital memory the XuluServer uses (-xms) |
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
|
void |
bind(String bindingName,
Remote bindingInstance,
int defaultPort)
Copied from Helper and modified so that it does not depend on
log4j. |
boolean |
isRunning()
|
static void |
main(String[] args)
Starts the XuluServerStarter The parameter -start can be used to start the Server at launch of the Starter. |
void |
restart()
restarts the process |
void |
start()
Creates the Java commandline and starts the XuluServer |
void |
stop()
stops the process |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public void restart() throws RemoteException
Starter
restart
in interface Starter
RemoteException
public void start() throws RemoteException
XuluServer
start
in interface Starter
RemoteException
Starter.start()
public void stop() throws RemoteException
Starter
stop
in interface Starter
RemoteException
public static void main(String[] args)
public boolean isRunning() throws RemoteException
isRunning
in interface Starter
RemoteException
public void bind(String bindingName, Remote bindingInstance, int defaultPort) throws RemoteException
Helper
and modified so that it does not depend on
log4j. Binds the remote object's stub in the registry. Creates a registry
if no running registry is found.
bindingName
- the name to be used for bindingbindingInstance
- an instance of the type to bind to the registrydefaultPort
- the default registry port
RemoteException
- if something goes wrongpublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |