|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.glassfish.gmbal.impl.MBeanImpl
public class MBeanImpl
| Constructor Summary | |
|---|---|
MBeanImpl(MBeanSkeleton skel,
Object obj,
MBeanServer server,
String type)
|
|
| Method Summary | ||
|---|---|---|
void |
addChild(MBeanImpl child)
|
|
|
addFacet(T obj)
Add a facet to the object. |
|
Map<String,Map<String,MBeanImpl>> |
children()
|
|
boolean |
equals(Object obj)
|
|
|
facet(Class<T> cls,
boolean debug)
Access the Facet of Class T from the object. |
|
Collection<Object> |
facets()
Return a list of all facets on this object. |
|
Object |
get(Field field,
boolean debug)
Fetch the value of the field from whichever facet contains the field. |
|
Object |
getAttribute(String attribute)
|
|
AttributeList |
getAttributes(String[] attributes)
|
|
MBeanInfo |
getMBeanInfo()
|
|
MBeanNotificationInfo[] |
getNotificationInfo()
|
|
String |
getParentPathPart(String rootParentPrefix)
|
|
int |
hashCode()
|
|
Object |
invoke(Method method,
boolean debug,
Object... args)
Invoke method on the appropriate facet of this object, that is, on the facet corresponding to method.getDeclaringClass. |
|
Object |
invoke(String actionName,
Object[] params,
String[] signature)
|
|
String |
name()
|
|
void |
name(String str)
|
|
ObjectName |
objectName()
|
|
void |
objectName(ObjectName oname)
|
|
MBeanImpl |
parent()
|
|
void |
parent(MBeanImpl entity)
|
|
void |
register()
|
|
void |
removeChild(MBeanImpl child)
|
|
void |
removeFacet(Class<?> cls)
Remove the facet (if any) of the given type. |
|
void |
set(Field field,
Object value,
boolean debug)
|
|
void |
setAttribute(Attribute attribute)
|
|
AttributeList |
setAttributes(AttributeList attributes)
|
|
MBeanSkeleton |
skeleton()
|
|
boolean |
suspended()
|
|
void |
suspended(boolean flag)
|
|
Object |
target()
|
|
String |
toString()
|
|
String |
type()
|
|
void |
unregister()
|
|
| 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 |
| Constructor Detail |
|---|
public MBeanImpl(MBeanSkeleton skel,
Object obj,
MBeanServer server,
String type)
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic MBeanSkeleton skeleton()
public String type()
public Object target()
public String name()
public void name(String str)
public ObjectName objectName()
public void objectName(ObjectName oname)
public MBeanImpl parent()
public void parent(MBeanImpl entity)
public Map<String,Map<String,MBeanImpl>> children()
public void addChild(MBeanImpl child)
public void removeChild(MBeanImpl child)
public String getParentPathPart(String rootParentPrefix)
public boolean suspended()
public void suspended(boolean flag)
public void register()
throws InstanceAlreadyExistsException,
MBeanRegistrationException,
NotCompliantMBeanException
InstanceAlreadyExistsException
MBeanRegistrationException
NotCompliantMBeanException
public void unregister()
throws InstanceNotFoundException,
MBeanRegistrationException
InstanceNotFoundException
MBeanRegistrationException
public Object getAttribute(String attribute)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
getAttribute in interface DynamicMBeanAttributeNotFoundException
MBeanException
ReflectionException
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
setAttribute in interface DynamicMBeanAttributeNotFoundException
InvalidAttributeValueException
MBeanException
ReflectionExceptionpublic AttributeList getAttributes(String[] attributes)
getAttributes in interface DynamicMBeanpublic AttributeList setAttributes(AttributeList attributes)
setAttributes in interface DynamicMBean
public Object invoke(String actionName,
Object[] params,
String[] signature)
throws MBeanException,
ReflectionException
invoke in interface DynamicMBeanMBeanException
ReflectionExceptionpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class NotificationBroadcasterSupportpublic MBeanInfo getMBeanInfo()
getMBeanInfo in interface DynamicMBean
public <T> T facet(Class<T> cls,
boolean debug)
FacetAccessor
facet in interface FacetAccessorT - The Type (as a Class) of the Facet.cls - The class of the facet.
public <T> void addFacet(T obj)
FacetAccessor
addFacet in interface FacetAccessorpublic void removeFacet(Class<?> cls)
FacetAccessor
removeFacet in interface FacetAccessorcls - The class of the facet to remove.
public Object invoke(Method method,
boolean debug,
Object... args)
FacetAccessor
invoke in interface FacetAccessormethod - The method to invoke.args - Arguments to the method.
public Collection<Object> facets()
FacetAccessor
facets in interface FacetAccessor
public Object get(Field field,
boolean debug)
FacetAccessor
get in interface FacetAccessorfield - The field to accessdebug - True if debugging trace output is desired
public void set(Field field,
Object value,
boolean debug)
set in interface FacetAccessor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||