|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 |
String |
initCarol(JProp props,
String serverName)
Initialize interception and carol |
static boolean |
isStarted()
|
static String |
jvmInfos()
|
void |
kill()
Stop the server and stop the JVM (MBean method) |
static void |
main(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(String[] args) throws Exception
args
- the arguments of the server
Exception
- can not start serverpublic J2EEDomain getJ2EEDomain()
public String initCarol(JProp props, String serverName) throws Exception
props
- the JOnAS propertiesserverName
- the name of the server for creating mbeans
Exception
- if carol init failedpublic void kill() throws Exception
Exception
- if the server can't be destroyedpublic void start() throws Exception
Exception
- if server can't be startedpublic static String jvmInfos()
public void stop() throws Exception
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 |