public interface ManagedObjectMetadataAccessor
ManagedObjectMetadataAccessorFactory
to obtain an instance
of ManagedObjectMetadataAccessor.ManagedObjectMetadataAccessorFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CELL_NAME
Constant for the property name which is used to specify the cell name
from which the ManagedObjectMetaDataAccessor instance being created is to
obtain metadata.
|
static java.lang.String |
WAS_REPOSITORY_ROOT
Constant for the property name which is used to specify the WebSphere repository
root.
|
Modifier and Type | Method and Description |
---|---|
java.util.Properties |
getMetadataProperties(java.lang.String nodeName)
Obtains all metadata for the specified node.
|
java.lang.String |
getMetadataProperty(java.lang.String nodeName,
java.lang.String propertyName)
Obtains metadata with the specified key for the specified node.
|
static final java.lang.String WAS_REPOSITORY_ROOT
To specify the WebSphere repository root directory, include this property setting
in the java.util.Properties instance passed to the factory method
ManagedObjectMetadataAccessorFactory.createAccessor(Properties)
.
in order to create a ManagedObjectMetadataAccessor instance.
This constant is set to ConfigRepository.REPOSITORY_ROOT_DIR_KEY
and is
defined in this class as a convenience. The actual value for this constant is
"was.repository.root".
ManagedObjectMetadataAccessorFactory
,
ConfigRepository.REPOSITORY_ROOT_DIR_KEY
,
Constant Field Valuesstatic final java.lang.String CELL_NAME
This property must exist in the set of properties passed to the factory method
ManagedObjectMetadataAccessorFactory.createAccessor(Properties)
in order to create a ManagedObjectMetadataAccessor instance.
The value of this constant is "local.cell".
java.util.Properties getMetadataProperties(java.lang.String nodeName) throws AdminException
nodeName
- The name of the node for which data is to be retreived.AdminException
- Metadata for the specified node could not be obtained or
an input value was invalid.java.lang.String getMetadataProperty(java.lang.String nodeName, java.lang.String propertyName) throws AdminException
nodeName
- The name of the node for which data is to be retreived.propertyName
- Metadata property name.AdminException
- Specified metadata could not be obtained or
an input value was invalid.