Here you can find the source of composeMBeanName(String objTypeName, String objInstanceName)
private static ObjectName composeMBeanName(String objTypeName, String objInstanceName) throws MalformedObjectNameException
//package com.java2s; // Licensed to the Apache Software Foundation (ASF) under one import javax.management.MalformedObjectNameException; import javax.management.ObjectName; public class Main { private static ObjectName composeMBeanName(String objTypeName, String objInstanceName) throws MalformedObjectNameException { String name = "com.cloud:type=" + objTypeName; if (objInstanceName != null && !objInstanceName.isEmpty()) name += ", name=" + objInstanceName; return new ObjectName(name); }//from w w w .ja v a 2 s .c om }