Top Inners Fields Constructors Methods
org.glassfish.gmbal.impl

public Class MBeanSkeleton

extends Object
Class Inheritance
Annotations
@TraceRegistrationFine
@TraceRegistration
@TraceRuntime
Imports
org.glassfish.gmbal.AMXMetadata, .NameValue, .ManagedOperation, .ParameterNames, java.util.List, .Arrays, .ArrayList, .Map, .HashMap, .Set, .HashSet, .Iterator, java.util.concurrent.atomic.AtomicLong, java.lang.reflect.Method, .ReflectPermission, java.security.AccessController, .Permission, .PrivilegedAction, javax.management.Attribute, .AttributeList, .MBeanException, .InvalidAttributeValueException, .AttributeNotFoundException, .ReflectionException, .MBeanParameterInfo, .NotificationBroadcasterSupport, .AttributeChangeNotification, .Descriptor, .JMException, javax.management.modelmbean.ModelMBeanAttributeInfo, .ModelMBeanInfoSupport, .ModelMBeanOperationInfo, javax.management.openmbean.OpenMBeanParameterInfoSupport, org.glassfish.gmbal.impl.trace.TraceRegistration, .TraceRegistrationFine, .TraceRuntime, org.glassfish.gmbal.typelib.EvaluatedClassAnalyzer, .EvaluatedClassDeclaration, .EvaluatedFieldDeclaration, .EvaluatedMethodDeclaration, .EvaluatedType, org.glassfish.pfl.basic.algorithm.DumpIgnore, .DumpToString, org.glassfish.pfl.basic.contain.Pair, org.glassfish.pfl.basic.facet.FacetAccessor, org.glassfish.pfl.basic.func.BinaryFunction, org.glassfish.pfl.tf.spi.annotation.InfoMethod

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static enum
public static interface
MBeanSkeleton.Operation

References Deprecated BinaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

Field Summary

Modifier and TypeField and Description
private static final Permission
private static Descriptor
private Descriptor
private final Map<String, AttributeDescriptor>
private final List<ModelMBeanAttributeInfo>
private final List<ModelMBeanOperationInfo>
private AMXMetadata
private final ModelMBeanInfoSupport
private final ManagedObjectManagerInternal
private AttributeDescriptor
private final Map<String, Map<List<String>, MBeanSkeleton.Operation>>
private final AtomicLong
private final Map<String, AttributeDescriptor>
private final String

Constructor Summary

AccessConstructor and Description
public
private

Method Summary

Modifier and TypeMethod and Description
private <K, L, V> void
addToCompoundMap(Map<K, Map<L, V>> source, Map<K, Map<L, V>> dest)

private void
private void
private void
private void
private void
private void
public MBeanSkeleton
compose(MBeanSkeleton skel)

Create a new MBeanSkeleton that is the composition of this one and skel.

private void
describe(String msg, Object data)

private void
descriptorContents(String name, String description, Descriptor desc)

public Object
public AttributeList
public ModelMBeanInfoSupport
public AMXMetadata
public String
public String
public Object
invoke(FacetAccessor fa, String actionName, Object[] params, String[] sig)

private ModelMBeanInfoSupport
makeMbInfo(String description)

private Pair<MBeanSkeleton.Operation, ModelMBeanOperationInfo>
pack-priv Descriptor
public ManagedObjectManagerInternal
mom()

private void
private void
public void
setAttribute(final NotificationBroadcasterSupport emitter, final FacetAccessor fa, final Attribute attribute)

public AttributeList
setAttributes(final NotificationBroadcasterSupport emitter, final FacetAccessor fa, final AttributeList attributes)

private void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

accessControlPermissionback to summary
private static final Permission accessControlPermission
DEFAULT_AMX_DESCRIPTORback to summary
private static Descriptor DEFAULT_AMX_DESCRIPTOR
descriptorback to summary
private Descriptor descriptor
gettersback to summary
private final Map<String, AttributeDescriptor> getters
mbeanAttributeInfoListback to summary
private final List<ModelMBeanAttributeInfo> mbeanAttributeInfoList
mbeanOperationInfoListback to summary
private final List<ModelMBeanOperationInfo> mbeanOperationInfoList
mbeanTypeback to summary
private AMXMetadata mbeanType
mbInfoback to summary
private final ModelMBeanInfoSupport mbInfo
momback to summary
private final ManagedObjectManagerInternal mom
Annotations
@DumpToString
nameAttributeDescriptorback to summary
private AttributeDescriptor nameAttributeDescriptor
operationsback to summary
private final Map<String, Map<List<String>, MBeanSkeleton.Operation>> operations
sequenceNumberback to summary
private final AtomicLong sequenceNumber
Annotations
@DumpToString
settersback to summary
private final Map<String, AttributeDescriptor> setters
Annotations
@DumpIgnore
typeback to summary
private final String type

Constructor Detail

