类 ObjectNameManager
java.lang.Object
cn.taketoday.jmx.support.ObjectNameManager
Helper class for the creation of
ObjectName instances.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
-
方法概要
修饰符和类型方法说明static ObjectNamegetInstance(Object objectName) Retrieve theObjectNameinstance corresponding to the supplied name.static ObjectNamegetInstance(String objectName) Retrieve theObjectNameinstance corresponding to the supplied name.static ObjectNamegetInstance(String domainName, String key, String value) Retrieve anObjectNameinstance for the specified domain and a single property with the supplied key and value.static ObjectNamegetInstance(String domainName, Hashtable<String, String> properties) Retrieve anObjectNameinstance with the specified domain name and the supplied key/name properties.
-
方法详细资料
-
getInstance
Retrieve theObjectNameinstance corresponding to the supplied name.- 参数:
objectName- theObjectNameinObjectNameorStringformat- 返回:
- the
ObjectNameinstance - 抛出:
MalformedObjectNameException- in case of an invalid object name specification- 另请参阅:
-
getInstance
Retrieve theObjectNameinstance corresponding to the supplied name.- 参数:
objectName- theObjectNameinStringformat- 返回:
- the
ObjectNameinstance - 抛出:
MalformedObjectNameException- in case of an invalid object name specification- 另请参阅:
-
getInstance
public static ObjectName getInstance(String domainName, String key, String value) throws MalformedObjectNameException Retrieve anObjectNameinstance for the specified domain and a single property with the supplied key and value.- 参数:
domainName- the domain name for theObjectNamekey- the key for the single property in theObjectNamevalue- the value for the single property in theObjectName- 返回:
- the
ObjectNameinstance - 抛出:
MalformedObjectNameException- in case of an invalid object name specification- 另请参阅:
-
getInstance
public static ObjectName getInstance(String domainName, Hashtable<String, String> properties) throws MalformedObjectNameExceptionRetrieve anObjectNameinstance with the specified domain name and the supplied key/name properties.- 参数:
domainName- the domain name for theObjectNameproperties- the properties for theObjectName- 返回:
- the
ObjectNameinstance - 抛出:
MalformedObjectNameException- in case of an invalid object name specification- 另请参阅:
-