java.lang.Object
com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
com.ibm.java.diagnostics.healthcenter.api.locking.impl.MonitorDataImpl
All Implemented Interfaces:
MonitorData, TimeData

public class MonitorDataImpl extends TimeDataImpl implements MonitorData
  • Field Summary

    Fields inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl

    eventTime
  • Constructor Summary

    Constructors
    Constructor
    Description
    MonitorDataImpl(double eventTime, double miss, long get, long slow, long recursive, double util, long hold, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Gets the total number of times the lock was acquired while it was inflated.
    long
    Gets the average amount of time the lock was held for.
    double
    Gets the percentage of total acquires for which the thread had to block before it could take the lock.
    Gets the name of this monitor.
    long
    Gets the total number of times the thread requested the lock when it already owned it.
    long
    Gets the total number of times the thread had to wait to acquire the lock.
    double
    Gets the percentage of monitoring time that the lock was held for.

    Methods inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl

    getTime

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.ibm.java.diagnostics.healthcenter.api.TimeData

    getTime
  • Constructor Details

    • MonitorDataImpl

      public MonitorDataImpl(double eventTime, double miss, long get, long slow, long recursive, double util, long hold, String name)
  • Method Details

    • getAverageHoldTime

      public long getAverageHoldTime()
      Description copied from interface: MonitorData
      Gets the average amount of time the lock was held for. This value is given in processor clock ticks.
      Specified by:
      getAverageHoldTime in interface MonitorData
      Returns:
      the average hold time, in clock ticks.
    • getAcquireCount

      public long getAcquireCount()
      Description copied from interface: MonitorData
      Gets the total number of times the lock was acquired while it was inflated.
      Specified by:
      getAcquireCount in interface MonitorData
      Returns:
      the total number of acquires.
    • getName

      public String getName()
      Description copied from interface: MonitorData
      Gets the name of this monitor.
      Specified by:
      getName in interface MonitorData
      Returns:
      a String representation of the monitor name.
    • getContention

      public double getContention()
      Description copied from interface: MonitorData
      Gets the percentage of total acquires for which the thread had to block before it could take the lock.
      Specified by:
      getContention in interface MonitorData
      Returns:
      the percentage of acquires that were contended.
    • getUtilisation

      public double getUtilisation()
      Description copied from interface: MonitorData
      Gets the percentage of monitoring time that the lock was held for.
      Specified by:
      getUtilisation in interface MonitorData
      Returns:
      the utilisation, as a percentage.
    • getRecursiveCount

      public long getRecursiveCount()
      Description copied from interface: MonitorData
      Gets the total number of times the thread requested the lock when it already owned it.
      Specified by:
      getRecursiveCount in interface MonitorData
      Returns:
      the total number of recursive acquires.
    • getSlowCount

      public long getSlowCount()
      Description copied from interface: MonitorData
      Gets the total number of times the thread had to wait to acquire the lock.
      Specified by:
      getSlowCount in interface MonitorData
      Returns:
      the total number of slow acquires.