Class MonitorDataImpl
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
-
Field Summary
Fields inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
eventTime -
Constructor Summary
ConstructorsConstructorDescriptionMonitorDataImpl(double eventTime, double miss, long get, long slow, long recursive, double util, long hold, String name) -
Method Summary
Modifier and TypeMethodDescriptionlongGets the total number of times the lock was acquired while it was inflated.longGets the average amount of time the lock was held for.doubleGets the percentage of total acquires for which the thread had to block before it could take the lock.getName()Gets the name of this monitor.longGets the total number of times the thread requested the lock when it already owned it.longGets the total number of times the thread had to wait to acquire the lock.doubleGets the percentage of monitoring time that the lock was held for.Methods inherited from class com.ibm.java.diagnostics.healthcenter.api.impl.TimeDataImpl
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:MonitorDataGets the average amount of time the lock was held for. This value is given in processor clock ticks.- Specified by:
getAverageHoldTimein interfaceMonitorData- Returns:
- the average hold time, in clock ticks.
-
getAcquireCount
public long getAcquireCount()Description copied from interface:MonitorDataGets the total number of times the lock was acquired while it was inflated.- Specified by:
getAcquireCountin interfaceMonitorData- Returns:
- the total number of acquires.
-
getName
Description copied from interface:MonitorDataGets the name of this monitor.- Specified by:
getNamein interfaceMonitorData- Returns:
- a String representation of the monitor name.
-
getContention
public double getContention()Description copied from interface:MonitorDataGets the percentage of total acquires for which the thread had to block before it could take the lock.- Specified by:
getContentionin interfaceMonitorData- Returns:
- the percentage of acquires that were contended.
-
getUtilisation
public double getUtilisation()Description copied from interface:MonitorDataGets the percentage of monitoring time that the lock was held for.- Specified by:
getUtilisationin interfaceMonitorData- Returns:
- the utilisation, as a percentage.
-
getRecursiveCount
public long getRecursiveCount()Description copied from interface:MonitorDataGets the total number of times the thread requested the lock when it already owned it.- Specified by:
getRecursiveCountin interfaceMonitorData- Returns:
- the total number of recursive acquires.
-
getSlowCount
public long getSlowCount()Description copied from interface:MonitorDataGets the total number of times the thread had to wait to acquire the lock.- Specified by:
getSlowCountin interfaceMonitorData- Returns:
- the total number of slow acquires.
-