ModelMBeanOperationInfo

ModelMBeanOperationInfo (모델 MBean 연산 정보)

ModelMBean의 관리 연산을 설명하는 객체예요. 연관된 설명자(Descriptor)와 DescriptorAccess 인터페이스 구현이 추가된 MBeanOperationInfo의 하위 클래스예요.

출처: Java API Reference

본문

ModelMBeanOperationInfo는 ModelMBean 연산에 대한 메타데이터를 담아요. 이 클래스의 설명자는 다음 필드를 정의하지만 이에 국한되지는 않아요.

  • name: 연산 이름
  • descriptorType: 반드시 "operation"이어야 해요.
  • class: 메서드가 정의된 클래스(정규화된 이름)
  • role: 반드시 "operation", "getter", "setter" 중 하나여야 해요.
  • targetObject / targetType: 메서드를 실행할 객체 / 객체 참조 타입(ObjectReference | Handle | EJBHandle | IOR | RMIReference)
  • value: 연산의 캐시된 값
  • currencyTimeLimit: 캐시된 값이 유효한 시간
  • visibility: 1-4

기본 설명자는 name, descriptorType, displayName, role 필드를 설정해요. name과 displayName의 기본값은 연산 이름이에요.

생성자는 여러 오버로드를 제공해요. Method 객체와 설명을 받는 버전, name/description/시그니처/반환 타입/영향도(impact)를 받는 버전, 그리고 각각에 설명자를 추가한 버전이 있어요.

주요 메서드로는 clone(), getDescriptor()/setDescriptor(Descriptor), toString()이 있어요. 이 클래스의 serialVersionUID6532732096650090465L이에요.

더 알아보기 (Learn more)

Java 공식 API