Package co.paralleluniverse.fibers
Interface FibersMXBean
-
public interface FibersMXBean
An MXBean that monitors fibers scheduled by a singleFiberScheduler
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long[]
getAllFiberIds()
The IDs of all fibers in the scheduler.FiberInfo[]
getFiberInfo(long[] ids, boolean stack)
Returns an arrayFiberInfo
objects for a set of fibers.FiberInfo
getFiberInfo(long id, boolean stack)
Returns aFiberInfo
object for a single fiber.long
getMeanTimedWakeupLatency()
The average latency between the time fibers in the scheduler have asked to be awakened (by asleep
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 theRUNNING
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()
-
-
-
Method Detail
-
refresh
void refresh()
-
getNumActiveFibers
int getNumActiveFibers()
The number of non-terminated fibers in the scheduler.
-
getNumRunnableFibers
int getNumRunnableFibers()
The number of fibers currently in theRUNNING
state.
-
getNumWaitingFibers
int getNumWaitingFibers()
The number of fibers that are currently blocking.
-
getTimedQueueLength
int getTimedQueueLength()
-
getRunawayFibers
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.
-
getSpuriousWakeups
long getSpuriousWakeups()
-
getMeanTimedWakeupLatency
long getMeanTimedWakeupLatency()
The average latency between the time fibers in the scheduler have asked to be awakened (by asleep
or any other timed wait) and the time they've actually been awakened in the last 5 seconds.
-
getAllFiberIds
long[] getAllFiberIds()
The IDs of all fibers in the scheduler.null
if the scheduler has been constructed withdetailedInfo
equal tofalse
.
-
getFiberInfo
FiberInfo getFiberInfo(long id, boolean stack)
Returns aFiberInfo
object for a single fiber. Returnsnull
if the scheduler has been constructed withdetailedInfo
equal tofalse
.- Parameters:
id
- the fiber's id.stack
- whether the fiber's call stack is required.- Returns:
- a
FiberInfo
object for a single fiber, ornull
if the scheduler has been constructed withdetailedInfo
equal tofalse
.
-
getFiberInfo
FiberInfo[] getFiberInfo(long[] ids, boolean stack)
Returns an arrayFiberInfo
objects for a set of fibers. Returnsnull
if the scheduler has been constructed withdetailedInfo
equal tofalse
.- Parameters:
ids
- the fibers' ids.stack
- whether the fibers' call stack is required.- Returns:
- an array
FiberInfo
objects for a set of fibers, ornull
if the scheduler has been constructed withdetailedInfo
equal tofalse
.
-
-