Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » system » server » [javadoc | source]
org.jboss.system.server
public class: ServerImpl [javadoc | source]
java.lang.Object
   org.jboss.system.server.ServerImpl

All Implemented Interfaces:
    NotificationBroadcaster, ServerImplMBean, Server

The main container component of a JBoss server instance.

Concurrency

This class is not thread-safe.
Constructor:
 public ServerImpl() 
Method from org.jboss.system.server.ServerImpl Summary:
addNotificationListener,   exit,   exit,   getBuildDate,   getBuildID,   getBuildNumber,   getConfig,   getNotificationInfo,   getStartDate,   getVersion,   getVersionName,   halt,   halt,   init,   isStarted,   removeNotificationListener,   runFinalization,   runGarbageCollector,   sendNotification,   shutdown,   start,   traceInstructions,   traceMethodCalls
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.system.server.ServerImpl Detail:
 public  void addNotificationListener(NotificationListener listener,
    NotificationFilter filter,
    Object handback) 
 public  void exit() 
    Shutdown the server, the JVM and run shutdown hooks. Exits with code 1.
 public  void exit(int exitcode) 
    Shutdown the server, the JVM and run shutdown hooks.
 public String getBuildDate() 
 public String getBuildID() 
 public String getBuildNumber() 
 public ServerConfig getConfig() throws IllegalStateException 
    Get the typed server configuration object which the server has been initalized to use.
 public MBeanNotificationInfo[] getNotificationInfo() 
 public Date getStartDate() 
 public String getVersion() 
 public String getVersionName() 
 public  void halt() 
    Forcibly terminates the currently running Java virtual machine. Exits with code 1.
 public  void halt(int exitcode) 
    Forcibly terminates the currently running Java virtual machine.
 public  void init(Properties props) throws Exception, IllegalStateException 
    Initialize the Server instance.
 public boolean isStarted() 
    Check if the server is started.
 public  void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException 
 public  void runFinalization() 
    Hint to the JVM to run any pending object finailizations.
 public  void runGarbageCollector() 
    Hint to the JVM to run the garbage collector.
 public  void sendNotification(Notification notification) 
 public  void shutdown() throws IllegalStateException 
    Shutdown the Server instance and run shutdown hooks.

    If the exit on shutdown flag is true, then #exit is called, else only the shutdown hook is run.

 public  void start() throws Exception, IllegalStateException 
    Start the Server instance.
 public  void traceInstructions(Boolean flag) 
    Enable or disable tracing instructions the Runtime level.
 public  void traceMethodCalls(Boolean flag) 
    Enable or disable tracing method calls at the Runtime level.