java.lang.Object
com.ibm.dtfj.java.javacore.JCJavaMonitor
- All Implemented Interfaces:
JavaMonitor
-
Constructor Summary
ConstructorsConstructorDescriptionJCJavaMonitor(JCJavaRuntime javaRuntime, ImagePointer monitorPointer, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEnterWaiter(ImagePointer threadID) NOT in DTFJvoidaddNotifyWaiter(ImagePointer threadID) NOT in DTFJGet 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 monitorvoidsetObject(JavaObject encompassingObject) NOT in DTFJvoidsetOwner(long javaThread) NOT in DTFJMethods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface com.ibm.dtfj.java.JavaMonitor
equals, hashCode
-
Constructor Details
-
JCJavaMonitor
public JCJavaMonitor(JCJavaRuntime javaRuntime, ImagePointer monitorPointer, String name) throws JCInvalidArgumentsException - Throws:
JCInvalidArgumentsException
-
-
Method Details
-
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
-
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:
-
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
-
addEnterWaiter
NOT in DTFJ- Parameters:
threadID-
-
addNotifyWaiter
NOT in DTFJ- Parameters:
threadID-
-
setObject
NOT in DTFJ- Parameters:
encompassingObject-
-
setOwner
public void setOwner(long javaThread) NOT in DTFJ- Parameters:
javaThread-
-