Class ObjectNameBuilder
- java.lang.Object
-
- org.glassfish.admin.amx.impl.util.ObjectNameBuilder
-
public final class ObjectNameBuilder extends Object
Class used to build ObjectNameBuilder for AMX MBeans.
-
-
Constructor Summary
Constructors Constructor Description ObjectNameBuilder(MBeanServer mbeanServer, String jmxDomain)
ObjectNameBuilder(MBeanServer mbeanServer, ObjectName parent)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectName
buildChildObjectName(Class<?> intf)
ObjectName
buildChildObjectName(Class<?> intf, String name)
ObjectName
buildChildObjectName(String type, String childName)
static ObjectName
buildChildObjectName(MBeanServer server, ObjectName parent, Class<?> intf)
static ObjectName
buildChildObjectName(MBeanServer server, ObjectName parent, Class<?> intf, String name)
static ObjectName
buildChildObjectName(MBeanServer server, ObjectName parent, String type, String childName)
Build an ObjectName for an MBean logically contained within the parent MBean.ObjectName
buildChildObjectName(ObjectName parent, String type, String childName)
static List<ObjectName>
getAncestors(MBeanServer server, ObjectName start)
Return a list of ancestors, with the child itself last in the list.String
getJMXDomain()
static String
makeWild(String props)
-
-
-
Constructor Detail
-
ObjectNameBuilder
public ObjectNameBuilder(MBeanServer mbeanServer, String jmxDomain)
-
ObjectNameBuilder
public ObjectNameBuilder(MBeanServer mbeanServer, ObjectName parent)
-
-
Method Detail
-
getJMXDomain
public String getJMXDomain()
-
getAncestors
public static List<ObjectName> getAncestors(MBeanServer server, ObjectName start)
Return a list of ancestors, with the child itself last in the list.
-
buildChildObjectName
public ObjectName buildChildObjectName(ObjectName parent, String type, String childName)
-
buildChildObjectName
public ObjectName buildChildObjectName(String type, String childName)
-
buildChildObjectName
public ObjectName buildChildObjectName(Class<?> intf)
-
buildChildObjectName
public ObjectName buildChildObjectName(Class<?> intf, String name)
-
buildChildObjectName
public static ObjectName buildChildObjectName(MBeanServer server, ObjectName parent, String type, String childName)
Build an ObjectName for an MBean logically contained within the parent MBean. The child may be a true child (a subtype), or simply logically contained within the parent.- Parameters:
parent
-type
- type to be used in the ObjectNamepathType
- type to be used in the path, null if to be the same as type- Returns:
- ObjectName
-
buildChildObjectName
public static ObjectName buildChildObjectName(MBeanServer server, ObjectName parent, Class<?> intf, String name)
-
buildChildObjectName
public static ObjectName buildChildObjectName(MBeanServer server, ObjectName parent, Class<?> intf)
-
-