public interface ContainerConfigurationMBean
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_ITEM_MBEAN_TYPE |
static String |
CONFIG_MBEAN_TYPE |
static String |
OBJECT_NAME |
Modifier and Type | Method and Description |
---|---|
byte[] |
exportKey(String type,
String key)
Returns the configuration item identified by a particular key
The returned data is a serialized form of the configuration item
|
String |
getFileType(String type)
Returns the default file type for a configuration type
The return value will usually be either "xml" or "license" and is used by the exporter to create
local files containing the content of some exported config item.
|
String |
getKeyDescription(String type,
String key)
Returns a textual description of a configuration item identified by a particular key
The returned data is a serialized form of the configuration item
|
String[] |
getKeys(String type)
Returns the keys for all managed configuration items of the specified type
|
String[] |
getTypes()
Returns the available configuration types
|
void |
importKey(String type,
boolean replace,
byte[] data)
Imports a set of configuration keys belonging to a single configuration type
|
void |
removeKey(String type,
String key)
Remove a configuration key
|
static final String CONFIG_MBEAN_TYPE
static final String CONFIG_ITEM_MBEAN_TYPE
static final String OBJECT_NAME
String[] getKeys(String type) throws ManagementException, ConfigurationException
type
- a configuration type, must be one of the valid configuration types returned by getTypes()
ManagementException
ConfigurationException
String[] getTypes() throws ManagementException
ManagementException
byte[] exportKey(String type, String key) throws ManagementException, ConfigurationException
The returned data is a serialized form of the configuration item
type
- a configuration type, must be one of the valid configuration types returned by getTypes()
key
- unique key identifying the configuration item, see getKeys(String)
ManagementException
ConfigurationException
String getKeyDescription(String type, String key) throws ManagementException, ConfigurationException
The returned data is a serialized form of the configuration item
type
- a configuration type, must be one of the valid configuration types returned by getTypes()
key
- unique key identifying the configuration item, see getKeys(String)
ManagementException
ConfigurationException
void importKey(String type, boolean replace, byte[] data) throws ManagementException, ConfigurationException
type
- a configuration type, must be one of the valid configuration types returned by getTypes()
replace
- if true any existing keys contained in the configuration data will be updateddata
- serialized configuration data compatible with the serialized data returned by exportKey(java.lang.String, java.lang.String)
ManagementException
ConfigurationException
void removeKey(String type, String key) throws ManagementException, ConfigurationException
type
- key
- ManagementException
ConfigurationException
String getFileType(String type) throws ConfigurationException
The return value will usually be either "xml" or "license" and is used by the exporter to create local files containing the content of some exported config item.
type
- ConfigurationException
- if the configuration type is unknown