|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.lang.management.LockInfo
java.lang.management.MonitorInfo
public class MonitorInfo
關於物件監視器鎖的資訊。當在該物件上輸入一個同步塊或方法時,則鎖定物件監視器。
CompositeData,並具有 from 方法中指定的屬性。
| 建構子摘要 | |
|---|---|
MonitorInfo(String className,
int identityHashCode,
int stackDepth,
StackTraceElement stackFrame)
建構一個 MonitorInfo 物件。 |
|
| 方法摘要 | |
|---|---|
static MonitorInfo |
from(CompositeData cd)
返回給定 CompositeData 表示的 MonitorInfo 物件。 |
int |
getLockedStackDepth()
返回鎖定物件監視器的堆疊(stack)空間追蹤中的深度。 |
StackTraceElement |
getLockedStackFrame()
返回鎖定物件監視器的堆疊(stack)訊框。 |
| 從類別 java.lang.management.LockInfo 繼承的方法 |
|---|
getClassName, getIdentityHashCode, toString |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public MonitorInfo(String className,
int identityHashCode,
int stackDepth,
StackTraceElement stackFrame)
className - 鎖物件的完全限定類別名稱。identityHashCode - 鎖物件的標識雜湊碼。stackDepth - 鎖定物件監視器的堆疊(stack)空間追蹤中的深度。stackFrame - 鎖定物件監視器的堆疊(stack)訊框。
IllegalArgumentException - 如果 stackDepth ≥ 0 但 stackFrame 為 null,或者 stackDepth < 0 但 stackFrame 不為 null。| 方法詳細資訊 |
|---|
public int getLockedStackDepth()
ThreadInfo.getStackTrace() 方法中返回的 StackTraceElement 陣列的索引。
public StackTraceElement getLockedStackFrame()
public static MonitorInfo from(CompositeData cd)
LockInfo 類別映射型別中指定的屬性:
屬性名稱 型別 lockedStackFrame ThreadInfo.from方法中定義的 stackTrace 屬性中指定的 CompositeData。lockedStackDepth java.lang.Integer
cd - 表示 MonitorInfo 的 CompositeData
IllegalArgumentException - 如果 cd 不表示具有上述屬性的 MonitorInfo。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。