com.hazelcast.jmx
Class TopicMBean

java.lang.Object
  extended by com.hazelcast.jmx.AbstractMBean<ITopic<?>>
      extended by com.hazelcast.jmx.TopicMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration

public class TopicMBean
extends AbstractMBean<ITopic<?>>

Management bean for Hazelcst Topic

Author:
Marco Ferrante, DISI - University of Genoa

Field Summary
protected  MessageListener listener
           
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
logger, managementService, mbeanServer
 
Constructor Summary
TopicMBean(ITopic<?> topic, ManagementService managementService)
           
 
Method Summary
 String getConfig()
           
 long getItemsReceived()
           
 double getItemsReceivedAvg()
           
 double getItemsReceivedMax()
           
 String getName()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 void postRegister(Boolean registrationDone)
          From interface MBeanRegistration
 void preDeregister()
          From interface MBeanRegistration
 void resetStats()
          Resets statistics
 
Methods inherited from class com.hazelcast.jmx.AbstractMBean
getAttribute, getAttributes, getManagedObject, getMBeanInfo, getObjectName, getParentName, invoke, postDeregister, preRegister, refresh, setAttribute, setAttributes, setParentName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected MessageListener listener
Constructor Detail

TopicMBean

public TopicMBean(ITopic<?> topic,
                  ManagementService managementService)
Method Detail

getNameSpec

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

Overrides:
getNameSpec in class AbstractMBean<ITopic<?>>

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<ITopic<?>>

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<ITopic<?>>
Throws:
Exception

resetStats

public void resetStats()
Resets statistics


getName

public String getName()

getConfig

public String getConfig()

getItemsReceived

public long getItemsReceived()

getItemsReceivedAvg

public double getItemsReceivedAvg()

getItemsReceivedMax

public double getItemsReceivedMax()


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