Package org.glassfish.gmbal.impl
Class MBeanImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.glassfish.gmbal.impl.MBeanImpl
- All Implemented Interfaces:
DynamicMBean,NotificationBroadcaster,NotificationEmitter,GmbalMBean,org.glassfish.pfl.basic.facet.FacetAccessor
public class MBeanImpl
extends NotificationBroadcasterSupport
implements org.glassfish.pfl.basic.facet.FacetAccessor, GmbalMBean
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MBeanNotificationInfo[]private org.glassfish.pfl.basic.facet.FacetAccessorCode for dynamic inheritance support: use invoke with reflection to call dynamically inherited classes.private Stringprivate ObjectNameprivate MBeanImplprivate Stringprivate booleanprivate MBeanServerprivate final MBeanSkeletonprivate booleanprivate Objectprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid<T> voidaddFacet(T obj) children()boolean<T> Tfacets()getAttribute(String attribute) getAttributes(String[] attributes) getParentPathPart(String rootParentPrefix) inthashCode()name()voidvoidobjectName(ObjectName oname) parent()voidvoidregister()voidremoveChild(MBeanImpl child) voidremoveFacet(Class<?> cls) private StringrestName()private voidvoidvoidsetAttribute(Attribute attribute) setAttributes(AttributeList attributes) skeleton()booleanvoidsuspended(boolean flag) target()toString()type()voidMethods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListenerMethods inherited from interface javax.management.NotificationEmitter
removeNotificationListener
-
Field Details
-
registered
private boolean registered -
skel
-
type
-
name
-
oname
-
parent
-
subTypes
-
children
-
target
-
server
-
parentPathForObjectName
-
suspended
private boolean suspended -
ATTRIBUTE_CHANGE_NOTIFICATION_INFO
-
facetAccessorDelegate
private org.glassfish.pfl.basic.facet.FacetAccessor facetAccessorDelegateCode for dynamic inheritance support: use invoke with reflection to call dynamically inherited classes.
-
-
Constructor Details
-
MBeanImpl
-
-
Method Details
-
equals
-
hashCode
public int hashCode() -
toString
-
skeleton
-
type
-
target
-
name
-
name
-
objectName
-
objectName
-
parent
-
parent
-
children
-
addChild
-
removeChild
-
restNameHelper
-
restName
-
getParentPathPart
-
suspended
public boolean suspended() -
suspended
public void suspended(boolean flag) -
register
public void register() throws InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException -
unregister
-
getAttribute
public Object getAttribute(String attribute) throws AttributeNotFoundException, MBeanException, ReflectionException - Specified by:
getAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionMBeanExceptionReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttributein interfaceDynamicMBean- Throws:
AttributeNotFoundExceptionInvalidAttributeValueExceptionMBeanExceptionReflectionException
-
getAttributes
- Specified by:
getAttributesin interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributesin interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invokein interfaceDynamicMBean- Throws:
MBeanExceptionReflectionException
-
getNotificationInfo
- Specified by:
getNotificationInfoin interfaceNotificationBroadcaster- Overrides:
getNotificationInfoin classNotificationBroadcasterSupport
-
getMBeanInfo
- Specified by:
getMBeanInfoin interfaceDynamicMBean
-
facet
- Specified by:
facetin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
addFacet
public <T> void addFacet(T obj) - Specified by:
addFacetin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
removeFacet
- Specified by:
removeFacetin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
invoke
- Specified by:
invokein interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
facets
- Specified by:
facetsin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
get
- Specified by:
getin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
set
- Specified by:
setin interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-