Class MBeanSkeleton


  • public class MBeanSkeleton
    extends java.lang.Object
    • Field Detail

      • DEFAULT_AMX_DESCRIPTOR

        private static javax.management.Descriptor DEFAULT_AMX_DESCRIPTOR
      • type

        private final java.lang.String type
      • descriptor

        private javax.management.Descriptor descriptor
      • sequenceNumber

        @DumpToString
        private final java.util.concurrent.atomic.AtomicLong sequenceNumber
      • setters

        @DumpIgnore
        private final java.util.Map<java.lang.String,​AttributeDescriptor> setters
      • 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
    • 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:
        toString in class java.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)
      • 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)
      • describe

        @InfoMethod
        private void describe​(java.lang.String msg,
                              java.lang.Object data)
      • getType

        public java.lang.String getType()
      • 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.AttributeNotFoundException
        javax.management.MBeanException
        javax.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.AttributeNotFoundException
        javax.management.InvalidAttributeValueException
        javax.management.MBeanException
        javax.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.MBeanException
        javax.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.MBeanException
        javax.management.ReflectionException
      • getMBeanInfo

        public javax.management.modelmbean.ModelMBeanInfoSupport getMBeanInfo()