org.objectweb.jonas.server
Class Server

java.lang.Object
  |
  +--org.objectweb.jonas.server.Server

public class Server
extends java.lang.Object

This class implements an JOnAS Server.

Author:
Philippe Coq, Philippe Durieux 00/06/15: Jeff Mesnil 01/06/15: Regis Le Brettevillois - Libelis / JOnAS team - evidian Service as org.objectweb.jonas.service.Service 02/04/25: Sebastien Chassande-Barrioz sebastien.chassande@inrialpes.fr Monolog for traces 03/01/20: Highlight configuration properties

Method Summary
 int getActiveGroupCount()
          get the estimated number of active groups in the JOnAS server's initial thread group
protected  int getActiveThreadsCount()
          get the number of active threads in the JOnAS server's initial thread group
static Server getInstance()
          Get the unique instance.
 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

getInstance

public static Server getInstance()
Get the unique instance. Create it at first call.

start

public void start()
           throws java.lang.Exception
Start the server

getActiveThreadsCount

protected int getActiveThreadsCount()
get the number of active threads in the JOnAS server's initial thread group

getActiveGroupCount

public int getActiveGroupCount()
get the estimated number of active groups in the JOnAS server's initial thread group

stop

public void stop()
          throws java.lang.Exception
Stop the server without stopping the JVM

kill

public void kill()
          throws java.lang.Exception
Stop the server and stop the JVM (MBean method)

main

public static void main(java.lang.String[] args)
Server main routine. No args.