Package co.paralleluniverse.fibers
Interface FibersMXBean
-
public interface FibersMXBeanAn 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 arrayFiberInfoobjects for a set of fibers.FiberInfogetFiberInfo(long id, boolean stack)Returns aFiberInfoobject for a single fiber.longgetMeanTimedWakeupLatency()The average latency between the time fibers in the scheduler have asked to be awakened (by asleepor any other timed wait) and the time they've actually been awakened in the last 5 seconds.intgetNumActiveFibers()The number of non-terminated fibers in the scheduler.intgetNumRunnableFibers()The number of fibers currently in theRUNNINGstate.intgetNumWaitingFibers()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.longgetSpuriousWakeups()intgetTimedQueueLength()voidrefresh()
-
-
-
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 theRUNNINGstate.
-
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 asleepor 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.nullif the scheduler has been constructed withdetailedInfoequal tofalse.
-
getFiberInfo
FiberInfo getFiberInfo(long id, boolean stack)
Returns aFiberInfoobject for a single fiber. Returnsnullif the scheduler has been constructed withdetailedInfoequal tofalse.- Parameters:
id- the fiber's id.stack- whether the fiber's call stack is required.- Returns:
- a
FiberInfoobject for a single fiber, ornullif the scheduler has been constructed withdetailedInfoequal tofalse.
-
getFiberInfo
FiberInfo[] getFiberInfo(long[] ids, boolean stack)
Returns an arrayFiberInfoobjects for a set of fibers. Returnsnullif the scheduler has been constructed withdetailedInfoequal tofalse.- Parameters:
ids- the fibers' ids.stack- whether the fibers' call stack is required.- Returns:
- an array
FiberInfoobjects for a set of fibers, ornullif the scheduler has been constructed withdetailedInfoequal tofalse.
-
-