com.hazelcast.jmx
Class AtomicNumberMBean

java.lang.Object
  extended by com.hazelcast.jmx.AbstractMBean<AtomicNumber>
      extended by com.hazelcast.jmx.AtomicNumberMBean
All Implemented Interfaces:
DynamicMBean, MBeanRegistration

public class AtomicNumberMBean
extends AbstractMBean<AtomicNumber>

MBean for AtomicNumber

Author:
Vladimir Dolzhenko, vladimir.dolzhenko@gmail.com

Field Summary
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
logger, managementService, mbeanServer
 
Constructor Summary
AtomicNumberMBean(AtomicNumber managedObject, ManagementService managementService)
           
 
Method Summary
 void add(long delta)
           
 void compareAndSet(long expectedValue, long newValue)
           
 void decrementAndGet()
           
 long get()
           
 long getActualValue()
           
 long getAdd(long delta)
           
 String getName()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 long getSet(long delta)
           
 void incrementAndGet()
           
 void reset()
           
 void set(long newValue)
           
 
Methods inherited from class com.hazelcast.jmx.AbstractMBean
getAttribute, getAttributes, getManagedObject, getMBeanInfo, getObjectName, getParentName, invoke, postDeregister, postRegister, preDeregister, 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

AtomicNumberMBean

public AtomicNumberMBean(AtomicNumber 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<AtomicNumber>

getActualValue

public long getActualValue()

getName

public String getName()

get

public long get()

set

public void set(long newValue)

add

public void add(long delta)

getAdd

public long getAdd(long delta)

getSet

public long getSet(long delta)

incrementAndGet

public void incrementAndGet()

decrementAndGet

public void decrementAndGet()

reset

public void reset()

compareAndSet

public void compareAndSet(long expectedValue,
                          long newValue)


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