/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
result.append(' ' + operations[i].getName() + ": " + operations[i].getDescription() + "\n Parameters " + params != null ? params.length : 0 + ", return type=" + operations[i].getReturnType() + paramsStrBuffer.toString());
if (!oi.getName().equals(oi.getDescription())) { sb.append(" - " + oi.getDescription()); sb.append('\n');
for (int i = 0; i < opInfo.length; i++) { log.info(" ** NAME: \t" + opInfo[i].getName()); log.info(" DESCR: \t" + opInfo[i].getDescription()); log.info(" PARAM: \t" + opInfo[i].getSignature().length + " parameter(s)");
@Test public void testGetMBeanOperationInfo() throws Exception { ModelMBeanInfo info = getMBeanInfoFromAssembler(); MBeanOperationInfo[] inf = info.getOperations(); assertEquals("Invalid number of Operations returned", getExpectedOperationCount(), inf.length); for (int x = 0; x < inf.length; x++) { assertNotNull("MBeanOperationInfo should not be null", inf[x]); assertNotNull( "Description for MBeanOperationInfo should not be null", inf[x].getDescription()); } }
if (opInfo.getDescription().equals("MBeanOperation.")) assert opInfo.getSignature().length == 2; else { assert opInfo.getDescription().equals("MBeanSuperOperation.") == true; assert opInfo.getSignature().length == 1;
map.put(DESCRIPTION.getKey(), opInfo.getDescription()); Object ops = opMap.get(opInfo.getName()); if (ops != null) {
new MBeanOperationInfo( oInfo.getName(), oInfo.getDescription(), paramInfo, retType,
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
/** {@inheritDoc} */ @Override protected String getDescription(MBeanOperationInfo op) { String descr = op.getDescription(); Method m = getMethod(op); if (m != null) { MBeanInfo d = m.getAnnotation(MBeanInfo.class); if (d != null) descr = d.value(); } return descr; }
add( new RowElement().add("Type: ", operationInfo.getReturnType()), new RowElement().add("Description: ", operationInfo.getDescription()), new RowElement().add("Impact: ", impact), new RowElement().add(new LabelElement("Signature: "), signature)
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); }