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.FacetAccessor
Code for dynamic inheritance support: use invoke with reflection to call dynamically inherited classes.private String
private ObjectName
private MBeanImpl
private String
private boolean
private MBeanServer
private final MBeanSkeleton
private boolean
private Object
private final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
<T> void
addFacet
(T obj) children()
boolean
<T> T
facets()
getAttribute
(String attribute) getAttributes
(String[] attributes) getParentPathPart
(String rootParentPrefix) int
hashCode()
name()
void
void
objectName
(ObjectName oname) parent()
void
void
register()
void
removeChild
(MBeanImpl child) void
removeFacet
(Class<?> cls) private String
restName()
private void
void
void
setAttribute
(Attribute attribute) setAttributes
(AttributeList attributes) skeleton()
boolean
void
suspended
(boolean flag) target()
toString()
type()
void
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, removeNotificationListener
Methods 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:
getAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
MBeanException
ReflectionException
-
setAttribute
public void setAttribute(Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException - Specified by:
setAttribute
in interfaceDynamicMBean
- Throws:
AttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionException
-
getAttributes
- Specified by:
getAttributes
in interfaceDynamicMBean
-
setAttributes
- Specified by:
setAttributes
in interfaceDynamicMBean
-
invoke
public Object invoke(String actionName, Object[] params, String[] signature) throws MBeanException, ReflectionException - Specified by:
invoke
in interfaceDynamicMBean
- Throws:
MBeanException
ReflectionException
-
getNotificationInfo
- Specified by:
getNotificationInfo
in interfaceNotificationBroadcaster
- Overrides:
getNotificationInfo
in classNotificationBroadcasterSupport
-
getMBeanInfo
- Specified by:
getMBeanInfo
in interfaceDynamicMBean
-
facet
- Specified by:
facet
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
addFacet
public <T> void addFacet(T obj) - Specified by:
addFacet
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
removeFacet
- Specified by:
removeFacet
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
invoke
- Specified by:
invoke
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
facets
- Specified by:
facets
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
get
- Specified by:
get
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-
set
- Specified by:
set
in interfaceorg.glassfish.pfl.basic.facet.FacetAccessor
-