|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.jems.as.system.LifeCycleAdapter
Adapts JBoss lifecycle event handling and multiplex event from different sources into one source.
It requires an MBeanServer and a ServiceController plugged into the MBeanServer.
Nested Class Summary | |
private class |
LifeCycleAdapter.Listener
|
Field Summary | |
protected org.jboss.system.ServiceControllerMBean |
controller
The service controller name. |
private LifeCycleAdapter.Listener |
listener
The delegated listener. |
protected org.apache.log4j.Logger |
log
The logger. |
private static javax.management.ObjectName |
MBEAN_SERVER_DELEGATE
The name of the server delegate. |
protected javax.management.MBeanServer |
server
The server. |
private java.util.Set |
watched
The watched mbeans. |
Constructor Summary | |
LifeCycleAdapter(javax.management.MBeanServer server)
Create the rule for the given server. |
Method Summary | |
void |
addStateListener(javax.management.ObjectName name)
|
protected void |
created(javax.management.ObjectName name)
|
protected void |
destroyed(javax.management.ObjectName name)
|
void |
removeStateListener(javax.management.ObjectName name)
|
void |
start()
Start the adapter. |
protected void |
started(javax.management.ObjectName name)
|
protected void |
starting(javax.management.ObjectName name)
|
void |
stop()
Stop the adapter |
protected void |
stopped(javax.management.ObjectName name)
|
protected void |
stopping(javax.management.ObjectName name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final javax.management.ObjectName MBEAN_SERVER_DELEGATE
protected org.apache.log4j.Logger log
protected org.jboss.system.ServiceControllerMBean controller
protected javax.management.MBeanServer server
private LifeCycleAdapter.Listener listener
private java.util.Set watched
Constructor Detail |
public LifeCycleAdapter(javax.management.MBeanServer server)
Method Detail |
public void start() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the service controller is missingpublic void stop()
public void addStateListener(javax.management.ObjectName name)
public void removeStateListener(javax.management.ObjectName name)
protected void created(javax.management.ObjectName name)
protected void starting(javax.management.ObjectName name)
protected void started(javax.management.ObjectName name)
protected void stopping(javax.management.ObjectName name)
protected void stopped(javax.management.ObjectName name)
protected void destroyed(javax.management.ObjectName name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |