|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ServerImplMBean
public void halt(int exitcode)
exitcode
- The exit code returned to the operating system.public void halt()
halt
in interface ServerImplMBean
public void runGarbageCollector()
runGarbageCollector
in interface ServerImplMBean
public void runFinalization()
runFinalization
in interface ServerImplMBean
public void traceMethodCalls(Boolean flag)
traceMethodCalls
in interface ServerImplMBean
public void traceInstructions(Boolean flag)
traceInstructions
in interface ServerImplMBean
public Date getStartDate()
getStartDate
in interface ServerImplMBean
public String getVersion()
getVersion
in interface ServerImplMBean
public String getVersionName()
getVersionName
in interface ServerImplMBean
public String getBuildNumber()
getBuildNumber
in interface ServerImplMBean
public String getBuildJVM()
getBuildJVM
in interface ServerImplMBean
public String getBuildOS()
getBuildOS
in interface ServerImplMBean
public String getBuildID()
getBuildID
in interface ServerImplMBean
public 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.NotificationBroadcaster
javax.management.ListenerNotFoundException
public void removeNotificationListener(javax.management.NotificationListener listener, javax.management.NotificationFilter filter, Object handback) throws javax.management.ListenerNotFoundException
removeNotificationListener
in interface javax.management.NotificationEmitter
javax.management.ListenerNotFoundException
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
public void sendNotification(javax.management.Notification notification)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |