org.glassfish.gmbal.impl
Class MBeanImpl
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.glassfish.gmbal.impl.MBeanImpl
- All Implemented Interfaces:
- javax.management.DynamicMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter, GmbalMBean
public class MBeanImpl
- extends javax.management.NotificationBroadcasterSupport
- implements GmbalMBean
Constructor Summary |
MBeanImpl(MBeanSkeleton skel,
java.lang.Object obj,
javax.management.MBeanServer server,
java.lang.String type)
|
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.NotificationEmitter |
removeNotificationListener |
Methods inherited from interface javax.management.NotificationBroadcaster |
addNotificationListener, removeNotificationListener |
MBeanImpl
public MBeanImpl(MBeanSkeleton skel,
java.lang.Object obj,
javax.management.MBeanServer server,
java.lang.String type)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
skeleton
public MBeanSkeleton skeleton()
type
public java.lang.String type()
target
public java.lang.Object target()
name
public java.lang.String name()
name
public void name(java.lang.String str)
objectName
public javax.management.ObjectName objectName()
objectName
public void objectName(javax.management.ObjectName oname)
parent
public MBeanImpl parent()
parent
public void parent(MBeanImpl entity)
children
public java.util.Map<java.lang.String,java.util.Map<java.lang.String,MBeanImpl>> children()
addChild
public void addChild(MBeanImpl child)
removeChild
public void removeChild(MBeanImpl child)
getParentPathPart
public java.lang.String getParentPathPart(java.lang.String rootParentPrefix)
suspended
public boolean suspended()
suspended
public void suspended(boolean flag)
register
public void register()
throws javax.management.InstanceAlreadyExistsException,
javax.management.MBeanRegistrationException,
javax.management.NotCompliantMBeanException
- Throws:
javax.management.InstanceAlreadyExistsException
javax.management.MBeanRegistrationException
javax.management.NotCompliantMBeanException
unregister
public void unregister()
throws javax.management.InstanceNotFoundException,
javax.management.MBeanRegistrationException
- Throws:
javax.management.InstanceNotFoundException
javax.management.MBeanRegistrationException
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
throws javax.management.AttributeNotFoundException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
getAttribute
in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.MBeanException
javax.management.ReflectionException
setAttribute
public void setAttribute(javax.management.Attribute attribute)
throws javax.management.AttributeNotFoundException,
javax.management.InvalidAttributeValueException,
javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
setAttribute
in interface javax.management.DynamicMBean
- Throws:
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.MBeanException
javax.management.ReflectionException
getAttributes
public javax.management.AttributeList getAttributes(java.lang.String[] attributes)
- Specified by:
getAttributes
in interface javax.management.DynamicMBean
setAttributes
public javax.management.AttributeList setAttributes(javax.management.AttributeList attributes)
- Specified by:
setAttributes
in interface javax.management.DynamicMBean
invoke
public java.lang.Object invoke(java.lang.String actionName,
java.lang.Object[] params,
java.lang.String[] signature)
throws javax.management.MBeanException,
javax.management.ReflectionException
- Specified by:
invoke
in interface javax.management.DynamicMBean
- Throws:
javax.management.MBeanException
javax.management.ReflectionException
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfo
in interface javax.management.NotificationBroadcaster
- Overrides:
getNotificationInfo
in class javax.management.NotificationBroadcasterSupport
getMBeanInfo
public javax.management.MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo
in interface javax.management.DynamicMBean
facet
public <T> T facet(java.lang.Class<T> cls)
addFacet
public <T> void addFacet(T obj)
removeFacet
public void removeFacet(java.lang.Class<?> cls)
invoke
public java.lang.Object invoke(java.lang.reflect.Method method,
java.lang.Object... args)
facets
public java.util.Collection<java.lang.Object> facets()
get
public java.lang.Object get(java.lang.reflect.Field field)
set
public void set(java.lang.reflect.Field field,
java.lang.Object value)