com.ibm.dtfj.java
Interface JavaMonitor
- public interface JavaMonitor
Method Summary
Modifier and Type | Method and Description |
---|---|
|
equals(java.lang.Object obj)
|
|
getEnterWaiters()
Get the set of threads waiting to enter the monitor
|
getID()
Get the identifier for this monitor
|
|
|
getName()
Note that the name of a JavaMonitor is not necessarily meaningful but is provided here as it is
usually present in the running VM.
|
|
getNotifyWaiters()
Get the set of threads waiting to be notified on the monitor (in the Object.wait method)
|
getObject()
Get the object associated with this monitor.
|
|
getOwner()
Get the thread which currently owns the monitor
|
|
|
hashCode()
|
Method Detail
getObject
- JavaObject getObject()
Get the object associated with this monitor.
Returns:
the object associated with this monitor, or null if this is a raw monitor or a valid object could not be retrieved.
getName
- java.lang.String getName()
- throws CorruptDataException
Note 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.
getOwner
- JavaThread getOwner()
- throws CorruptDataException
Get the thread which currently owns the monitor
getEnterWaiters
- java.util.Iterator getEnterWaiters( )
Get the set of threads waiting to enter the monitor
Returns:
an iterator over the collection of threads waiting to enter this monitor
See Also:
getNotifyWaiters
- java.util.Iterator getNotifyWaiters( )
Get the set of threads waiting to be notified on the monitor (in the Object.wait method)
Returns:
an iterator over the collection of threads waiting to be notified on
this monitor
See Also:
getID
- ImagePointer getID()
Get the identifier for this monitor
Returns:
The pointer which uniquely identifies this monitor in memory.
equals
- boolean equals(java.lang.Object obj)
Overrides:
equals
in class java.lang.Object
Parameters:
obj
- Returns:
True if the given object refers to the same Java Monitor in the image
hashCode
- int hashCode()
Overrides:
hashCode
in class java.lang.Object