|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface representing a monitor from a specific thread snapshot. Due to the difficulty of giving a unique identification of a monitor without having to keep a direct reference to the Java object (thereby never freeing it for garbage collection), the identity of monitors can not be completely guaranteed. The SnapshotMonitor gives the following promise:
Field Summary | |
static int |
LOCK_TYPE_FAT
Monitor is a fat lock |
static int |
LOCK_TYPE_NONE
Monitor is not locked |
static int |
LOCK_TYPE_RECURSIVE
Monitor is recursively locked |
static int |
LOCK_TYPE_THIN
Monitor is a thin lock |
static int |
LOCK_TYPE_UNKNOWN
Monitor is locked with an unknown type |
Method Summary | |
java.lang.String |
getClassName()
Return the fully qualified name of the class this monitor belongs to. |
long |
getID()
Return the ID of this monitor. |
int |
getLockType()
Return the type of this lock. |
java.lang.String |
getLockTypeString()
Return a string describing the type of this lock. |
int |
getOwnerThreadID()
Return the thread ID of the thread owning this lock. |
Methods inherited from interface com.bea.jvm.Describable |
getDescription |
Field Detail |
public static final int LOCK_TYPE_UNKNOWN
public static final int LOCK_TYPE_NONE
public static final int LOCK_TYPE_THIN
public static final int LOCK_TYPE_FAT
public static final int LOCK_TYPE_RECURSIVE
Method Detail |
public long getID()
public java.lang.String getClassName()
public int getLockType()
getClassName()
returns
null, then this monitor might not have a specified lock
type. In this case, LOCK_TYPE_NONE is returned.
public java.lang.String getLockTypeString()
getLockType()
public int getOwnerThreadID()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |