|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.ServerImpl
public class 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()
Exit the JVM with code 1, run shutdown hooks, shutdown the server. |
void |
exit(int exitcode)
Exit the JVM, run shutdown hooks, shutdown the server. |
String |
getBuildDate()
The date the server was build |
String |
getBuildID()
The build id |
String |
getBuildJVM()
The JVM used to build the server |
String |
getBuildNumber()
The date the server was build (compiled) |
String |
getBuildOS()
The Operating System used to build the server |
ServerConfig |
getConfig()
Get the typed server configuration object which the server has been initalized to use. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
Date |
getStartDate()
The server start date |
String |
getVersion()
The server version |
String |
getVersionName()
The server version code name |
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 |
isInShutdown()
Check if the shutdown operation has been called/is in progress. |
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
init
in interface Server
props
- The configuration properties for the server.
IllegalStateException
- Already initialized.
Exception
- Failed to initialize.public ServerConfig getConfig() throws IllegalStateException
getConfig
in interface Server
IllegalStateException
- Not initialized.public boolean isStarted()
isStarted
in interface Server
isStarted
in interface ServerImplMBean
public boolean isInShutdown()
isInShutdown
in interface ServerImplMBean
public void start() throws IllegalStateException, Exception
start
in interface Server
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.
shutdown
in interface Server
shutdown
in interface ServerImplMBean
IllegalStateException
- No started.public void exit(int exitcode)
exit
in interface Server
exit
in interface ServerImplMBean
exitcode
- The exit code returned to the operating system.public void exit()
exit
in interface ServerImplMBean
public void halt(int exitcode)
halt
in interface Server
halt
in interface ServerImplMBean
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()
ServerImplMBean
getStartDate
in interface ServerImplMBean
public String getVersion()
ServerImplMBean
getVersion
in interface ServerImplMBean
public String getVersionName()
ServerImplMBean
getVersionName
in interface ServerImplMBean
public String getBuildNumber()
ServerImplMBean
getBuildNumber
in interface ServerImplMBean
public String getBuildJVM()
ServerImplMBean
getBuildJVM
in interface ServerImplMBean
public String getBuildOS()
ServerImplMBean
getBuildOS
in interface ServerImplMBean
public String getBuildID()
ServerImplMBean
getBuildID
in interface ServerImplMBean
public String getBuildDate()
ServerImplMBean
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 |