public interface ConfigurationAgentService
| Modifier and Type | Method and Description |
|---|---|
ConfigurationUpdateResponse |
executeUpdateResourceConfigurationImmediately(ConfigurationUpdateRequest request)
Configures a resource with the new set of configuration values found in the
Configuration object within
the given request. |
org.rhq.core.domain.configuration.Configuration |
loadResourceConfiguration(int resourceId)
Loads the current configuration for the given resource.
|
org.rhq.core.domain.configuration.Configuration |
merge(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean fromStructured)
If the
fromStructured flag is true, then the structured configuration (i.e.,
Configuration.properties) is merged into the latest raw configurations returned from the plugin. |
void |
updateResourceConfiguration(ConfigurationUpdateRequest request)
Configures a resource with the new set of configuration values found in the
Configuration object within
the given request. |
org.rhq.core.domain.configuration.Configuration |
validate(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean isStructured)
If the
fromStructured flag is true, then the s
Configuration.properties) is merged into the latest raw configura
Configuration object returned will consist of the structured configurati
configurations. |
void updateResourceConfiguration(ConfigurationUpdateRequest request)
Configuration object within
the given request. This configuration contains the entire configuration for the resource and not
simply a series of changes to the existing values. The plugin responsible for managing the given resource must
inform that resource that its configuration has changed to the given set of new values.
Note that this method should not throw any exceptions; instead, all error conditions should be indicated in the response object when sent back to the caller.
request - tells you the resource to configure and the full set of configuration values for the resourceConfigurationUpdateResponse executeUpdateResourceConfigurationImmediately(ConfigurationUpdateRequest request) throws PluginContainerException
Configuration object within
the given request. This configuration contains the entire configuration for the resource and not
simply a series of changes to the existing values. The plugin responsible for managing the given resource must
inform that resource that its configuration has changed to the given set of new values.
Note that this method should not throw any exceptions for configuration errors; instead, all error conditions should be indicated in the response object when sent back to the caller. Any Runtime or Plugin Excpetions will still be thrown
request - tells you the resource to configure and the full set of configuration values for the resourcePluginContainerException - if update fails due to an unrecoverable error, then a PluginContainerException
is thrown.org.rhq.core.domain.configuration.Configuration loadResourceConfiguration(int resourceId)
throws PluginContainerException
resourceId - id of the resource to loadPluginContainerException - if a runtime or plugin error occurs a PluginContainerException is thrownorg.rhq.core.domain.configuration.Configuration merge(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean fromStructured)
throws PluginContainerException
fromStructured flag is true, then the structured configuration (i.e.,
Configuration.properties) is merged into the latest raw configurations returned from the plugin. The
Configuration object returned will consist of the structured configuration along with the merged raw
configurations. If fromStructured is false, then the raw configurations (i.e.,
Configuration.rawConfigurations) is merged into the latest structured configurations returned from the
plugin. The returned Configuration will then consist of the raw configuration along with the merged structured
configuration.configuration - The Configuration with the changes to be mergedresourceId - The id of the resource to which the configuration belongsfromStructured - A flag that if true indicates the merge should be from structured to raw,
otherwise merge from raw to structured.PluginContainerException - if a runtime or plugin error occurs.org.rhq.core.domain.configuration.Configuration validate(org.rhq.core.domain.configuration.Configuration configuration,
int resourceId,
boolean isStructured)
throws PluginContainerException
fromStructured flag is true, then the s
Configuration.properties) is merged into the latest raw configura
Configuration object returned will consist of the structured configurati
configurations. If fromStructured is false, th
Configuration.rawConfigurations) is merged into the latest struct
plugin. The returned Configuration will then consist of the raw configur
configuration.configuration - The Configuration with the changes to be mergedresourceId - The id of the resource to which the configuration belongsA - flag that if true indicates validate the Structured configuration
otherwisre, it validates the rawPluginContainerExceptionPluginContainerException - if a runtime or plugin error occurs.Copyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.