|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.management.configservice.ConfigServiceHelper
public class ConfigServiceHelper
This class provides various helper methods to build data structures that are used by config service
component such as ObjectName
, ConfigDataId
, and manipulate generic
AttributeList
data structure.
Constructor Summary | |
---|---|
ConfigServiceHelper()
|
Method Summary | |
---|---|
static boolean |
checkIfNameValid(java.lang.String aName)
Check if the specified name is a valid object name. |
static ConfigDataId |
convertObjectNameToConfigDataId(javax.management.ObjectName on)
Converts an ObjectName of dynamic MBean to the id of its corresponding Config data. |
static javax.management.ObjectName |
createObjectName(javax.management.AttributeList attrList)
Create an object name from the specified attribute list, the returned ObjectName can be
used to identify the config data represented by the specified attribute list, then be used in subsequent calls to
ConfigService to further query or modify this config data. |
static javax.management.ObjectName |
createObjectName(ConfigDataId id)
Create an object name from the specified config data id. |
static javax.management.ObjectName |
createObjectName(ConfigDataId id,
java.lang.String type)
Create an object name from the specified config data id and config data type. |
static javax.management.ObjectName |
createObjectName(ConfigDataId id,
java.lang.String type,
java.lang.String displayName)
Create an object name from specified config data id, type and name. |
static javax.management.ObjectName |
createObjectName(java.util.Properties props)
create ObjectName using properties |
static javax.management.ObjectName |
createObjectName(java.lang.String domain,
java.util.Properties props)
|
static java.lang.Object |
getAttributeValue(javax.management.AttributeList attrList,
java.lang.String name)
Return the value of the named attribute. |
static ConfigDataId |
getConfigDataId(javax.management.AttributeList attrList)
Assign the config data id for the specified attribute list. |
static ConfigDataId |
getConfigDataId(javax.management.ObjectName objName)
Get the config data id information from the specified ObjectName . |
static java.lang.String |
getConfigDataType(javax.management.ObjectName objName)
Get the config data type from specified ObjectName |
static java.lang.String |
getDisplayName(javax.management.ObjectName objName)
Get the config data name from specified ObjectName |
static java.util.Properties |
getObjectLocation(javax.management.ObjectName objName)
Get the location of the config data. |
static javax.management.AttributeList |
lookup(javax.management.AttributeList attrList,
ConfigDataId id)
Search through the attribute list recursively and look up the attribute list with the specified config data id. |
static java.lang.Object |
removeAttribute(javax.management.AttributeList attrList,
java.lang.String name)
Delete the specified attribute from attribute list. |
static void |
setAttributeValue(javax.management.AttributeList attrList,
java.lang.String name,
java.lang.Object value)
Set the attribute value for the specified attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigServiceHelper()
Method Detail |
---|
public static ConfigDataId getConfigDataId(javax.management.AttributeList attrList)
public static java.lang.Object getAttributeValue(javax.management.AttributeList attrList, java.lang.String name) throws javax.management.AttributeNotFoundException
attrList
- the attribute list.name
- the name of attribute.
javax.management.AttributeNotFoundException
public static void setAttributeValue(javax.management.AttributeList attrList, java.lang.String name, java.lang.Object value)
attrList
- the attribute list.name
- the name of attribute.value
- the value of the attribute.public static java.lang.Object removeAttribute(javax.management.AttributeList attrList, java.lang.String name)
public static javax.management.AttributeList lookup(javax.management.AttributeList attrList, ConfigDataId id)
attrList
- the attribute list to be checked.id
- the config data id.
public static javax.management.ObjectName createObjectName(javax.management.AttributeList attrList)
ObjectName
can be
used to identify the config data represented by the specified attribute list, then be used in subsequent calls to
ConfigService to further query or modify this config data.
public static javax.management.ObjectName createObjectName(ConfigDataId id)
public static javax.management.ObjectName createObjectName(ConfigDataId id, java.lang.String type)
public static javax.management.ObjectName createObjectName(ConfigDataId id, java.lang.String type, java.lang.String displayName)
public static ConfigDataId getConfigDataId(javax.management.ObjectName objName)
ObjectName
.
public static java.lang.String getConfigDataType(javax.management.ObjectName objName)
ObjectName
public static java.lang.String getDisplayName(javax.management.ObjectName objName)
ObjectName
public static boolean checkIfNameValid(java.lang.String aName)
public static java.util.Properties getObjectLocation(javax.management.ObjectName objName)
objName
- object name of the object.
public static ConfigDataId convertObjectNameToConfigDataId(javax.management.ObjectName on)
ObjectName
of dynamic MBean to the id of its corresponding Config data.
Note this method doesn't check the existance of ObjectName or config data id. This method just does the format conversion.
User can call the queryConfigObjects method on ConfigService to verify if the config data really exists.
on
- the ObjectName
of a dynamic MBean.
public static javax.management.ObjectName createObjectName(java.util.Properties props) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
public static javax.management.ObjectName createObjectName(java.lang.String domain, java.util.Properties props) throws javax.management.MalformedObjectNameException
javax.management.MalformedObjectNameException
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |