Class ThreadInformation


  • @ThreadSafe
    public final class ThreadInformation
    extends java.lang.Object
    Utility to query Thread Information performance counter
    • Constructor Detail

      • ThreadInformation

        private ThreadInformation()
    • Method Detail

      • queryThreadCounters

        public static Pair<java.util.List<java.lang.String>,​java.util.Map<ThreadInformation.ThreadPerformanceProperty,​java.util.List<java.lang.Long>>> queryThreadCounters()
        Returns thread counters.
        Returns:
        Thread counters for each thread.
      • queryThreadCounters

        public static Pair<java.util.List<java.lang.String>,​java.util.Map<ThreadInformation.ThreadPerformanceProperty,​java.util.List<java.lang.Long>>> queryThreadCounters​(java.lang.String name,
                                                                                                                                                                                       int threadNum)
        Returns thread counters filtered to the specified process name and thread.
        Parameters:
        name - The process name to filter
        threadNum - The thread number to match. -1 matches all threads.
        Returns:
        Thread counters for each thread.