Package org.glassfish.gmbal.impl
Class MBeanSkeleton
java.lang.Object
org.glassfish.gmbal.impl.MBeanSkeleton
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enum
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 AtomicLong
private final Map
<String, AttributeDescriptor> private final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
MBeanSkeleton
(MBeanSkeleton first, MBeanSkeleton second) MBeanSkeleton
(EvaluatedClassDeclaration annotatedClass, EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal mom) -
Method Summary
Modifier and TypeMethodDescriptionprivate <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
annotatedMethod
(EvaluatedMethodDeclaration annotatedMethod) private void
private void
attributes
(org.glassfish.pfl.basic.contain.Pair<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>> amap) compose
(MBeanSkeleton skel) Create a new MBeanSkeleton that is the composition of this one and skel.private void
private void
descriptorContents
(String name, String description, Descriptor desc) getAttribute
(org.glassfish.pfl.basic.facet.FacetAccessor fa, String name) getAttributes
(org.glassfish.pfl.basic.facet.FacetAccessor fa, String[] attributes) getNameValue
(org.glassfish.pfl.basic.facet.FacetAccessor fa) getType()
invoke
(org.glassfish.pfl.basic.facet.FacetAccessor fa, String actionName, Object[] params, String[] sig) private ModelMBeanInfoSupport
makeMbInfo
(String description) private org.glassfish.pfl.basic.contain.Pair
<MBeanSkeleton.Operation, ModelMBeanOperationInfo> (package private) Descriptor
makeValidDescriptor
(Descriptor desc, MBeanSkeleton.DescriptorType dtype, String dname) mom()
private void
private void
processAttribute
(AttributeDescriptor getter, AttributeDescriptor setter) void
setAttribute
(NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, Attribute attribute) setAttributes
(NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, AttributeList attributes) private void
setterNames
(String msg, Set<String> names) toString()
-
Field Details
-
DEFAULT_AMX_DESCRIPTOR
-
mbeanType
-
type
-
descriptor
-
sequenceNumber
-
mom
-
setters
-
getters
-
nameAttributeDescriptor
-
operations
-
mbeanAttributeInfoList
-
mbeanOperationInfoList
-
mbInfo
-
accessControlPermission
-
-
Constructor Details
-
MBeanSkeleton
public MBeanSkeleton(EvaluatedClassDeclaration annotatedClass, EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal mom) -
MBeanSkeleton
-
-
Method Details
-
addToCompoundMap
-
makeMbInfo
-
compose
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. -
makeValidDescriptor
-
toString
-
descriptorContents
-
attributeInfoContents
-
processAttribute
-
attributes
@InfoMethod private void attributes(org.glassfish.pfl.basic.contain.Pair<Map<String, AttributeDescriptor>, Map<String, AttributeDescriptor>> amap) -
setterNames
-
analyzeAttributes
-
annotatedMethod
-
analyzeObjectNameKeys
-
describe
-
makeOperation
private org.glassfish.pfl.basic.contain.Pair<MBeanSkeleton.Operation,ModelMBeanOperationInfo> makeOperation(EvaluatedMethodDeclaration m) -
analyzeOperations
-
getType
-
getMBeanType
-
getAttribute
public Object getAttribute(org.glassfish.pfl.basic.facet.FacetAccessor fa, String name) throws AttributeNotFoundException, MBeanException, ReflectionException -
setAttribute
public void setAttribute(NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, Attribute attribute) throws AttributeNotFoundException, InvalidAttributeValueException, MBeanException, ReflectionException -
getAttributes
public AttributeList getAttributes(org.glassfish.pfl.basic.facet.FacetAccessor fa, String[] attributes) -
setAttributes
public AttributeList setAttributes(NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, AttributeList attributes) -
invoke
public Object invoke(org.glassfish.pfl.basic.facet.FacetAccessor fa, String actionName, Object[] params, String[] sig) throws MBeanException, ReflectionException - Throws:
MBeanException
ReflectionException
-
nameAttributeDescriptorIsNull
@InfoMethod private void nameAttributeDescriptorIsNull() -
getNameValue
public String getNameValue(org.glassfish.pfl.basic.facet.FacetAccessor fa) throws MBeanException, ReflectionException - Throws:
MBeanException
ReflectionException
-
getMBeanInfo
-
mom
-