private Descriptor createOperationDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
descriptor = ImmutableDescriptor.union(descriptor, setterDescriptor);
descriptor = ImmutableDescriptor.union(descriptor, setterDescriptor);
private Descriptor createOperationDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
descriptor = ImmutableDescriptor.union(descriptor, setterDescriptor);
private Descriptor createMBeanDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
private Descriptor createMBeanDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
private Descriptor createMBeanDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
private Descriptor createOperationDescriptor() { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); return new ImmutableDescriptor(descriptions); }
public static Descriptor buildDescriptor(Annotation... annotations) { Map<String, Object> fields = new TreeMap<>(); // process all direct annotations for (Annotation annotation : computeWalkSequence(annotations)) { processAnnotation(annotation, fields); } return new ImmutableDescriptor(fields); }
public static Descriptor buildDescriptor(Annotation... annotations) { Map<String, Object> fields = new TreeMap<>(); // process all direct annotations for (Annotation annotation : computeWalkSequence(annotations)) { processAnnotation(annotation, fields); } return new ImmutableDescriptor(fields); }
private Descriptor createAttributeDescriptor(ModelNode attribute) { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); Boolean allowExpressions = attribute.hasDefined(EXPRESSIONS_ALLOWED) && attribute.get(EXPRESSIONS_ALLOWED).asBoolean(); descriptions.put(DESC_EXPRESSIONS_ALLOWED, allowExpressions.toString()); descriptions.put(DESC_EXPRESSIONS_ALLOWED_DESC, allowExpressions ? MESSAGES.descriptorAttributeExpressionsAllowedTrue() : MESSAGES.descriptorAttributeExpressionsAllowedFalse()); return new ImmutableDescriptor(descriptions); }
private Descriptor createAttributeDescriptor(ModelNode attribute) { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); Boolean allowExpressions = attribute.hasDefined(EXPRESSIONS_ALLOWED) && attribute.get(EXPRESSIONS_ALLOWED).asBoolean(); descriptions.put(DESC_EXPRESSIONS_ALLOWED, allowExpressions.toString()); descriptions.put(DESC_EXPRESSIONS_ALLOWED_DESC, allowExpressions ? MESSAGES.descriptorAttributeExpressionsAllowedTrue() : MESSAGES.descriptorAttributeExpressionsAllowedFalse()); return new ImmutableDescriptor(descriptions); }
private Descriptor createAttributeDescriptor(ModelNode attribute) { Map<String, String> descriptions = new HashMap<String, String>(); addMBeanExpressionSupport(descriptions); Boolean allowExpressions = attribute.hasDefined(EXPRESSIONS_ALLOWED) && attribute.get(EXPRESSIONS_ALLOWED).asBoolean(); descriptions.put(DESC_EXPRESSIONS_ALLOWED, allowExpressions.toString()); descriptions.put(DESC_EXPRESSIONS_ALLOWED_DESC, allowExpressions ? JmxLogger.ROOT_LOGGER.descriptorAttributeExpressionsAllowedTrue() : JmxLogger.ROOT_LOGGER.descriptorAttributeExpressionsAllowedFalse()); return new ImmutableDescriptor(descriptions); }
public MBeanMetadata(String className, String description, Collection<JmxAttribute> attributes, Collection<JmxOperation> operations) { List<MBeanAttributeInfo> attrs = new ArrayList<MBeanAttributeInfo>(attributes.size()); for (JmxAttribute attribute : attributes) { if (this.attributes.put(attribute.getName(), attribute) != null) throw new IllegalArgumentException("Duplicate attribute found: " + attribute.getName()); attrs.add(attribute.getMetadata()); } List<MBeanOperationInfo> ops = new ArrayList<MBeanOperationInfo>(attributes.size()); this.operations = new HashMap<Signature, JmxOperation>(); for (JmxOperation operation : operations) { if (this.operations.put(operation.getSignature(), operation) != null) throw new IllegalArgumentException("Duplicate operation found: " + operation.getSignature()); ops.add(operation.getMetadata()); } this.mBeanInfo = new MBeanInfo( className, description, attrs.toArray(new MBeanAttributeInfo[attrs.size()]), null, ops.toArray(new MBeanOperationInfo[ops.size()]), null, new ImmutableDescriptor("immutableInfo=true")); }
private static MBeanNotificationInfo getNotificationInfo(final NotificationInfo n) { final String description = getDescription(n.description(), "-"); return new MBeanNotificationInfo(n.types(), n.notificationClass().getName(), description, new ImmutableDescriptor(n.descriptorFields())); }
private MBeanNotificationInfo getNotificationInfo(final NotificationInfo notificationInfo, String sourceInfo) { return new MBeanNotificationInfo( notificationInfo.types(), notificationInfo.notificationClass().getName(), getDescription(notificationInfo.description(), sourceInfo), new ImmutableDescriptor(notificationInfo.descriptorFields())); }
private MBeanNotificationInfo getNotificationInfo(final NotificationInfo notificationInfo, String sourceInfo) { return new MBeanNotificationInfo( notificationInfo.types(), notificationInfo.notificationClass().getName(), getDescription(notificationInfo.description(), sourceInfo), new ImmutableDescriptor(notificationInfo.descriptorFields())); }
private static MBeanNotificationInfo getNotificationInfo(final NotificationInfo n) { final String description = getDescription(n.description(), "-"); return new MBeanNotificationInfo(n.types(), n.notificationClass().getName(), description, new ImmutableDescriptor(n.descriptorFields())); }
return new ImmutableDescriptor(fields);