|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.portal.common.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.
Field Summary | |
protected org.jboss.system.ServiceControllerMBean |
controller
The service controller name. |
protected org.apache.log4j.Logger |
log
The logger. |
protected javax.management.MBeanServer |
server
The server. |
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 |
protected org.apache.log4j.Logger log
protected org.jboss.system.ServiceControllerMBean controller
protected javax.management.MBeanServer server
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 |