|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjava.lang.management.LockInfo
java.lang.management.MonitorInfo
public class MonitorInfo
객체의 모니터 락에 관한 정보입니다. 객체의 동기 블록 또는 메소드에 들어가면(자), 객체 모니터는 락 됩니다.
from
메소드로 지정된 속성을 가지는 CompositeData
에 매핑 됩니다.
생성자 의 개요 | |
---|---|
MonitorInfo (String className,
int identityHashCode,
int stackDepth,
StackTraceElement stackFrame)
MonitorInfo 객체를 구축합니다. |
메소드의 개요 | |
---|---|
static MonitorInfo |
from (CompositeData cd)
지정된 CompositeData 에 의해 나타내지는 MonitorInfo 객체를 돌려줍니다. |
int |
getLockedStackDepth ()
객체 모니터가 락 된 스택 트레이스의 깊이를 돌려줍니다. |
StackTraceElement |
getLockedStackFrame ()
객체 모니터를 잠근 스택 프레임을 돌려줍니다. |
클래스 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
- 락 객체의 클래스의 완전한 이름(FQN)identityHashCode
- 락 객체의 해시 코드
stackDepth
- 객체 모니터가 락 된 스택 트레이스의 깊이stackFrame
- 객체 모니터를 잠근 스택 프레임
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 Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.