Save This Page
Home » JBoss-5.1.0 » org » jboss » system » server » [javadoc | source]
org.jboss.system.server
public interface: Server [javadoc | source]

All Known Implementing Classes:
    ServerImpl

The interface of the server loaded by the ServerLoader
Field Summary
public final  String START_NOTIFICATION_TYPE    The JMX notification event type sent on end of server startup 
public final  String STOP_NOTIFICATION_TYPE    The JMX notification event type sent on begin of the server shutdown 
Method from org.jboss.system.server.Server Summary:
exit,   exit,   getBuildDate,   getBuildID,   getBuildJVM,   getBuildNumber,   getBuildOS,   getConfig,   getStartDate,   getVersion,   getVersionName,   getVersionNumber,   halt,   halt,   init,   isInShutdown,   isStarted,   shutdown,   start
Method from org.jboss.system.server.Server Detail:
 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 getBuildJVM()
 public String getBuildNumber()
 public String getBuildOS()
 public ServerConfig getConfig() throws IllegalStateException
    Get the typed server configuration object which the server has been initalized to use.
 public Date getStartDate()
 public String getVersion()
 public String getVersionName()
 public String getVersionNumber()
 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 IllegalStateException, Exception
    Initialize the Server instance.
 public boolean isInShutdown()
 public boolean isStarted()
    Check if the server is started.
 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 IllegalStateException, Exception
    Start the Server instance.