@ThreadSafe public final class ObjectNameHelper extends Object
ObjectName objects.| Modifier and Type | Method and Description |
|---|---|
static ObjectName |
create(Hashtable<String,String> aParams) |
static ObjectName |
create(Map<String,String> aParams) |
static ObjectName |
createWithDefaultProperties(Object aObj)
Create a standard
ObjectName using the default domain and only the
"type" property. |
static ObjectName |
createWithDefaultProperties(Object aObj,
String sName)
Create a standard
ObjectName using the default domain and the
"type" and "name" properties. |
static String |
getCleanPropertyValue(String sPropertyValue)
Create a clean property value applicable for an
ObjectName property
value by replacing the special chars ":" and "," with "." and "//" with
"__". |
static String |
getDefaultJMXDomain() |
static void |
setDefaultJMXDomain(String sDefaultJMXDomain)
Set the default JMX domain
|
public static void setDefaultJMXDomain(@Nonnull @Nonempty String sDefaultJMXDomain)
sDefaultJMXDomain - The new JMX domain. May neither be null nor empty nor
may it contains ":" or " "@Nonnull @Nonempty public static String getDefaultJMXDomain()
ObjectName instances.
The default value is CJMX.PH_JMX_DOMAIN.@Nonnull public static ObjectName create(@Nonnull @Nonempty Hashtable<String,String> aParams)
@Nonnull public static String getCleanPropertyValue(@Nonnull String sPropertyValue)
ObjectName property
value by replacing the special chars ":" and "," with "." and "//" with
"__". If the input value contains a blank, the quotes value is returned.sPropertyValue - The original property value. May not be null.ObjectName.ObjectName.quote(String)@Nonnull public static ObjectName createWithDefaultProperties(@Nonnull Object aObj)
ObjectName using the default domain and only the
"type" property. The type property is the class local name of the specified
object.aObj - The object from which the name is to be created.null ObjectName.@Nonnull public static ObjectName createWithDefaultProperties(@Nonnull Object aObj, @Nonnull String sName)
ObjectName using the default domain and the
"type" and "name" properties. The type property is the class local name of
the specified object.aObj - The object from which the name is to be created.sName - The value of the "name" JMX propertynull ObjectName.Copyright © 2014–2015 Philip Helger. All rights reserved.