public static ObjectName getObjectName(String group, String name, String t) throws MalformedObjectNameException {
    StringBuilder nameBuilder = new StringBuilder();
    nameBuilder.append(makeNameJmxSafe(group));
    nameBuilder.append(":type=");
    nameBuilder.append(makeNameJmxSafe(t));
    nameBuilder.append(",name=");
    nameBuilder.append(makeNameJmxSafe(name));
    ObjectName objName = new ObjectName(nameBuilder.toString());
    log.debug("Resolved name for " + group + ", " + name + ", " + t + " to: " + objName);
    return objName;
  }
Utility class to create JMX related objects
samza-core/src/main/java/org/apache/samza/metrics/JmxUtil.java