MBeanSkeletonback to summary
public MBeanSkeleton(final EvaluatedClassDeclaration annotatedClass, final EvaluatedClassAnalyzer ca, final ManagedObjectManagerInternal mom)
MBeanSkeletonback to summary
private MBeanSkeleton(MBeanSkeleton first, MBeanSkeleton second)

Method Detail

addToCompoundMapback to summary
private <K, L, V> void addToCompoundMap(Map<K, Map<L, V>> source, Map<K, Map<L, V>> dest)
analyzeAttributesback to summary
private void analyzeAttributes(EvaluatedClassAnalyzer ca)
Annotations
@TraceRegistrationFine
analyzeObjectNameKeysback to summary
private void analyzeObjectNameKeys(EvaluatedClassAnalyzer ca)
Annotations
@TraceRegistrationFine
analyzeOperationsback to summary
private void analyzeOperations(EvaluatedClassAnalyzer ca)
Annotations
@TraceRegistrationFine
annotatedMethodback to summary
private void annotatedMethod(EvaluatedMethodDeclaration annotatedMethod)
Annotations
@InfoMethod
attributeInfoContentsback to summary
private void attributeInfoContents(ModelMBeanAttributeInfo info)
Annotations
@InfoMethod
attributesback to summary
private void attributes(Pair<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>> amap)
Annotations
@InfoMethod
composeback to summary
public MBeanSkeleton compose(MBeanSkeleton skel)

Create a new MBeanSkeleton that is the composition of this one and skel. Note that, if this and skel contain the same attribute, the version from skel will appear in the composition.

describeback to summary
private void describe(String msg, Object data)
Annotations
@InfoMethod
descriptorContentsback to summary
private void descriptorContents(String name, String description, Descriptor desc)
Annotations
@InfoMethod
getAttributeback to summary
public Object getAttribute(FacetAccessor fa, String name) throws AttributeNotFoundException, MBeanException, ReflectionException
Annotations
@TraceRuntime
getAttributesback to summary
public AttributeList getAttributes(FacetAccessor fa, String[] attributes)
Annotations
@TraceRuntime
getMBeanInfoback to summary
public ModelMBeanInfoSupport getMBeanInfo()
getMBeanTypeback to summary
public AMXMetadata getMBeanType()
getNameValueback to summary
public String getNameValue(final FacetAccessor fa) throws MBeanException, ReflectionException
Annotations
@TraceRuntime
getTypeback to summary
public String getType()
invokeback to summary
public Object invoke(FacetAccessor fa, String actionName, Object[] params, String[] sig) throws MBeanException, ReflectionException
Annotations
@TraceRuntime
makeMbInfoback to summary
private ModelMBeanInfoSupport makeMbInfo(String description)
makeOperationback to summary
private Pair<MBeanSkeleton.Operation, ModelMBeanOperationInfo> makeOperation(final EvaluatedMethodDeclaration m)
Annotations
@TraceRegistrationFine
makeValidDescriptorback to summary
pack-priv Descriptor makeValidDescriptor(Descriptor desc, MBeanSkeleton.DescriptorType dtype, String dname)
momback to summary
public ManagedObjectManagerInternal mom()
nameAttributeDescriptorIsNullback to summary
private void nameAttributeDescriptorIsNull()
Annotations
@InfoMethod
processAttributeback to summary
private void processAttribute(AttributeDescriptor getter, AttributeDescriptor setter)
Annotations
@TraceRegistrationFine
setAttributeback to summary
public void setAttribute(final NotificationBroadcasterSupport emitter, final FacetAccessor fa, final Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException
Annotations
@TraceRuntime
setAttributesback to summary
public AttributeList setAttributes(final NotificationBroadcasterSupport emitter, final FacetAccessor fa, final AttributeList attributes)
Annotations
@TraceRuntime
setterNamesback to summary
private void setterNames(String msg, Set<String> names)
Annotations
@InfoMethod
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override
org.glassfish.gmbal.impl back to summary

private final Enum MBeanSkeleton.DescriptorType

extends Enum<MBeanSkeleton.DescriptorType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final MBeanSkeleton.DescriptorType
public static final MBeanSkeleton.DescriptorType
public static final MBeanSkeleton.DescriptorType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static MBeanSkeleton.DescriptorType
public static MBeanSkeleton.DescriptorType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

attributeback to summary
public static final MBeanSkeleton.DescriptorType attribute
mbeanback to summary
public static final MBeanSkeleton.DescriptorType mbean
operationback to summary
public static final MBeanSkeleton.DescriptorType operation

Constructor Detail

DescriptorTypeback to summary
private DescriptorType()

Method Detail

valueOfback to summary
public static MBeanSkeleton.DescriptorType valueOf(String name)
valuesback to summary
public static MBeanSkeleton.DescriptorType[] values()
org.glassfish.gmbal.impl back to summary

public Interface MBeanSkeleton.Operation

extends BinaryFunction<FacetAccessor, List<Object>, Object>
Annotations
@TraceRuntime

References Deprecated

BinaryFunction is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Method Summary

Inherited from org.glassfish.pfl.basic.func.BinaryFunction:
applyevaluate