Class ThreadProfiler

java.lang.Object
javax.management.NotificationBroadcasterSupport
calibration.java.mx.jmx.mbeans.ThreadProfiler
All Implemented Interfaces:
ThreadProfilerMXBean, NotificationBroadcaster, NotificationEmitter

public final class ThreadProfiler extends NotificationBroadcasterSupport implements ThreadProfilerMXBean
The Class ThreadProfiler.
  • Constructor Details

    • ThreadProfiler

      public ThreadProfiler()
  • Method Details

    • getThreadCounter

      public long getThreadCounter()
      Gets the thread counter.
      Specified by:
      getThreadCounter in interface ThreadProfilerMXBean
      Returns:
      the thread counter
    • incrementThreadCounter

      public void incrementThreadCounter()
      Increment thread counter.
    • decrementThreadCounter

      public long decrementThreadCounter()
      Decrement thread counter.
      Returns:
      the long
    • getMaxMethodAllocatedBytes

      public long getMaxMethodAllocatedBytes()
      Gets the max method allocated bytes.
      Specified by:
      getMaxMethodAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the max method allocated bytes
    • getMinMethodAllocatedBytes

      public long getMinMethodAllocatedBytes()
      Gets the min method allocated bytes.
      Specified by:
      getMinMethodAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the min method allocated bytes
    • getMaxThreadAllocatedBytes

      public long getMaxThreadAllocatedBytes()
      Gets the max thread allocated bytes.
      Specified by:
      getMaxThreadAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the max thread allocated bytes
    • getMinThreadAllocatedBytes

      public long getMinThreadAllocatedBytes()
      Gets the min thread allocated bytes.
      Specified by:
      getMinThreadAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the min thread allocated bytes
    • getThreadUserTime

      public final long getThreadUserTime()
      Gets the thread user time.
      Specified by:
      getThreadUserTime in interface ThreadProfilerMXBean
      Returns:
      the thread user time
    • getThreadCpuTime

      public final long getThreadCpuTime()
      Gets the thread cpu time.
      Specified by:
      getThreadCpuTime in interface ThreadProfilerMXBean
      Returns:
      the thread cpu time
    • getThreadSystemTime

      public final long getThreadSystemTime()
      Gets the thread system time.
      Specified by:
      getThreadSystemTime in interface ThreadProfilerMXBean
      Returns:
      the thread system time
    • getMethodAllocatedBytes

      public final long getMethodAllocatedBytes()
      Gets the method allocated bytes.
      Specified by:
      getMethodAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the method allocated bytes
    • getThreadAllocatedBytes

      public final long getThreadAllocatedBytes()
      Gets the thread allocated bytes.
      Specified by:
      getThreadAllocatedBytes in interface ThreadProfilerMXBean
      Returns:
      the thread allocated bytes
    • profile

      public void profile(long threadCpuTime, long threadUserTime, long methodAllocatedBytes, long cpuTime, long threadAllocatedBytes, long threads, long runAll, long errorsAll)
      Profile.
      Specified by:
      profile in interface ThreadProfilerMXBean
      Parameters:
      threadCpuTime - the thread cpu time
      threadUserTime - the thread user time
      methodAllocatedBytes - the method allocated bytes
      cpuTime - the cpu time
      threadAllocatedBytes - the thread allocated bytes
      threads - the threads
      runAll - the run all
      errorsAll - the errors all
    • getNotificationInfo

      public MBeanNotificationInfo[] getNotificationInfo()
      Specified by:
      getNotificationInfo in interface NotificationBroadcaster
      Overrides:
      getNotificationInfo in class NotificationBroadcasterSupport
    • getMaxMethodCpuTime

      public long getMaxMethodCpuTime()
      Gets the max cpu time.
      Specified by:
      getMaxMethodCpuTime in interface ThreadProfilerMXBean
      Returns:
      the max cpu time
    • getErrors

      public long getErrors()
      Gets the errors.
      Specified by:
      getErrors in interface ThreadProfilerMXBean
      Returns:
      the errors
    • getMinMethodCpuTime

      public long getMinMethodCpuTime()
      Gets the min cpu time.
      Specified by:
      getMinMethodCpuTime in interface ThreadProfilerMXBean
      Returns:
      the min cpu time
    • getRuns

      public long getRuns()
      Gets the runs.
      Specified by:
      getRuns in interface ThreadProfilerMXBean
      Returns:
      the runs
    • getMethodCpuTime

      public long getMethodCpuTime()
      Gets the cpu time.
      Specified by:
      getMethodCpuTime in interface ThreadProfilerMXBean
      Returns:
      the cpu time