Package org.glassfish.gmbal.impl
Class MBeanSkeleton
- java.lang.Object
-
- org.glassfish.gmbal.impl.MBeanSkeleton
-
public class MBeanSkeleton extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMBeanSkeleton.DescriptorTypestatic interfaceMBeanSkeleton.Operation
-
Field Summary
Fields Modifier and Type Field Description private static java.security.PermissionaccessControlPermissionprivate static javax.management.DescriptorDEFAULT_AMX_DESCRIPTORprivate javax.management.Descriptordescriptorprivate java.util.Map<java.lang.String,AttributeDescriptor>gettersprivate java.util.List<javax.management.modelmbean.ModelMBeanAttributeInfo>mbeanAttributeInfoListprivate java.util.List<javax.management.modelmbean.ModelMBeanOperationInfo>mbeanOperationInfoListprivate AMXMetadatambeanTypeprivate javax.management.modelmbean.ModelMBeanInfoSupportmbInfoprivate ManagedObjectManagerInternalmomprivate AttributeDescriptornameAttributeDescriptorprivate java.util.Map<java.lang.String,java.util.Map<java.util.List<java.lang.String>,MBeanSkeleton.Operation>>operationsprivate java.util.concurrent.atomic.AtomicLongsequenceNumberprivate java.util.Map<java.lang.String,AttributeDescriptor>settersprivate java.lang.Stringtype
-
Constructor Summary
Constructors Modifier Constructor Description privateMBeanSkeleton(MBeanSkeleton first, MBeanSkeleton second)MBeanSkeleton(EvaluatedClassDeclaration annotatedClass, EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal mom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <K,L,V>
voidaddToCompoundMap(java.util.Map<K,java.util.Map<L,V>> source, java.util.Map<K,java.util.Map<L,V>> dest)private voidanalyzeAttributes(EvaluatedClassAnalyzer ca)private voidanalyzeObjectNameKeys(EvaluatedClassAnalyzer ca)private voidanalyzeOperations(EvaluatedClassAnalyzer ca)private voidannotatedMethod(EvaluatedMethodDeclaration annotatedMethod)private voidattributeInfoContents(javax.management.modelmbean.ModelMBeanAttributeInfo info)private voidattributes(org.glassfish.pfl.basic.contain.Pair<java.util.Map<java.lang.String,AttributeDescriptor>,java.util.Map<java.lang.String,AttributeDescriptor>> amap)MBeanSkeletoncompose(MBeanSkeleton skel)Create a new MBeanSkeleton that is the composition of this one and skel.private voiddescribe(java.lang.String msg, java.lang.Object data)private voiddescriptorContents(java.lang.String name, java.lang.String description, javax.management.Descriptor desc)java.lang.ObjectgetAttribute(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String name)javax.management.AttributeListgetAttributes(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String[] attributes)javax.management.modelmbean.ModelMBeanInfoSupportgetMBeanInfo()AMXMetadatagetMBeanType()java.lang.StringgetNameValue(org.glassfish.pfl.basic.facet.FacetAccessor fa)java.lang.StringgetType()java.lang.Objectinvoke(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String actionName, java.lang.Object[] params, java.lang.String[] sig)private javax.management.modelmbean.ModelMBeanInfoSupportmakeMbInfo(java.lang.String description)private org.glassfish.pfl.basic.contain.Pair<MBeanSkeleton.Operation,javax.management.modelmbean.ModelMBeanOperationInfo>makeOperation(EvaluatedMethodDeclaration m)(package private) javax.management.DescriptormakeValidDescriptor(javax.management.Descriptor desc, MBeanSkeleton.DescriptorType dtype, java.lang.String dname)ManagedObjectManagerInternalmom()private voidnameAttributeDescriptorIsNull()private voidprocessAttribute(AttributeDescriptor getter, AttributeDescriptor setter)voidsetAttribute(javax.management.NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, javax.management.Attribute attribute)javax.management.AttributeListsetAttributes(javax.management.NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, javax.management.AttributeList attributes)private voidsetterNames(java.lang.String msg, java.util.Set<java.lang.String> names)java.lang.StringtoString()
-
-
-
Field Detail
-
DEFAULT_AMX_DESCRIPTOR
private static javax.management.Descriptor DEFAULT_AMX_DESCRIPTOR
-
mbeanType
private AMXMetadata mbeanType
-
type
private final java.lang.String type
-
descriptor
private javax.management.Descriptor descriptor
-
sequenceNumber
@DumpToString private final java.util.concurrent.atomic.AtomicLong sequenceNumber
-
mom
@DumpToString private final ManagedObjectManagerInternal mom
-
setters
@DumpIgnore private final java.util.Map<java.lang.String,AttributeDescriptor> setters
-
getters
private final java.util.Map<java.lang.String,AttributeDescriptor> getters
-
nameAttributeDescriptor
private AttributeDescriptor nameAttributeDescriptor
-
operations
private final java.util.Map<java.lang.String,java.util.Map<java.util.List<java.lang.String>,MBeanSkeleton.Operation>> operations
-
mbeanAttributeInfoList
private final java.util.List<javax.management.modelmbean.ModelMBeanAttributeInfo> mbeanAttributeInfoList
-
mbeanOperationInfoList
private final java.util.List<javax.management.modelmbean.ModelMBeanOperationInfo> mbeanOperationInfoList
-
mbInfo
private final javax.management.modelmbean.ModelMBeanInfoSupport mbInfo
-
accessControlPermission
private static final java.security.Permission accessControlPermission
-
-
Constructor Detail
-
MBeanSkeleton
public MBeanSkeleton(EvaluatedClassDeclaration annotatedClass, EvaluatedClassAnalyzer ca, ManagedObjectManagerInternal mom)
-
MBeanSkeleton
private MBeanSkeleton(MBeanSkeleton first, MBeanSkeleton second)
-
-
Method Detail
-
addToCompoundMap
private <K,L,V> void addToCompoundMap(java.util.Map<K,java.util.Map<L,V>> source, java.util.Map<K,java.util.Map<L,V>> dest)
-
makeMbInfo
private javax.management.modelmbean.ModelMBeanInfoSupport makeMbInfo(java.lang.String description)
-
compose
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.
-
makeValidDescriptor
javax.management.Descriptor makeValidDescriptor(javax.management.Descriptor desc, MBeanSkeleton.DescriptorType dtype, java.lang.String dname)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
descriptorContents
@InfoMethod private void descriptorContents(java.lang.String name, java.lang.String description, javax.management.Descriptor desc)
-
attributeInfoContents
@InfoMethod private void attributeInfoContents(javax.management.modelmbean.ModelMBeanAttributeInfo info)
-
processAttribute
private void processAttribute(AttributeDescriptor getter, AttributeDescriptor setter)
-
attributes
@InfoMethod private void attributes(org.glassfish.pfl.basic.contain.Pair<java.util.Map<java.lang.String,AttributeDescriptor>,java.util.Map<java.lang.String,AttributeDescriptor>> amap)
-
setterNames
@InfoMethod private void setterNames(java.lang.String msg, java.util.Set<java.lang.String> names)
-
analyzeAttributes
private void analyzeAttributes(EvaluatedClassAnalyzer ca)
-
annotatedMethod
@InfoMethod private void annotatedMethod(EvaluatedMethodDeclaration annotatedMethod)
-
analyzeObjectNameKeys
private void analyzeObjectNameKeys(EvaluatedClassAnalyzer ca)
-
describe
@InfoMethod private void describe(java.lang.String msg, java.lang.Object data)
-
makeOperation
private org.glassfish.pfl.basic.contain.Pair<MBeanSkeleton.Operation,javax.management.modelmbean.ModelMBeanOperationInfo> makeOperation(EvaluatedMethodDeclaration m)
-
analyzeOperations
private void analyzeOperations(EvaluatedClassAnalyzer ca)
-
getType
public java.lang.String getType()
-
getMBeanType
public AMXMetadata getMBeanType()
-
getAttribute
public java.lang.Object getAttribute(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String name) throws javax.management.AttributeNotFoundException, javax.management.MBeanException, javax.management.ReflectionException- Throws:
javax.management.AttributeNotFoundExceptionjavax.management.MBeanExceptionjavax.management.ReflectionException
-
setAttribute
public void setAttribute(javax.management.NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException- Throws:
javax.management.AttributeNotFoundExceptionjavax.management.InvalidAttributeValueExceptionjavax.management.MBeanExceptionjavax.management.ReflectionException
-
getAttributes
public javax.management.AttributeList getAttributes(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String[] attributes)
-
setAttributes
public javax.management.AttributeList setAttributes(javax.management.NotificationBroadcasterSupport emitter, org.glassfish.pfl.basic.facet.FacetAccessor fa, javax.management.AttributeList attributes)
-
invoke
public java.lang.Object invoke(org.glassfish.pfl.basic.facet.FacetAccessor fa, java.lang.String actionName, java.lang.Object[] params, java.lang.String[] sig) throws javax.management.MBeanException, javax.management.ReflectionException- Throws:
javax.management.MBeanExceptionjavax.management.ReflectionException
-
nameAttributeDescriptorIsNull
@InfoMethod private void nameAttributeDescriptorIsNull()
-
getNameValue
public java.lang.String getNameValue(org.glassfish.pfl.basic.facet.FacetAccessor fa) throws javax.management.MBeanException, javax.management.ReflectionException- Throws:
javax.management.MBeanExceptionjavax.management.ReflectionException
-
getMBeanInfo
public javax.management.modelmbean.ModelMBeanInfoSupport getMBeanInfo()
-
mom
public ManagedObjectManagerInternal mom()
-
-