| java.lang.Object com.sun.jbi.management.registry.xml.RegistryDocument
RegistryDocument | public class RegistryDocument (Code) | | RegistryDocument encapsulates a read only registry DOM. This class has user friendly
operations to get information from the registry w/o getting into the nitty-gritty
details of parsing the registry XML doc. This class uses XPath expressions for faster
processing.
author: Sun Microsystems, Inc. |
Method Summary | |
public String | getAttribute(String target, ConfigurationCategory category, String attribName) Get the value of a specific configuration attribute for a target belonging to a
particular category. | public Map<String, Properties> | getComponentApplicationConfiguration(String target, boolean isServer, String componentName) Get all the named application configurations.
Parameters: isServer - flag indicating whether the target is a server or cluster. | Map<String, Properties> | getComponentApplicationConfigurations(Element compRef) the components application configurations if found. | public ComponentInfo.Variable[] | getComponentApplicationVariables(String target, boolean isServer, String componentName) Get the application variables set on a specific component.
Parameters: isServer - - flag indicating whether the target is a server or cluster. | ComponentInfo.Variable[] | getComponentApplicationVariables(Element compRef) the components application variables if found. | public Properties | getComponentConfigurationAttributes(String target, boolean isServer, String componentName) Get the static component configuration attributes for a component. | public String | getConfigurationAttribute(String target, ConfigurationCategory category, String attrName) Get the value of a specific configuration attribute for a target belonging to a
particular category. | public Map<String, String> | getConfigurationAttributes(String target, ConfigurationCategory category) Get a map of all the configuration attributes for a particular category. | Properties | getProperties(Element element) | public Element | getTarget(String target, boolean isServer) |
getAttribute | public String getAttribute(String target, ConfigurationCategory category, String attribName)(Code) | | Get the value of a specific configuration attribute for a target belonging to a
particular category.
Parameters: target - - identification for the target Parameters: category - - configuration category Parameters: name - - attribute name the string value of the configuration attribute from the persisted registry or null if the attribute is missing or configuration is empty |
getComponentApplicationConfiguration | public Map<String, Properties> getComponentApplicationConfiguration(String target, boolean isServer, String componentName)(Code) | | Get all the named application configurations.
Parameters: isServer - flag indicating whether the target is a server or cluster. Parameters: target - target name Parameters: componentName - identification for the component. a Map of configuration names and the named config properties. |
getComponentApplicationConfigurations | Map<String, Properties> getComponentApplicationConfigurations(Element compRef)(Code) | | the components application configurations if found. An empty Map is returned if there aren't any named configurations. Parameters: compRef - - conponent ref element |
getComponentApplicationVariables | public ComponentInfo.Variable[] getComponentApplicationVariables(String target, boolean isServer, String componentName)(Code) | | Get the application variables set on a specific component.
Parameters: isServer - - flag indicating whether the target is a server or cluster. Parameters: target - - target name Parameters: componentName - - identification for the component. |
getComponentApplicationVariables | ComponentInfo.Variable[] getComponentApplicationVariables(Element compRef)(Code) | | the components application variables if found. An empty array is returned if there aren't any variables et on the component. Parameters: compRef - |
getComponentConfigurationAttributes | public Properties getComponentConfigurationAttributes(String target, boolean isServer, String componentName)(Code) | | Get the static component configuration attributes for a component.
|
getConfigurationAttribute | public String getConfigurationAttribute(String target, ConfigurationCategory category, String attrName)(Code) | | Get the value of a specific configuration attribute for a target belonging to a
particular category. If the attribute is overriden then the override is returned.
If the attribute is missing or the registry configuration is empty a null value
is returned.
Parameters: target - - identification for the target Parameters: category - - configuration category Parameters: name - - attribute name the string value of the configuration attribute from the persisted registry or null if the attribute is missing or configuration is empty |
getConfigurationAttributes | public Map<String, String> getConfigurationAttributes(String target, ConfigurationCategory category)(Code) | | Get a map of all the configuration attributes for a particular category. If an
attribute is overriden then the specific value replaces the domain configuration
Parameters: target - - identification for the target Parameters: category - - configuration category the configuration attributes from the persisted registry or an empty list |
getTarget | public Element getTarget(String target, boolean isServer)(Code) | | the target reference element |
|
|