org.hyperic.util.notReady
Class NotReadyManager
java.lang.Object
org.hyperic.util.notReady.NotReadyManager
- All Implemented Interfaces:
- javax.management.MBeanRegistration, NotReadyManagerMBean
public class NotReadyManager
- extends java.lang.Object
- implements NotReadyManagerMBean, javax.management.MBeanRegistration
A simple MBean which calls the NotReadyFilter class to set the
application ready or not. The reason that we don't make the filter
also an MBean is that it requires that the MBean can load things
like the Filter class and such. This also makes it a bit more
clear what the purposes of the objects are.
Method Summary |
boolean |
isReady()
|
void |
postDeregister()
|
void |
postRegister(java.lang.Boolean registrationDone)
JBoss waits until the server is fully started to start the connectors. |
void |
preDeregister()
|
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
|
void |
setReady(boolean ready)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotReadyManager
public NotReadyManager()
setReady
public void setReady(boolean ready)
- Specified by:
setReady
in interface NotReadyManagerMBean
isReady
public boolean isReady()
- Specified by:
isReady
in interface NotReadyManagerMBean
preRegister
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
- Specified by:
preRegister
in interface javax.management.MBeanRegistration
postRegister
public void postRegister(java.lang.Boolean registrationDone)
- JBoss waits until the server is fully started to start the connectors.
We start them early to avoid long server startup times.
- Specified by:
postRegister
in interface javax.management.MBeanRegistration
preDeregister
public void preDeregister()
throws java.lang.Exception
- Specified by:
preDeregister
in interface javax.management.MBeanRegistration
- Throws:
java.lang.Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface javax.management.MBeanRegistration
Copyright © 2004-2006 Hyperic, Inc. support@hyperic.net, All Rights Reserved.