com.hazelcast.jmx
Class ListMBean

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

public class ListMBean
extends AbstractMBean<IList<?>>

MBean for Collections

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
ListMBean(IList<?> managedObject, ManagementService managementService)
           
 
Method Summary
protected  void addItem(Object item)
           
 void clear()
           
 List<?> getItems()
           
 long getItemsReceived()
           
 long getItemsServed()
           
 String getName()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 int getSize()
           
 void postRegister(Boolean registrationDone)
          From interface MBeanRegistration
 void preDeregister()
          From interface MBeanRegistration
protected  void removeItem(Object item)
           
 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 ItemListener listener
Constructor Detail

ListMBean

public ListMBean(IList<?> managedObject,
                 ManagementService managementService)
Method Detail

getNameSpec

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

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

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

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

addItem

protected void addItem(Object item)

removeItem

protected void removeItem(Object item)

resetStats

public void resetStats()
Resets statistics


clear

public void clear()

getName

public String getName()

getSize

public int getSize()

getItems

public List<?> getItems()

getItemsReceived

public long getItemsReceived()

getItemsServed

public long getItemsServed()


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.