public interface ConfigurationManagerRemote
| Modifier and Type | Method and Description |
|---|---|
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) |
org.rhq.core.domain.configuration.ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId) |
org.rhq.core.domain.configuration.Configuration |
getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the currently 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.
|
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 |
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) |
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.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.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.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 initializedFetchExceptionorg.rhq.core.domain.configuration.Configuration getResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - A resource id.FetchException - In case where there was a problem fetching the resource configurationorg.rhq.core.domain.configuration.PluginConfigurationUpdate getLatestPluginConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
org.rhq.core.domain.configuration.ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(org.rhq.core.domain.auth.Subject subject,
int resourceId)
boolean isResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - A resource id.FetchExceptionboolean isGroupResourceConfigurationUpdateInProgress(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
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.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 configurationResourceNotFoundExceptionorg.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. Once the agent finishes with the request, it will send the completed request information to
#completedResourceConfigurationUpdate(AbstractResourceConfigurationUpdate).
subject - The logged in user's subject.resourceId - identifies the resource to be updatednewConfiguration - the resource's desired new configurationResourceNotFoundExceptionConfigurationUpdateStillInProgressExceptionorg.rhq.core.domain.configuration.Configuration getLiveResourceConfiguration(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean pingAgentFirst)
throws Exception
Resource with the given id. This actually asks for
the up-to-date configuration directly from the agent. An exception will be thrown if communications with the
agent cannot be made.subject - The logged in user's subject.resourceId - resourceIdpingAgentFirst - Exception - if failed to get the configuration from the agentorg.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.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
ResourceNotFoundExceptionCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.