|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface ThreadSnapshot.Monitor
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. |
long |
getOwnerThreadID()
Return the thread ID of the thread owning this lock. |
Methods inherited from interface com.bea.jvm.Describable |
---|
getDescription |
Field Detail |
---|
static final int LOCK_TYPE_UNKNOWN
static final int LOCK_TYPE_NONE
static final int LOCK_TYPE_THIN
static final int LOCK_TYPE_FAT
static final int LOCK_TYPE_RECURSIVE
Method Detail |
---|
long getID()
java.lang.String getClassName()
int getLockType()
getClassName()
returns
null, then this monitor might not have a specified lock
type. In this case, LOCK_TYPE_NONE is returned.
java.lang.String getLockTypeString()
getLockType()
long getOwnerThreadID()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |