Interface FibersMXBean


  • public interface FibersMXBean
    An MXBean that monitors fibers scheduled by a single FiberScheduler.
    • 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 the RUNNING 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 a sleep 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 with detailedInfo equal to false.
      • getFiberInfo

        FiberInfo getFiberInfo​(long id,
                               boolean stack)
        Returns a FiberInfo object for a single fiber. Returns null if the scheduler has been constructed with detailedInfo equal to false.
        Parameters:
        id - the fiber's id.
        stack - whether the fiber's call stack is required.
        Returns:
        a FiberInfo object for a single fiber, or null if the scheduler has been constructed with detailedInfo equal to false.
      • getFiberInfo

        FiberInfo[] getFiberInfo​(long[] ids,
                                 boolean stack)
        Returns an array FiberInfo objects for a set of fibers. Returns null if the scheduler has been constructed with detailedInfo equal to false.
        Parameters:
        ids - the fibers' ids.
        stack - whether the fibers' call stack is required.
        Returns:
        an array FiberInfo objects for a set of fibers, or null if the scheduler has been constructed with detailedInfo equal to false.