Package org.jgroups.jmx.protocols
Class BARRIER
- java.lang.Object
-
- org.jgroups.jmx.Protocol
-
- org.jgroups.jmx.protocols.BARRIER
-
- All Implemented Interfaces:
ProtocolMBean,BARRIERMBean
public class BARRIER extends Protocol implements BARRIERMBean
JMX wrapper for BARRIER protocol.- Author:
- rpike
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachProtocol(Protocol p)intgetInFlightThreadsCount()Returns the current count of in-flight threads.longgetMaxCloseTime()Gets configured max_close_time value (ms).booleanisClosed()Indicates if barrier is currently closed.booleanisOpenerScheduled()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:
attachProtocolin classProtocol
-
getInFlightThreadsCount
public int getInFlightThreadsCount()
Description copied from interface:BARRIERMBeanReturns the current count of in-flight threads.In-flight threads are those currently processing in higher-level protocols.
- Specified by:
getInFlightThreadsCountin interfaceBARRIERMBean- Returns:
- in-flight threads count
-
getMaxCloseTime
public long getMaxCloseTime()
Description copied from interface:BARRIERMBeanGets configured max_close_time value (ms).- Specified by:
getMaxCloseTimein interfaceBARRIERMBean
-
isClosed
public boolean isClosed()
Description copied from interface:BARRIERMBeanIndicates if barrier is currently closed.- Specified by:
isClosedin interfaceBARRIERMBean
-
isOpenerScheduled
public boolean isOpenerScheduled()
Description copied from interface:BARRIERMBeanReturns true if barrier_opener_future is non-null.- Specified by:
isOpenerScheduledin interfaceBARRIERMBean
-
-