|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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 (src) |
START_NOTIFICATION_TYPE, STOP_NOTIFICATION_TYPE |
Constructor Summary | |
ServerImpl()
No-arg constructor for ServerLoader (src) . |
Method Summary | |
void |
addNotificationListener(NotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
Add a listener to an MBean. |
void |
exit()
Shutdown the server, the JVM and run shutdown hooks. |
void |
exit(int exitcode)
Shutdown the server, the JVM and run shutdown hooks. |
java.lang.String |
getBuildDate()
|
java.lang.String |
getBuildID()
|
java.lang.String |
getBuildJVM()
|
java.lang.String |
getBuildNumber()
|
java.lang.String |
getBuildOS()
|
ServerConfig (src) |
getConfig()
Get the typed server configuration object which the server has been initalized to use. |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
java.util.Date |
getStartDate()
|
java.lang.String |
getVersion()
|
java.lang.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(java.util.Properties props)
Initialize the Server instance. |
boolean |
isStarted()
Check if the server is started. |
void |
removeNotificationListener(NotificationListener (src) listener)
Removes a listener from an MBean. |
void |
removeNotificationListener(NotificationListener (src) listener,
NotificationFilter (src) filter,
java.lang.Object handback)
Removes a listener from the Emitter. |
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(Notification (src) notification)
|
void |
shutdown()
Shutdown the Server instance and run shutdown hooks. |
void |
start()
Start the Server instance. |
void |
traceInstructions(java.lang.Boolean flag)
Enable or disable tracing instructions the Runtime level. |
void |
traceMethodCalls(java.lang.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
(src) .
Method Detail |
public void init(java.util.Properties props) throws java.lang.IllegalStateException, java.lang.Exception
init
in interface Server (src)
props
- The configuration properties for the server.
java.lang.IllegalStateException
- Already initialized.
java.lang.Exception
- Failed to initialize.public ServerConfig (src) getConfig() throws java.lang.IllegalStateException
getConfig
in interface Server (src)
java.lang.IllegalStateException
- Not initialized.public boolean isStarted()
isStarted
in interface Server (src)
public void start() throws java.lang.IllegalStateException, java.lang.Exception
start
in interface Server (src)
java.lang.IllegalStateException
- Already started or not initialized.
java.lang.Exception
- Failed to start.public void shutdown() throws java.lang.IllegalStateException
If the exit on shutdown flag is true, then exit(int)
is called, else only the shutdown hook is run.
shutdown
in interface Server (src)
java.lang.IllegalStateException
- No started.public void exit(int exitcode)
exit
in interface Server (src)
exitcode
- The exit code returned to the operating system.public void exit()
public void halt(int exitcode)
halt
in interface Server (src)
exitcode
- The exit code returned to the operating system.public void halt()
public void runGarbageCollector()
public void runFinalization()
public void traceMethodCalls(java.lang.Boolean flag)
public void traceInstructions(java.lang.Boolean flag)
public java.util.Date getStartDate()
public java.lang.String getVersion()
public java.lang.String getVersionName()
public java.lang.String getBuildNumber()
public java.lang.String getBuildJVM()
public java.lang.String getBuildOS()
public java.lang.String getBuildID()
public java.lang.String getBuildDate()
public void addNotificationListener(NotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback)
NotificationBroadcaster (src)
addNotificationListener
in interface NotificationBroadcaster (src)
listener
- implementation of the listener objectfilter
- implementation of the filter object or null
if no filtering is requiredhandback
- A handback object associated with each notification
sent by this notification broadcaster.public void removeNotificationListener(NotificationListener (src) listener) throws ListenerNotFoundException (src)
NotificationBroadcaster (src)
removeNotificationListener
in interface NotificationBroadcaster (src)
listener
- the listener object to remove
ListenerNotFoundException (src)
- if the listener was not foundpublic void removeNotificationListener(NotificationListener (src) listener, NotificationFilter (src) filter, java.lang.Object handback) throws ListenerNotFoundException (src)
NotificationEmitter (src)
Only the listener, filter, handback triplet is removed
removeNotificationListener
in interface NotificationEmitter (src)
listener
- the listener object to removefilter
- the filter registered with the listenerhandback
- the handback object associated with the registered listener
ListenerNotFoundException (src)
- if the listener was not foundpublic MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src)
getNotificationInfo
in interface NotificationBroadcaster (src)
MBeanNotificationInfo
(src) public void sendNotification(Notification (src) notification)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |