T
- represents management bean to be registered.public abstract class HazelcastMBean<T> extends Object implements DynamicMBean, MBeanRegistration
Modifier and Type | Field and Description |
---|---|
protected HashMap<String,com.hazelcast.internal.jmx.HazelcastMBean.BeanInfo> |
attributeMap |
protected T |
managedObject |
protected HashMap<String,com.hazelcast.internal.jmx.HazelcastMBean.BeanInfo> |
operationMap |
protected long |
updateIntervalSec |
Modifier | Constructor and Description |
---|---|
protected |
HazelcastMBean(T managedObject,
ManagementService service) |
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attribute) |
AttributeList |
getAttributes(String[] attributes) |
MBeanInfo |
getMBeanInfo() |
Object |
invoke(String actionName,
Object[] params,
String[] signature) |
void |
postDeregister() |
void |
postRegister(Boolean registrationDone) |
void |
preDeregister() |
ObjectName |
preRegister(MBeanServer server,
ObjectName name) |
static void |
register(HazelcastMBean mbean) |
void |
setAttribute(Attribute attribute) |
AttributeList |
setAttributes(AttributeList attributes) |
void |
setObjectName(Map<String,String> properties) |
static void |
unregister(HazelcastMBean mbean) |
protected HashMap<String,com.hazelcast.internal.jmx.HazelcastMBean.BeanInfo> attributeMap
protected HashMap<String,com.hazelcast.internal.jmx.HazelcastMBean.BeanInfo> operationMap
protected final long updateIntervalSec
protected final T managedObject
protected HazelcastMBean(T managedObject, ManagementService service)
public static void register(HazelcastMBean mbean)
public static void unregister(HazelcastMBean mbean)
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException
getAttribute
in interface DynamicMBean
AttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
setAttribute
in interface DynamicMBean
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
public AttributeList getAttributes(String[] attributes)
getAttributes
in interface DynamicMBean
public AttributeList setAttributes(AttributeList attributes)
setAttributes
in interface DynamicMBean
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
MBeanException
ReflectionException
public MBeanInfo getMBeanInfo()
getMBeanInfo
in interface DynamicMBean
public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
preRegister
in interface MBeanRegistration
Exception
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister() throws Exception
preDeregister
in interface MBeanRegistration
Exception
public void postDeregister()
postDeregister
in interface MBeanRegistration
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.