org.jgroups.jmx.protocols
Class BARRIER

java.lang.Object
  extended by org.jgroups.jmx.Protocol
      extended by org.jgroups.jmx.protocols.BARRIER
All Implemented Interfaces:
ProtocolMBean, BARRIERMBean

public class BARRIER
extends Protocol
implements BARRIERMBean

JMX wrapper for BARRIER protocol.

Author:
rpike

Constructor Summary
BARRIER()
           
BARRIER(Protocol p)
           
 
Method Summary
 void attachProtocol(Protocol p)
           
 int getInFlightThreadsCount()
          Returns the current count of in-flight threads.
 long getMaxCloseTime()
          Gets configured max_close_time value (ms).
 boolean isClosed()
          Indicates if barrier is currently closed.
 boolean isOpenerScheduled()
          Returns true if barrier_opener_future is non-null.
 
Methods inherited from class org.jgroups.jmx.Protocol
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, setProperties, setStatsEnabled, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jgroups.jmx.ProtocolMBean
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, setProperties, setStatsEnabled, start, stop
 

Constructor Detail

BARRIER

public BARRIER()

BARRIER

public BARRIER(Protocol p)
Method Detail

attachProtocol

public void attachProtocol(Protocol p)
Overrides:
attachProtocol in class Protocol

getInFlightThreadsCount

public int getInFlightThreadsCount()
Description copied from interface: BARRIERMBean
Returns the current count of in-flight threads.

In-flight threads are those currently processing in higher-level protocols.

Specified by:
getInFlightThreadsCount in interface BARRIERMBean
Returns:
in-flight threads count

getMaxCloseTime

public long getMaxCloseTime()
Description copied from interface: BARRIERMBean
Gets configured max_close_time value (ms).

Specified by:
getMaxCloseTime in interface BARRIERMBean

isClosed

public boolean isClosed()
Description copied from interface: BARRIERMBean
Indicates if barrier is currently closed.

Specified by:
isClosed in interface BARRIERMBean

isOpenerScheduled

public boolean isOpenerScheduled()
Description copied from interface: BARRIERMBean
Returns true if barrier_opener_future is non-null.

Specified by:
isOpenerScheduled in interface BARRIERMBean


Copyright ? 1998-2008 Bela Ban. All Rights Reserved.