com.hazelcast.jmx
Class SemaphoreMBean

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

public class SemaphoreMBean
extends AbstractMBean<ISemaphore>

MBean for ISemaphore


Field Summary
 
Fields inherited from class com.hazelcast.jmx.AbstractMBean
logger, managementService, mbeanServer
 
Constructor Summary
SemaphoreMBean(ISemaphore managedObject, ManagementService managementService)
           
 
Method Summary
 int available()
           
 int drain()
           
 long getCurrentPermits()
           
 String getName()
           
 ObjectNameSpec getNameSpec()
          Override to provide a JMX name
 void reduce(int reduction)
           
 void release(int permits)
           
 
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

SemaphoreMBean

public SemaphoreMBean(ISemaphore 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<ISemaphore>

getCurrentPermits

public long getCurrentPermits()

getName

public String getName()

available

public int available()

drain

public int drain()

reduce

public void reduce(int reduction)

release

public void release(int permits)


Copyright 2008-2012 Hazel Ltd. All Rights Reserved.