com.ibm.java.diagnostics.healthcenter.api.locking
Interface MonitorData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description longgetAcquireCount()Gets the total number of times the lock was acquired while it was inflated.longgetAverageHoldTime()Gets the average amount of time the lock was held for.doublegetContention()Gets the percentage of total acquires for which the thread had to block before it could take the lock.java.lang.StringgetName()Gets the name of this monitor.longgetRecursiveCount()Gets the total number of times the thread requested the lock when it already owned it.longgetSlowCount()Gets the total number of times the thread had to wait to acquire the lock.doublegetUtilisation()Gets the percentage of monitoring time that the lock was held for.
-
-
-
Method Detail
-
getContention
double getContention()
Gets the percentage of total acquires for which the thread had to block before it could take the lock.- Returns:
- the percentage of acquires that were contended.
-
getAcquireCount
long getAcquireCount()
Gets the total number of times the lock was acquired while it was inflated.- Returns:
- the total number of acquires.
-
getSlowCount
long getSlowCount()
Gets the total number of times the thread had to wait to acquire the lock.- Returns:
- the total number of slow acquires.
-
getRecursiveCount
long getRecursiveCount()
Gets the total number of times the thread requested the lock when it already owned it.- Returns:
- the total number of recursive acquires.
-
getUtilisation
double getUtilisation()
Gets the percentage of monitoring time that the lock was held for.- Returns:
- the utilisation, as a percentage.
-
getAverageHoldTime
long getAverageHoldTime()
Gets the average amount of time the lock was held for. This value is given in processor clock ticks.- Returns:
- the average hold time, in clock ticks.
-
getName
java.lang.String getName()
Gets the name of this monitor.- Returns:
- a String representation of the monitor name.
-
-