|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.system.server.jmx.JMXKernel
public class JMXKernel
A pojo that creates a legacy jmx kernel ala the jboss-4.x server bootstrap. This is used to support the SARDeployer and mbean integration.
Field Summary |
---|
Fields inherited from class org.jboss.util.JBossObject |
---|
hashCode, log, toString |
Fields inherited from interface org.jboss.system.server.ServerImplMBean |
---|
OBJECT_NAME |
Fields inherited from interface org.jboss.bootstrap.spi.Server |
---|
START_NOTIFICATION_TYPE, STOP_NOTIFICATION_TYPE |
Constructor Summary | |
---|---|
JMXKernel()
|
Method Summary | |
---|---|
void |
addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
|
void |
exit()
|
void |
exit(int exitcode)
|
String |
getBuildDate()
|
String |
getBuildID()
|
String |
getBuildJVM()
|
String |
getBuildNumber()
|
String |
getBuildOS()
|
org.jboss.bootstrap.spi.ServerConfig |
getConfig()
|
MBeanServer |
getMbeanServer()
|
Map<String,Object> |
getMetaData()
Get the optional server configuration metadata |
MBeanNotificationInfo[] |
getNotificationInfo()
|
org.jboss.bootstrap.spi.ServerProcess |
getServerImpl()
|
ServerInfoMBean |
getServerInfo()
|
ServiceControllerMBean |
getServiceController()
|
Date |
getStartDate()
|
String |
getVersion()
|
String |
getVersionName()
|
String |
getVersionNumber()
|
void |
halt()
|
void |
halt(int exitcode)
|
void |
init(Properties props)
|
void |
init(Properties props,
Map<String,Object> metaData)
Initialize the Server instance. |
boolean |
isInShutdown()
|
boolean |
isOldClassLoader()
|
boolean |
isStarted()
|
protected void |
removeMBeans()
The removeMBeans method uses the mbean mbeanServer to unregister
all the mbeans registered here. |
void |
removeNotificationListener(NotificationListener listener)
|
void |
removeNotificationListener(NotificationListener listener,
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 |
setKernel(org.jboss.kernel.Kernel kernel)
Set the kernel. |
void |
setOldClassLoader(boolean oldClassLoader)
|
void |
setServerImpl(org.jboss.bootstrap.spi.ServerProcess serverImpl)
|
void |
setServerInfo(ServerInfoMBean serverInfo)
|
void |
shutdown()
|
protected void |
shutdownServices()
The shutdownServices method calls the one and only
ServiceController to shut down all the mbeans registered with it. |
void |
start()
|
void |
stop()
Stop the mbeans |
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 org.jboss.util.JBossObject |
---|
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toShortString, toString, toString, toStringImplementation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public JMXKernel()
Method Detail |
---|
public org.jboss.bootstrap.spi.ServerProcess getServerImpl()
public void setServerImpl(org.jboss.bootstrap.spi.ServerProcess serverImpl)
public ServiceControllerMBean getServiceController()
public MBeanServer getMbeanServer()
public Map<String,Object> getMetaData()
getMetaData
in interface org.jboss.bootstrap.spi.Server
public ServerInfoMBean getServerInfo()
public void init(Properties props, Map<String,Object> metaData) throws IllegalStateException, Exception
init
in interface org.jboss.bootstrap.spi.Server
props
- The configuration properties for the server.metadata
- configuration metadata for the server
IllegalStateException
- Already initialized.
Exception
- Failed to initialize.public void setServerInfo(ServerInfoMBean serverInfo)
public void setKernel(org.jboss.kernel.Kernel kernel)
kernel
- the kernel.public boolean isOldClassLoader()
public void setOldClassLoader(boolean oldClassLoader)
public void start() throws Exception
start
in interface org.jboss.bootstrap.spi.Server
Exception
public void stop() throws IllegalStateException
IllegalStateException
- - if not started.public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
addNotificationListener
in interface NotificationBroadcaster
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationBroadcaster
ListenerNotFoundException
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
removeNotificationListener
in interface NotificationEmitter
ListenerNotFoundException
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
public void init(Properties props) throws Exception
init
in interface org.jboss.bootstrap.spi.Server
Exception
public void exit()
public void exit(int exitcode)
public org.jboss.bootstrap.spi.ServerConfig getConfig()
getConfig
in interface org.jboss.bootstrap.spi.Server
public String getBuildDate()
getBuildDate
in interface org.jboss.bootstrap.spi.Server
public String getBuildID()
getBuildID
in interface org.jboss.bootstrap.spi.Server
public String getBuildJVM()
getBuildJVM
in interface org.jboss.bootstrap.spi.Server
public String getBuildNumber()
getBuildNumber
in interface org.jboss.bootstrap.spi.Server
public String getBuildOS()
getBuildOS
in interface org.jboss.bootstrap.spi.Server
public Date getStartDate()
getStartDate
in interface org.jboss.bootstrap.spi.Server
public String getVersion()
getVersion
in interface org.jboss.bootstrap.spi.Server
public String getVersionName()
getVersionName
in interface org.jboss.bootstrap.spi.Server
public String getVersionNumber()
getVersionNumber
in interface org.jboss.bootstrap.spi.Server
public void halt()
public void halt(int exitcode)
public boolean isInShutdown()
isInShutdown
in interface org.jboss.bootstrap.spi.Server
public boolean isStarted()
isStarted
in interface org.jboss.bootstrap.spi.Server
public void runFinalization()
ServerImplMBean
runFinalization
in interface ServerImplMBean
public void runGarbageCollector()
ServerImplMBean
runGarbageCollector
in interface ServerImplMBean
public void traceInstructions(Boolean flag)
ServerImplMBean
traceInstructions
in interface ServerImplMBean
public void traceMethodCalls(Boolean flag)
ServerImplMBean
traceMethodCalls
in interface ServerImplMBean
public void shutdown()
shutdown
in interface org.jboss.bootstrap.spi.Server
protected void shutdownServices()
shutdownServices
method calls the one and only
ServiceController to shut down all the mbeans registered with it.
protected void removeMBeans()
removeMBeans
method uses the mbean mbeanServer to unregister
all the mbeans registered here.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |