MonitorInfo is mapped to a CompositeData
with attributes as specified in
the from method.
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private StackTraceElement |
| Access | Constructor and Description |
|---|---|
| public | MonitorInfo(String
the fully qualified name of the class of the lock object. className, int the identityHashCode, int identity hash code of the lock object.the depth in the stack trace where the object monitor
was locked. stackDepth, StackTraceElement the stack frame that locked the object monitor. stackFrame)Construct a |
| Modifier and Type | Method and Description |
|---|---|
| public static MonitorInfo | Returns: aMonitorInfo object represented
by cd if cd is not null;
null otherwise.CompositeData representing a MonitorInfoHides java. Returns a |
| public int | Returns: the depth in the stack trace where the object monitor was locked, or a negative number if not available.Returns the depth in the stack trace where the object monitor was locked. |
| public StackTraceElement | Returns: StackTraceElement that locked the object monitor,
or null if not available.Returns the stack frame that locked the object monitor. |
| stackDepth | back to summary |
|---|---|
| private int stackDepth | |
| stackFrame | back to summary |
|---|---|
| private StackTraceElement stackFrame | |
| MonitorInfo | back to summary |
|---|---|
| public MonitorInfo(String className, int identityHashCode, int stackDepth, StackTraceElement stackFrame) Construct a
| |
| from | back to summary | ||||||
|---|---|---|---|---|---|---|---|
| public static MonitorInfo from(CompositeData cd) Hides java. Returns a
| |||||||
| getLockedStackDepth | back to summary |
|---|---|
| public int getLockedStackDepth() Returns the depth in the stack trace where the object monitor
was locked. The depth is the index to the
| |
| getLockedStackFrame | back to summary |
|---|---|
| public StackTraceElement getLockedStackFrame() Returns the stack frame that locked the object monitor.
| |