|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
The interface of the basic JBoss server component.
| Field Summary | |
static String |
START_NOTIFICATION_TYPE
The JMX notification event type sent on end of server startup |
static String |
STOP_NOTIFICATION_TYPE
The JMX notification event type sent on begin of the server shutdown |
| Method Summary | |
void |
exit(int exitcode)
Shutdown the server, the JVM and run shutdown hooks. |
ServerConfig |
getConfig()
Get the typed server configuration object which the server has been initalized to use. |
void |
halt(int exitcode)
Forcibly terminates the currently running Java virtual machine. |
void |
init(Properties props)
Initialize the Server instance. |
boolean |
isStarted()
Check if the server is started. |
void |
shutdown()
Shutdown the Server instance and run shutdown hooks. |
void |
start()
Start the Server instance. |
| Field Detail |
public static final String START_NOTIFICATION_TYPE
public static final String STOP_NOTIFICATION_TYPE
| Method Detail |
public void init(Properties props) throws IllegalStateException, Exception
props - The configuration properties for the server.
IllegalStateException - Already initialized.
Exception - Failed to initialize.public ServerConfig getConfig() throws IllegalStateException
IllegalStateException - Not initialized.
public void start()
throws IllegalStateException,
Exception
IllegalStateException - Already started or not initialized.
Exception - Failed to start.public boolean isStarted()
public void shutdown()
throws IllegalStateException
If the exit on shutdown flag is true, then exit(int)
is called, else only the shutdown hook is run.
IllegalStateException - No started.public void exit(int exitcode)
exitcode - The exit code returned to the operating system.public void halt(int exitcode)
exitcode - The exit code returned to the operating system.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||