com.hazelcast.jmx
Class QueueMBean

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

public class QueueMBean
extends AbstractMBean<IQueue<?>>

Management bean for Hazelcst Queue

Author:
Marco Ferrante, DISI - University of Genoa

Field Summary
protected  ItemListener listener
           
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
logger, managementService, mbeanServer
 
Constructor Summary
QueueMBean(IQueue<?> queue, ManagementService managementService)
           
 
Method Summary
 void clear()
          Clear queue
 String getConfig()
           
 long getItemsReceived()
           
 double getItemsReceivedAvg()
           
 double getItemsReceivedMax()
           
 long getItemsServed()
           
 double getItemsServedAvg()
           
 double getItemsServedMax()
           
 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
 int size()
           
 
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 ItemListener listener
Constructor Detail

QueueMBean

public QueueMBean(IQueue<?> queue,
                  ManagementService managementService)
Method Detail

getNameSpec

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

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

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

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

resetStats

public void resetStats()
Resets statistics


clear

public void clear()
Clear queue


getName

public String getName()

getConfig

public String getConfig()

size

public int size()

getItemsReceived

public long getItemsReceived()

getItemsReceivedAvg

public double getItemsReceivedAvg()

getItemsReceivedMax

public double getItemsReceivedMax()

getItemsServed

public long getItemsServed()

getItemsServedAvg

public double getItemsServedAvg()

getItemsServedMax

public double getItemsServedMax()


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