|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jboss.system.server.ServerImpl
The main container component of a JBoss server instance.
| Field Summary |
| Fields inherited from interface org.jboss.system.server.Server |
START_NOTIFICATION_TYPE, STOP_NOTIFICATION_TYPE |
| Fields inherited from interface org.jboss.system.server.ServerImplMBean |
OBJECT_NAME |
| Constructor Summary | |
ServerImpl()
No-arg constructor for ServerLoader. |
|
| Method Summary | |
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
|
void |
exit()
Shutdown the server, the JVM and run shutdown hooks. |
void |
exit(int exitcode)
Shutdown the server, the JVM and run shutdown hooks. |
String |
getBuildDate()
|
String |
getBuildID()
|
String |
getBuildJVM()
|
String |
getBuildNumber()
|
String |
getBuildOS()
|
ServerConfig |
getConfig()
Get the typed server configuration object which the server has been initalized to use. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
Date |
getStartDate()
|
String |
getVersion()
|
String |
getVersionName()
|
void |
halt()
Forcibly terminates the currently running Java virtual machine. |
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 |
removeNotificationListener(javax.management.NotificationListener listener)
|
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
|
void |
runFinalization()
Hint to the JVM to run any pending object finailizations. |
void |
runGarbageCollector()
Hint to the JVM to run the garbage collector. |
void |
sendNotification(javax.management.Notification notification)
|
void |
shutdown()
Shutdown the Server instance and run shutdown hooks. |
void |
start()
Start the Server instance. |
void |
traceInstructions(Boolean flag)
Enable or disable tracing instructions the Runtime level. |
void |
traceMethodCalls(Boolean flag)
Enable or disable tracing method calls at the Runtime level. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerImpl()
ServerLoader.
| 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 boolean isStarted()
public void start()
throws IllegalStateException,
Exception
IllegalStateException - Already started or not initialized.
Exception - Failed to start.
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 exit()
exit in interface ServerImplMBeanpublic void halt(int exitcode)
exitcode - The exit code returned to the operating system.public void halt()
halt in interface ServerImplMBeanpublic void runGarbageCollector()
runGarbageCollector in interface ServerImplMBeanpublic void runFinalization()
runFinalization in interface ServerImplMBeanpublic void traceMethodCalls(Boolean flag)
traceMethodCalls in interface ServerImplMBeanpublic void traceInstructions(Boolean flag)
traceInstructions in interface ServerImplMBeanpublic Date getStartDate()
getStartDate in interface ServerImplMBeanpublic String getVersion()
getVersion in interface ServerImplMBeanpublic String getVersionName()
getVersionName in interface ServerImplMBeanpublic String getBuildNumber()
getBuildNumber in interface ServerImplMBeanpublic String getBuildJVM()
getBuildJVM in interface ServerImplMBeanpublic String getBuildOS()
getBuildOS in interface ServerImplMBeanpublic String getBuildID()
getBuildID in interface ServerImplMBeanpublic String getBuildDate()
getBuildDate in interface ServerImplMBean
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
addNotificationListener in interface javax.management.NotificationBroadcaster
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationBroadcasterjavax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
throws javax.management.ListenerNotFoundException
removeNotificationListener in interface javax.management.NotificationEmitterjavax.management.ListenerNotFoundExceptionpublic javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface javax.management.NotificationBroadcasterpublic void sendNotification(javax.management.Notification notification)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||