com.hazelcast.jmx
Class DataMBean

java.lang.Object
  extended by com.hazelcast.jmx.AbstractMBean<HazelcastInstance>
      extended by com.hazelcast.jmx.DataMBean
All Implemented Interfaces:
InstanceListener, EventListener, DynamicMBean, MBeanRegistration

public class DataMBean
extends AbstractMBean<HazelcastInstance>
implements InstanceListener

Manager of data instances and collects general statistics.

Author:
Marco Ferrante, DISI - University of Genova

Field Summary
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
managementService, mbeanServer
 
Constructor Summary
protected DataMBean(ManagementService managementService)
           
 
Method Summary
 int getInstanceCount()
           
 long getInstancesCreated()
           
 double getInstancesCreatedAvg()
           
 double getInstancesCreatedMax()
           
 long getInstancesDestroyed()
           
 double getInstancesDestroyedAvg()
           
 double getInstancesDestroyedMax()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 void instanceCreated(InstanceEvent event)
           
 void instanceDestroyed(InstanceEvent event)
           
 void postDeregister()
          From interface MBeanRegistration
 void postRegister(Boolean registrationDone)
          From interface MBeanRegistration
 void preDeregister()
          From interface MBeanRegistration
 void registerInstance(Object instance)
           
 void resetStats()
          Resets statistics
 void unregisterInstance(Object instance)
           
 
Methods inherited from class com.hazelcast.jmx.AbstractMBean
getAttribute, getAttributes, getManagedObject, getMBeanInfo, getObjectName, getParentName, invoke, preRegister, refresh, setAttribute, setAttributes, setParentName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataMBean

protected DataMBean(ManagementService managementService)
Method Detail

getNameSpec

public ObjectNameSpec getNameSpec()
Description copied from class: AbstractMBean
Override to provide a JMX name

Overrides:
getNameSpec in class AbstractMBean<HazelcastInstance>

postRegister

public void postRegister(Boolean registrationDone)
Description copied from class: AbstractMBean
From interface MBeanRegistration

Specified by:
postRegister in interface MBeanRegistration
Overrides:
postRegister in class AbstractMBean<HazelcastInstance>

preDeregister

public void preDeregister()
                   throws Exception
Description copied from class: AbstractMBean
From interface MBeanRegistration

Specified by:
preDeregister in interface MBeanRegistration
Overrides:
preDeregister in class AbstractMBean<HazelcastInstance>
Throws:
Exception

postDeregister

public void postDeregister()
Description copied from class: AbstractMBean
From interface MBeanRegistration

Specified by:
postDeregister in interface MBeanRegistration
Overrides:
postDeregister in class AbstractMBean<HazelcastInstance>

instanceCreated

public void instanceCreated(InstanceEvent event)
Specified by:
instanceCreated in interface InstanceListener

instanceDestroyed

public void instanceDestroyed(InstanceEvent event)
Specified by:
instanceDestroyed in interface InstanceListener

registerInstance

public void registerInstance(Object instance)

unregisterInstance

public void unregisterInstance(Object instance)

resetStats

public void resetStats()
Resets statistics


getInstanceCount

public int getInstanceCount()

getInstancesCreated

public long getInstancesCreated()

getInstancesCreatedAvg

public double getInstancesCreatedAvg()

getInstancesCreatedMax

public double getInstancesCreatedMax()

getInstancesDestroyed

public long getInstancesDestroyed()

getInstancesDestroyedAvg

public double getInstancesDestroyedAvg()

getInstancesDestroyedMax

public double getInstancesDestroyedMax()


Copyright © 2008-2012 Hazel Ltd. All Rights Reserved.