com.ibm.dtfj.java
Interface JavaMonitor


public interface JavaMonitor

Represents a monitor, either an object monitor or a raw monitor.


Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.Iterator getEnterWaiters()
           
 java.lang.String 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.
 java.util.Iterator getNotifyWaiters()
           
 JavaObject getObject()
           
 JavaThread getOwner()
           
 int hashCode()
           
 

Method Detail

getObject

JavaObject getObject()
Returns:
the object associated with this monitor, or null if this is a raw monitor

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.

Returns:
the name of the monitor (never null)
Throws:
CorruptDataException

getOwner

JavaThread getOwner()
                    throws CorruptDataException
Returns:
the owner of the monitor, or null if the monitor is unowned
Throws:
CorruptDataException

getEnterWaiters

java.util.Iterator getEnterWaiters()
Returns:
an iterator over the collection of threads waiting to enter this monitor
See Also:
JavaThread, CorruptData

getNotifyWaiters

java.util.Iterator getNotifyWaiters()
Returns:
an iterator over the collection of threads waiting to be notified on this monitor
See Also:
JavaThread, CorruptData

equals

boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
Parameters:
obj -
Returns:
True obj refers to the same Java Monitor in the image

hashCode

int hashCode()
Overrides:
hashCode in class java.lang.Object