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 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 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
-
-