java.lang.Object
com.ibm.j9ddr.vm29.view.dtfj.java.DTFJJavaObjectMonitor
- All Implemented Interfaces:
JavaMonitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison.Get the set of threads waiting to enter the monitorgetID()Get the identifier for this monitorgetName()Note that the name of a JavaMonitor is not necessarily meaningful but is provided here as it is usually present in the running VM.Get the set of threads waiting to be notified on the monitor (in the Object.wait method)Get the object associated with this monitor.getOwner()Get the thread which currently owns the monitorinthashCode()Answers an integer hash code for the receiver.
-
Constructor Details
-
DTFJJavaObjectMonitor
-
-
Method Details
-
getEnterWaiters
Description copied from interface:JavaMonitorGet the set of threads waiting to enter the monitor- Specified by:
getEnterWaitersin interfaceJavaMonitor- Returns:
- an iterator over the collection of threads waiting to enter this monitor
- See Also:
-
getID
Description copied from interface:JavaMonitorGet the identifier for this monitor- Specified by:
getIDin interfaceJavaMonitor- Returns:
- The pointer which uniquely identifies this monitor in memory.
-
getName
Description copied from interface:JavaMonitorNote that the name of a JavaMonitor is not necessarily meaningful but is provided here as it is usually present in the running VM. If there is no name for the monitor a synthetic name will be created by DTFJ.- Specified by:
getNamein interfaceJavaMonitor- Returns:
- the name of the monitor (never null)
- Throws:
CorruptDataException
-
getNotifyWaiters
Description copied from interface:JavaMonitorGet the set of threads waiting to be notified on the monitor (in the Object.wait method)- Specified by:
getNotifyWaitersin interfaceJavaMonitor- Returns:
- an iterator over the collection of threads waiting to be notified on this monitor
- See Also:
-
getObject
Description copied from interface:JavaMonitorGet the object associated with this monitor.- Specified by:
getObjectin interfaceJavaMonitor- Returns:
- the object associated with this monitor, or null if this is a raw monitor or a valid object could not be retrieved.
-
getOwner
Description copied from interface:JavaMonitorGet the thread which currently owns the monitor- Specified by:
getOwnerin interfaceJavaMonitor- Returns:
- the owner of the monitor, or null if the monitor is unowned
- Throws:
CorruptDataException
-
equals
Description copied from class:java.lang.ObjectCompares the argument to the receiver, and answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).- Specified by:
equalsin interfaceJavaMonitor- Overrides:
equalsin classObject- Parameters:
obj- Object the object to compare with this object.- Returns:
- boolean
trueif the object is the same as this objectfalseif it is different from this object. - See Also:
-
hashCode
public int hashCode()Description copied from class:java.lang.ObjectAnswers an integer hash code for the receiver. Any two objects which answertruewhen passed to.equalsmust answer the same value for this method.- Specified by:
hashCodein interfaceJavaMonitor- Overrides:
hashCodein classObject- Returns:
- the receiver's hash.
- See Also:
-