Class BARRIER
java.lang.Object
org.jgroups.jmx.Protocol
org.jgroups.jmx.protocols.BARRIER
- All Implemented Interfaces:
ProtocolMBean, BARRIERMBean
JMX wrapper for BARRIER protocol.
- Author:
- rpike
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintReturns the current count of in-flight threads.longGets configured max_close_time value (ms).booleanisClosed()Indicates if barrier is currently closed.booleanReturns true if barrier_opener_future is non-null.Methods inherited from class Protocol
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, setProperties, setStatsEnabled, start, stopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ProtocolMBean
create, destroy, dumpStats, getName, getPropertiesAsString, getStatsEnabled, printStats, resetStats, setProperties, setStatsEnabled, start, stop
-
Constructor Details
-
BARRIER
public BARRIER() -
BARRIER
-
-
Method Details
-
attachProtocol
- 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
-