public abstract class AbstractMarkerBean extends Object implements DynamicMBean, MBeanRegistration
AbstractJMXManager.| Modifier and Type | Field and Description |
|---|---|
protected ObjectName |
myName |
protected MBeanServer |
myServer |
| Constructor and Description |
|---|
AbstractMarkerBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
protected abstract void |
onDeregister(MBeanServer server,
ObjectName beanName)
Called when the marker bean has been deregistered from a server.
|
protected abstract void |
onRegister(MBeanServer server,
ObjectName beanName)
Called when registration is complete, to allow the subclass to register
with the JMXManager.
|
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
protected MBeanServer myServer
protected ObjectName myName
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundExceptionMBeanExceptionReflectionExceptionpublic void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBeanpublic Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke in interface DynamicMBeanMBeanExceptionReflectionExceptionpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBeanpublic ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister in interface MBeanRegistrationExceptionpublic void postRegister(Boolean registrationDone)
postRegister in interface MBeanRegistrationpublic void preDeregister()
throws Exception
preDeregister in interface MBeanRegistrationExceptionpublic void postDeregister()
postDeregister in interface MBeanRegistrationprotected abstract void onRegister(MBeanServer server, ObjectName beanName)
server - The MBeanServer that it was registered with.beanName - The name that it was registered with on that server.protected abstract void onDeregister(MBeanServer server, ObjectName beanName)
server - The MBeanServer that it was registered with.beanName - The name that it was registered with on that server.Copyright © 2023. All rights reserved.