public interface FibersMXBean
FiberScheduler.| Modifier and Type | Method and Description |
|---|---|
long[] |
getAllFiberIds()
The IDs of all fibers in the scheduler.
|
FiberInfo[] |
getFiberInfo(long[] ids,
boolean stack)
Returns an array
FiberInfo objects for a set of fibers. |
FiberInfo |
getFiberInfo(long id,
boolean stack)
Returns a
FiberInfo object for a single fiber. |
long |
getMeanTimedWakeupLatency()
The average latency between the time fibers in the scheduler have asked to be awakened (by a
sleep or any other timed wait)
and the time they've actually been awakened in the last 5 seconds. |
int |
getNumActiveFibers()
The number of non-terminated fibers in the scheduler.
|
int |
getNumRunnableFibers()
The number of fibers currently in the
RUNNING state. |
int |
getNumWaitingFibers()
The number of fibers that are currently blocking.
|
java.util.Map<java.lang.String,java.lang.String> |
getRunawayFibers()
The fibers (and respective stack traces) that are currently holding their thread for a lengthy duration, either due to blocking
or a lengthy loop.
|
long |
getSpuriousWakeups() |
int |
getTimedQueueLength() |
void |
refresh() |
void refresh()
int getNumActiveFibers()
int getNumRunnableFibers()
RUNNING state.int getNumWaitingFibers()
int getTimedQueueLength()
java.util.Map<java.lang.String,java.lang.String> getRunawayFibers()
long getSpuriousWakeups()
long getMeanTimedWakeupLatency()
sleep or any other timed wait)
and the time they've actually been awakened in the last 5 seconds.long[] getAllFiberIds()
null if the scheduler has been constructed with detailedInfo equal to false.FiberInfo getFiberInfo(long id, boolean stack)
FiberInfo object for a single fiber. Returns null if the scheduler has been constructed with detailedInfo equal to false.id - the fiber's id.stack - whether the fiber's call stack is required.FiberInfo object for a single fiber, or null if the scheduler has been constructed with detailedInfo equal to false.FiberInfo[] getFiberInfo(long[] ids, boolean stack)
FiberInfo objects for a set of fibers. Returns null if the scheduler has been constructed with detailedInfo equal to false.ids - the fibers' ids.stack - whether the fibers' call stack is required.FiberInfo objects for a set of fibers, or null if the scheduler has been constructed with detailedInfo equal to false.