paramInfo, retType, oInfo.getImpact(), oInfo.getDescriptor() );
switch (operationInfo.getImpact()) { case MBeanOperationInfo.ACTION: impact = "ACTION";
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
private OperationRepresentation(MBeanOperationInfo operationInfo) { name = operationInfo.getName(); impact = operationInfo.getImpact(); returnType = operationInfo.getReturnType(); ImmutableList.Builder<ParameterRepresentation> parameters = ImmutableList.builder(); for (MBeanParameterInfo parameterInfo : operationInfo.getSignature()) { parameters.add(new ParameterRepresentation(parameterInfo)); } this.parameters = parameters.build(); descriptor = toMap(operationInfo.getDescriptor()); }
ManagedMBean(final Object managed, final String prefix) { scan(managed, prefix); for (final Member member : attributesMap.values()) { attributes.add(new MBeanAttributeInfo(member.getName(), member.getType().getName(), "", true, false, false)); } for (final Member member : operationsMap.values()) { final MBeanOperationInfo op = new MBeanOperationInfo("", ((MethodMember) member).getter); operations.add(new MBeanOperationInfo(member.getName(), "", op.getSignature(), op.getReturnType(), op.getImpact())); } filterAttributes = true; excludeInfo = new MBeanParameterInfo("excludeRegex", "java.lang.String", "\"" + excludes.pattern() + "\""); includeInfo = new MBeanParameterInfo("includeRegex", "java.lang.String", "\"" + includes.pattern() + "\""); }
ManagedMBean(final Object managed, final String prefix) { scan(managed, prefix); for (final Member member : attributesMap.values()) { attributes.add(new MBeanAttributeInfo(member.getName(), member.getType().getName(), "", true, false, false)); } for (final Member member : operationsMap.values()) { final MBeanOperationInfo op = new MBeanOperationInfo("", ((MethodMember) member).getter); operations.add(new MBeanOperationInfo(member.getName(), "", op.getSignature(), op.getReturnType(), op.getImpact())); } filterAttributes = true; excludeInfo = new MBeanParameterInfo("excludeRegex", "java.lang.String", "\"" + excludes.pattern() + "\""); includeInfo = new MBeanParameterInfo("includeRegex", "java.lang.String", "\"" + includes.pattern() + "\""); }
/** * Constructs a <code>MBeanOperationInfo</code> instance based upon a * <code>javax.management.MBeanOperationInfo</code> instance. * * @param mbeanOperationInfo The JMX <code>MBeanOperationInfo</code> instance to base this instance on. */ public MBeanOperationInfo(javax.management.MBeanOperationInfo mbeanOperationInfo) { name = mbeanOperationInfo.getName(); description = mbeanOperationInfo.getDescription(); signature = convertSignature(mbeanOperationInfo.getSignature()); returnType = mbeanOperationInfo.getReturnType(); impact = mbeanOperationInfo.getImpact(); }
/** * Constructs a <code>MBeanOperationInfo</code> instance based upon a * <code>javax.management.MBeanOperationInfo</code> instance. * * @param mbeanOperationInfo The JMX <code>MBeanOperationInfo</code> instance to base this instance on. */ public MBeanOperationInfo(javax.management.MBeanOperationInfo mbeanOperationInfo) { name = mbeanOperationInfo.getName(); description = mbeanOperationInfo.getDescription(); signature = convertSignature(mbeanOperationInfo.getSignature()); returnType = mbeanOperationInfo.getReturnType(); impact = mbeanOperationInfo.getImpact(); }
/** * Constructs a <code>MBeanOperationInfo</code> instance based upon a * <code>javax.management.MBeanOperationInfo</code> instance. * * @param mbeanOperationInfo The JMX <code>MBeanOperationInfo</code> instance to base this instance on. */ public MBeanOperationInfo(javax.management.MBeanOperationInfo mbeanOperationInfo) { name = mbeanOperationInfo.getName(); description = mbeanOperationInfo.getDescription(); signature = convertSignature(mbeanOperationInfo.getSignature()); returnType = mbeanOperationInfo.getReturnType(); impact = mbeanOperationInfo.getImpact(); }
public MethodEntry(MBeanOperationInfo info) { super(info.getName(), info.getDescription(), info.getSignature(), info.getReturnType(), info.getImpact()); this.methodDescriptor = getMethodDescriptor(info.getSignature(), info.getReturnType()); } }
public MethodEntry(MBeanOperationInfo info) { super(info.getName(), info.getDescription(), info.getSignature(), info.getReturnType(), info.getImpact()); this.methodDescriptor = getMethodDescriptor(info.getSignature(), info.getReturnType()); } }
public void serialize(QName name, Attributes attributes, Object value, SerializationContext context) throws IOException { MBeanOperationInfo info = (MBeanOperationInfo)value; context.startElement(name, attributes); context.serialize(NAME_QNAME, null, info.getName()); context.serialize(DESCRIPTION_QNAME, null, info.getDescription()); context.serialize(SIGNATURE_QNAME, null, info.getSignature()); context.serialize(CLASS_NAME_QNAME, null, info.getReturnType()); context.serialize(IMPACT_QNAME, null, new Integer(info.getImpact())); context.endElement(); }
public NestedMBeanOperation(String prefix, MBeanOperation delegate) { this.delegate = delegate; MBeanOperationInfo delegateInfo = delegate.getInfo(); this.info = new MBeanOperationInfo(prefix + "." + delegateInfo.getName(), delegateInfo.getDescription(), delegateInfo.getSignature(), delegateInfo.getReturnType(), delegateInfo.getImpact(), delegateInfo.getDescriptor()); signature = new Signature(this.info); }
public NestedMBeanOperation(String prefix, MBeanOperation delegate) { this.delegate = delegate; MBeanOperationInfo delegateInfo = delegate.getInfo(); this.info = new MBeanOperationInfo(prefix + "." + delegateInfo.getName(), delegateInfo.getDescription(), delegateInfo.getSignature(), delegateInfo.getReturnType(), delegateInfo.getImpact(), delegateInfo.getDescriptor()); signature = new Signature(this.info); }
public NestedMBeanOperation(String prefix, MBeanOperation delegate) { this.delegate = delegate; MBeanOperationInfo delegateInfo = delegate.getInfo(); this.info = new MBeanOperationInfo(prefix + "." + delegateInfo.getName(), delegateInfo.getDescription(), delegateInfo.getSignature(), delegateInfo.getReturnType(), delegateInfo.getImpact(), delegateInfo.getDescriptor()); signature = new Signature(this.info); }