com.ibm.dtfj.java
Interface JavaMonitor
- public interface JavaMonitor
Represents a monitor, either an object monitor or a raw monitor.
getObject
public JavaObject getObject()
- Returns:
- the object associated with this monitor, or null if this is a raw monitor
getName
public 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.
- Returns:
- the name of the monitor (never null)
- Throws:
CorruptDataException
getOwner
public JavaThread getOwner()
throws CorruptDataException
- Returns:
- the owner of the monitor, or null if the monitor is unowned
- Throws:
CorruptDataException
getEnterWaiters
public java.util.Iterator getEnterWaiters()
- Returns:
- an iterator over the collection of threads waiting to enter this monitor
- See Also:
JavaThread
,
CorruptData
getNotifyWaiters
public java.util.Iterator getNotifyWaiters()
- Returns:
- an iterator over the collection of threads waiting to be notified on
this monitor
- See Also:
JavaThread
,
CorruptData
getID
public ImagePointer getID()
- Returns:
- The pointer which uniquely identifies this monitor in memory.
equals
public boolean equals(java.lang.Object obj)
- Parameters:
obj
-
- Returns:
- True obj refers to the same Java Monitor in the image
hashCode
public int hashCode()