Java MBean mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray)

Here you can find the source of mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray)

Description

m Bean Attributes String

License

Apache License

Declaration

public static String mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import javax.management.MBeanAttributeInfo;

public class Main {
    public static String mBeanAttributes2String(MBeanAttributeInfo[] attributeInfoArray) {
        StringBuilder sb = new StringBuilder("[");
        if (attributeInfoArray == null || attributeInfoArray.length == 0) {
            sb.append("]");
            return sb.toString();
        }/*from ww  w  . j  av a 2s . c o m*/
        sb.append(attributeInfoArray[0].getName());
        for (int i = 1; i < attributeInfoArray.length; ++i) {
            sb.append(",").append(attributeInfoArray[i].getName());
        }
        sb.append("]");
        return sb.toString();
    }
}

Related

  1. isServerStarted(MBeanServerConnection server)
  2. listMBeans(MBeanServerConnection mbsc, String objectNameStr)
  3. makeMBeanName(@Nonnull final String domain, @Nonnull final String type, @Nonnull final String channelName)
  4. makeSignatureString(MBeanParameterInfo[] info)
  5. matchType(MBeanNotificationInfo aInfo, String aMatch)
  6. newMBeanProxy(final MBeanServerConnection conn, final ObjectName objectName, final Class interfaceClass)
  7. objectNameFor(Logger logger, String mbeanName)
  8. onameForBean(final Object mbean, final String name)
  9. operationEquals(MBeanOperationInfo one, MBeanOperationInfo two)