|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.rhq.enterprise.communications.command.server.CommandMBean
public abstract class CommandMBean
The superclass for all services that are to be deployed as MBeans. This class itself is not a valid MBean - there is no MBean interface. Subclasses need to provide their own MBean interface. This class simply provides some convienent lifecycle methods.
| Constructor Summary | |
|---|---|
CommandMBean()
Creates a new CommandMBean object. |
|
| Method Summary | |
|---|---|
mazz.i18n.Logger |
getLog()
Returns a logger that can be used to log messages under the instance's own category. |
MBeanServer |
getMBeanServer()
Returns the MBeanServer where this service is registered; will be null if not registered anywhere. |
ObjectName |
getObjectName()
Returns the name of this MBean service as it is registered under; will be null if not registered in
an MBeanServer. |
void |
postDeregister()
|
void |
postRegister(Boolean arg0)
|
void |
preDeregister()
|
ObjectName |
preRegister(MBeanServer mbs,
ObjectName name)
|
void |
startService()
This is called after the MBean is fully registered with the MBeanServer. |
void |
stopService()
This is called when the MBean is being deregistered from the MBeanServer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommandMBean()
CommandMBean object.
| Method Detail |
|---|
public ObjectName preRegister(MBeanServer mbs,
ObjectName name)
throws Exception
preRegister in interface MBeanRegistrationExceptionMBeanRegistration.preRegister(MBeanServer, ObjectName)public void postRegister(Boolean arg0)
postRegister in interface MBeanRegistrationMBeanRegistration.postRegister(java.lang.Boolean)
public void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionMBeanRegistration.preDeregister()public void postDeregister()
postDeregister in interface MBeanRegistrationMBeanRegistration.postDeregister()public MBeanServer getMBeanServer()
null if not registered anywhere.
public ObjectName getObjectName()
null if not registered in
an MBeanServer.
public mazz.i18n.Logger getLog()
public void startService()
public void stopService()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||