public interface ConfigurationManagerRemote
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate> |
findGroupPluginConfigurationUpdatesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupPluginConfigurationUpdateCriteria criteria) |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate> |
findGroupResourceConfigurationUpdatesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupResourceConfigurationUpdateCriteria criteria)
Note that when setting
AbstractGroupConfigurationUpdateCriteria.fetchConfigurationUpdates(boolean) to true,
the current resource configurations are returned. |
org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate |
getGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
|
org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate |
getGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int configurationUpdateId)
|
org.rhq.core.domain.configuration.PluginConfigurationUpdate |
getLatestPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the
PluginConfigurationUpdate for the "current" plugin configuration for the Resource with
the given id. |
org.rhq.core.domain.configuration.ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the most recent attainable resource configuration for the
Resource with the given id. |
org.rhq.core.domain.configuration.Configuration |
getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the "live" resource configuration for the
Resource with the given id. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getPackageTypeConfigurationDefinition(org.rhq.core.domain.auth.Subject subject,
int packageTypeId)
Return the deploy configuration definition for the
PackageType with the
specified id. |
org.rhq.core.domain.configuration.Configuration |
getPluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the "current" plugin configuration for the
Resource with the given id, or null if the
resource's plugin configuration is not yet initialized. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getPluginConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the plugin configuration definition for the
ResourceType with the
specified id. |
org.rhq.core.domain.configuration.Configuration |
getResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the "current" resource configuration for the
Resource with the given id, or null if the
resource's resource configuration is not yet initialized. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getResourceConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the resource configuration definition for the
ResourceType with the
specified id. |
org.rhq.core.domain.configuration.definition.ConfigurationDefinition |
getResourceConfigurationDefinitionWithTemplatesForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Return the resource configuration definition for the
ResourceType with the
specified id. |
boolean |
isGroupResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId) |
boolean |
isResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get whether the the specified resource is in the process of updating its configuration.
|
int |
scheduleGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> pluginConfigurationUpdate)
Schedules jobs to update the plugin configuration of resources in a compatible group.
|
int |
scheduleGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> newResourceConfigurationMap) |
org.rhq.core.domain.configuration.Configuration |
translateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration configuration,
boolean fromStructured)
Deprecated.
this feature was never full implemented and will be removed.
|
org.rhq.core.domain.configuration.PluginConfigurationUpdate |
updatePluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
Updates the plugin configuration used to connect and communicate with the resource.
|
org.rhq.core.domain.configuration.ResourceConfigurationUpdate |
updateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
This method is called when a user has requested to change the resource configuration for an existing resource.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate> findGroupPluginConfigurationUpdatesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupPluginConfigurationUpdateCriteria criteria)
subject - criteria - #getLatestPluginConfigurationUpdate(Subject, int)}org.rhq.core.domain.util.PageList<org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate> findGroupResourceConfigurationUpdatesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupResourceConfigurationUpdateCriteria criteria)
AbstractGroupConfigurationUpdateCriteria.fetchConfigurationUpdates(boolean) to true,
the current resource configurations are returned. The "current" configuration is the one most recently reported
and stored server-side, the agent is not queried. Recent, unreported changes in the "live" configuration will
not be reported. Querying the agent is slower and not typically necessary, as configuration changes infrequently.subject - criteria - #getLatestResourceConfigurationUpdate(Subject, int)},
#getLiveResourceConfiguration(Subject, int, boolean)}@Deprecated org.rhq.core.domain.configuration.group.GroupPluginConfigurationUpdate getGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject, int configurationUpdateId)
subject - configurationUpdateId - @Deprecated org.rhq.core.domain.configuration.group.GroupResourceConfigurationUpdate getGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject, int configurationUpdateId)
subject - configurationUpdateId - org.rhq.core.domain.configuration.Configuration getPluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Resource with the given id, or null if the
resource's plugin configuration is not yet initialized. The "current" configuration is that which has been
most recently reported and stored server-side, the agent is not queried.subject - the user who wants to see the informationresourceId - a Resource idResource with the given id, or null if the
resource's plugin configuration is not yet initialized#getLatestPluginConfigurationUpdate(Subject, int)}org.rhq.core.domain.configuration.Configuration getResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Resource with the given id, or null if the
resource's resource configuration is not yet initialized. The "current" configuration is that which has been
most recently reported and stored server-side, the agent is not queried.subject - the user who wants to see the informationresourceId - a Resource idResource with the given id, or null if the
resource's resource configuration is not yet initialized#getLatestResourceConfigurationUpdate(Subject, int)},
#getLiveResourceConfiguration(Subject, int, boolean)}org.rhq.core.domain.configuration.PluginConfigurationUpdate getLatestPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
PluginConfigurationUpdate for the "current" plugin configuration for the Resource with
the given id. This is the same as getPluginConfiguration(Subject, int) but returns the full update
information as opposed to just the configuration.subject - the user who wants to see the informationresourceId - a Resource idPluginConfigurationUpdate for the "current" plugin configuration#getPluginConfiguration(Subject, int)}org.rhq.core.domain.configuration.ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Resource with the given id. Retrieves
and returns live resource configuration from the Agent, if possible. Otherwise returns the most recent
server-side configuration (from the database). If the live availability differs from the server-side
the database will be updated to match the live configuration. This can return null if an initial
resource configuration has yet to be stored in the database and a live configuration can not be retrieved (e.g.
in the case the agent or resource is down).
This differs from getLiveResourceConfiguration(Subject, int, boolean) in that it will return the latest
stored configuration if the agent can not be queried. This differs from getResourceConfiguration(Subject, int)
in that it will attempt to query the agent to capture the "live" configuration.subject - the user who wants to see the informationresourceId - a Resource idResource with the given id, or null if the resource's configuration is not yet
initialized and its live configuration could not be determined. The configuration can be accessed
via AbstractConfigurationUpdate.getConfiguration().#getLiveResourceConfiguration(Subject, int, boolean)},
#getResourceConfiguration(Subject, int)}boolean isResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - A resource id.boolean isGroupResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
subject - resourceGroupId - int scheduleGroupPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> pluginConfigurationUpdate)
subject - logged in usercompatibleGroupId - the compatible group idpluginConfigurationUpdate - Configuration objects mapped by resource idGroupPluginConfigurationUpdate idint scheduleGroupResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
Map<Integer,org.rhq.core.domain.configuration.Configuration> newResourceConfigurationMap)
subject - compatibleGroupId - newResourceConfigurationMap - org.rhq.core.domain.configuration.PluginConfigurationUpdate updatePluginConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
throws ResourceNotFoundException
newConfiguration is usually a modified version of a configuration returned by
getPluginConfiguration(Subject, int).subject - The logged in user's subject.resourceId - a Resource idnewConfiguration - the new plugin configurationResourceNotFoundExceptionPermissionException - If the caller lacks MODIFY permission on the Resource.BadArgumentException - If attempting to change a readOnly property value.org.rhq.core.domain.configuration.ResourceConfigurationUpdate updateResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.configuration.Configuration newConfiguration)
throws ResourceNotFoundException,
ConfigurationUpdateStillInProgressException
This will not wait for the agent to finish the configuration update. This will return after the request is sent.
subject - The logged in user's subject.resourceId - identifies the resource to be updatednewConfiguration - the resource's desired new configurationResourceNotFoundExceptionConfigurationUpdateStillInProgressExceptionPermissionException - If the caller lacks CONFIGURE_WRITE permission on the Resource.BadArgumentException - If attempting to change a readOnly property value.org.rhq.core.domain.configuration.Configuration getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
throws Exception
Resource with the given id. The live configuration is
that of the resource at the time this call is made. The agent is queried and will collect the configuration
by inspecting the resource.
Unlike getLatestResourceConfigurationUpdate(Subject, int) this method has no affect on the "current"
resource configuration stored server-side.subject - the user who wants to see the informationresourceId - a Resource idpingAgentFirst - true if the underlying Agent should be pinged successfully before attempting to retrieve
the configuration, or false otherwiseException#getLatestResourceConfigurationUpdate(Subject, int)},
#getLiveResourceConfiguration(Subject, int, boolean)}org.rhq.core.domain.configuration.definition.ConfigurationDefinition getResourceConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ResourceType with the
specified id.subject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requestedResourceType with the
specified id, or null if the ResourceType does not define a resource configurationorg.rhq.core.domain.configuration.definition.ConfigurationDefinition getResourceConfigurationDefinitionWithTemplatesForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ResourceType with the
specified id. The templates will be loaded in the definition returned from this call.subject - the user who is requesting the resource configuration definitionresourceTypeId - identifies the resource type whose resource configuration definition is being requestedResourceType with the
specified id, or null if the ResourceType does not define a resource configurationorg.rhq.core.domain.configuration.definition.ConfigurationDefinition getPluginConfigurationDefinitionForResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
ResourceType with the
specified id.subject - the user who is requesting the plugin configuration definitionresourceTypeId - identifies the resource type whose plugin configuration definition is being requestedResourceType with the
specified id, or null if the ResourceType does not define a plugin configurationorg.rhq.core.domain.configuration.definition.ConfigurationDefinition getPackageTypeConfigurationDefinition(org.rhq.core.domain.auth.Subject subject,
int packageTypeId)
PackageType with the
specified id.subject - the user who is requesting the plugin configuration definitionpackageTypeId - identifies the package type whose configuration definition is being requestedPackageType with the
specified id.@Deprecated org.rhq.core.domain.configuration.Configuration translateResourceConfiguration(org.rhq.core.domain.auth.Subject subject, int resourceId, org.rhq.core.domain.configuration.Configuration configuration, boolean fromStructured) throws ResourceNotFoundException
subject - resourceId - configuration - fromStructured - ResourceNotFoundExceptionCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.