com.hazelcast.jmx
Class HazelcastMBean<T>
java.lang.Object
com.hazelcast.jmx.HazelcastMBean<T>
- Type Parameters:
T
- represents management bean to be registered.
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration
- Direct Known Subclasses:
- AtomicLongMBean, AtomicReferenceMBean, ClientEngineMBean, ConnectionManagerMBean, CountDownLatchMBean, EventServiceMBean, ExecutorServiceMBean, InstanceMBean, ListMBean, LockMBean, ManagedExecutorServiceMBean, MapMBean, MultiMapMBean, NodeMBean, OperationServiceMBean, PartitionServiceMBean, ProxyServiceMBean, QueueMBean, ReplicatedMapMBean, SemaphoreMBean, SetMBean, TopicMBean
public abstract class HazelcastMBean<T>
- extends Object
- implements DynamicMBean, MBeanRegistration
Base class for beans registered to JMX by Hazelcast.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
attributeMap
protected HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> attributeMap
operationMap
protected HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> operationMap
HazelcastMBean
protected HazelcastMBean(T managedObject,
ManagementService service)
register
public void register(HazelcastMBean mbean)
getAttribute
public Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Specified by:
getAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
setObjectName
public void setObjectName(Map<String,String> properties)
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Specified by:
setAttribute
in interface DynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributes
in interface DynamicMBean
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes
in interface DynamicMBean
invoke
public Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
- Specified by:
invoke
in interface DynamicMBean
- Throws:
MBeanException
ReflectionException
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface DynamicMBean
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws Exception
- Specified by:
preRegister
in interface MBeanRegistration
- Throws:
Exception
postRegister
public void postRegister(Boolean registrationDone)
- Specified by:
postRegister
in interface MBeanRegistration
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister
in interface MBeanRegistration
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister
in interface MBeanRegistration
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.