Package org.jgroups.jmx.protocols
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 TypeMethodDescriptionvoid
int
Returns the current count of in-flight threads.long
Gets configured max_close_time value (ms).boolean
isClosed()
Indicates if barrier is currently closed.boolean
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 Details
-
BARRIER
public BARRIER() -
BARRIER
-
-
Method Details
-
attachProtocol
- Overrides:
attachProtocol
in classProtocol
-
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 interfaceBARRIERMBean
- 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 interfaceBARRIERMBean
-
isClosed
public boolean isClosed()Description copied from interface:BARRIERMBean
Indicates if barrier is currently closed.- Specified by:
isClosed
in interfaceBARRIERMBean
-
isOpenerScheduled
public boolean isOpenerScheduled()Description copied from interface:BARRIERMBean
Returns true if barrier_opener_future is non-null.- Specified by:
isOpenerScheduled
in interfaceBARRIERMBean
-