|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.objectweb.jonas.server.Server
public class Server
This class implements an JOnAS Server.
Method Summary | |
---|---|
static Server |
getInstance()
Get the unique instance. |
J2EEDomain |
getJ2EEDomain()
Gets J2EEDomain |
J2EEServer |
getJ2EEServer()
Gets J2EEServer. |
java.lang.String |
initCarol(JProp props,
java.lang.String serverName)
Initialize interception and carol |
static boolean |
isStarted()
|
static java.lang.String |
jvmInfos()
|
void |
kill()
Stop the server and stop the JVM (MBean method) |
static void |
main(java.lang.String[] args)
Server main routine. |
void |
start()
Start the server |
void |
stop()
Stop the server without stopping the JVM |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Server getInstance()
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- the arguments of the server
java.lang.Exception
- can not start serverpublic J2EEDomain getJ2EEDomain()
public J2EEServer getJ2EEServer()
public java.lang.String initCarol(JProp props, java.lang.String serverName) throws java.lang.Exception
props
- the JOnAS propertiesserverName
- the name of the server for creating mbeans
java.lang.Exception
- if carol init failedpublic void kill() throws java.lang.Exception
java.lang.Exception
- if the server can't be destroyedpublic void start() throws java.lang.Exception
java.lang.Exception
- if server can't be startedpublic static java.lang.String jvmInfos()
public void stop() throws java.lang.Exception
java.lang.Exception
- if the server can't be stoppedpublic static boolean isStarted()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |