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, CountDownLatchMBean, InstanceMBean, ListMBean, LockMBean, MapMBean, MultiMapMBean, QueueMBean, SemaphoreMBean, SetMBean, TopicMBean

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

Author:
ali 1/30/13

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 setAttribute(Attribute attribute)
           
 AttributeList setAttributes(AttributeList attributes)
           
 
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

getAttribute

public Object getAttribute(String attribute)
                    throws AttributeNotFoundException,
                           MBeanException,
                           ReflectionException
Specified by:
getAttribute in interface DynamicMBean
Throws:
AttributeNotFoundException
MBeanException
ReflectionException

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