com.hazelcast.jmx
Class HazelcastMBean<T>

java.lang.Object
  extended by com.hazelcast.jmx.HazelcastMBean<T>
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, SemaphoreMBean, SetMBean, TopicMBean

public abstract class HazelcastMBean<T>
extends Object
implements DynamicMBean, MBeanRegistration


Field Summary
protected  HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> attributeMap
           
protected  HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> operationMap
           
 
Constructor Summary
protected HazelcastMBean(T managedObject, ManagementService service)
           
 
Method Summary
 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)
           
 void register(HazelcastMBean mbean)
           
 void setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 void setObjectName(Hashtable<String,String> properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

attributeMap

protected HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> attributeMap

operationMap

protected HashMap<String,com.hazelcast.jmx.HazelcastMBean.BeanInfo> operationMap
Constructor Detail

HazelcastMBean

protected HazelcastMBean(T managedObject,
                         ManagementService service)
Method Detail

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(Hashtable<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 © 2014 Hazelcast, Inc.. All Rights Reserved.