java.lang.Object | ||
↳ | java.lang.management.LockInfo | |
↳ | java.lang.management.MonitorInfo |
Information about an object monitor lock. An object monitor is locked when entering a synchronization block or method on that object.
CompositeData
with attributes as specified in
the from
method.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a MonitorInfo object.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns a MonitorInfo object represented by the
given CompositeData.
| |||||||||||
Returns the depth in the stack trace where the object monitor
was locked.
| |||||||||||
Returns the stack frame that locked the object monitor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.management.LockInfo
| |||||||||||
From class
java.lang.Object
|
Construct a MonitorInfo object.
className | the fully qualified name of the class of the lock object. |
---|---|
identityHashCode | the identity hash code of the lock object. |
stackDepth | the depth in the stack trace where the object monitor was locked. |
stackFrame | the stack frame that locked the object monitor. |
IllegalArgumentException | if stackDepth ≥ 0 but stackFrame is null, or stackDepth < 0 but stackFrame is not null. |
---|
Returns a MonitorInfo object represented by the
given CompositeData.
The given CompositeData must contain the following attributes
as well as the attributes specified in the
mapped type for the LockInfo
class:
Attribute Name Type lockedStackFrame CompositeData as specified in the stackTrace attribute defined in the ThreadInfo.from
method.lockedStackDepth java.lang.Integer
cd | CompositeData representing a MonitorInfo |
---|
IllegalArgumentException | if cd does not represent a MonitorInfo with the attributes described above. |
---|
Returns the depth in the stack trace where the object monitor
was locked. The depth is the index to the StackTraceElement
array returned in the getStackTrace()
method.
Returns the stack frame that locked the object monitor.