|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConfigurationManagerRemote
The configuration manager which allows you to request resource configuration changes, view current resource configuration and previous update history and view/edit plugin configuration.
Method Summary | |
---|---|
GroupPluginConfigurationUpdate |
getGroupPluginConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
GroupResourceConfigurationUpdate |
getGroupResourceConfigurationUpdate(Subject subject,
int configurationUpdateId)
|
PluginConfigurationUpdate |
getLatestPluginConfigurationUpdate(Subject subject,
int resourceId)
|
ResourceConfigurationUpdate |
getLatestResourceConfigurationUpdate(Subject subject,
int resourceId)
|
Configuration |
getLiveResourceConfiguration(Subject subject,
int resourceId,
boolean pingAgentFirst)
Get the currently live resource configuration for the Resource with the given id. |
ConfigurationDefinition |
getPackageTypeConfigurationDefinition(Subject subject,
int packageTypeId)
Return the deploy configuration definition for the PackageType with the
specified id. |
Configuration |
getPluginConfiguration(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. |
ConfigurationDefinition |
getPluginConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the plugin configuration definition for the ResourceType with the
specified id. |
Configuration |
getResourceConfiguration(Subject subject,
int resourceId)
Get the current Resource configuration. |
ConfigurationDefinition |
getResourceConfigurationDefinitionForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
ConfigurationDefinition |
getResourceConfigurationDefinitionWithTemplatesForResourceType(Subject subject,
int resourceTypeId)
Return the resource configuration definition for the ResourceType with the
specified id. |
boolean |
isGroupResourceConfigurationUpdateInProgress(Subject subject,
int resourceGroupId)
|
boolean |
isResourceConfigurationUpdateInProgress(Subject subject,
int resourceId)
Get whether the the specified resource is in the process of updating its configuration. |
int |
scheduleGroupResourceConfigurationUpdate(Subject subject,
int compatibleGroupId,
Map<Integer,Configuration> newResourceConfigurationMap)
|
Configuration |
translateResourceConfiguration(Subject subject,
int resourceId,
Configuration configuration,
boolean fromStructured)
|
PluginConfigurationUpdate |
updatePluginConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
Updates the plugin configuration used to connect and communicate with the resource. |
ResourceConfigurationUpdate |
updateResourceConfiguration(Subject subject,
int resourceId,
Configuration newConfiguration)
This method is called when a user has requested to change the resource configuration for an existing resource. |
Method Detail |
---|
GroupPluginConfigurationUpdate getGroupPluginConfigurationUpdate(Subject subject, int configurationUpdateId)
GroupResourceConfigurationUpdate getGroupResourceConfigurationUpdate(Subject subject, int configurationUpdateId)
@Nullable Configuration getPluginConfiguration(Subject subject, int resourceId)
Resource
with the given id, or null
if the
resource's plugin configuration is not yet initialized.
user
- The logged in user's subject.resourceId
- Resource Id
Resource
with the given id, or null
if the
resource's configuration is not yet initialized
FetchException
Configuration getResourceConfiguration(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 configurationPluginConfigurationUpdate getLatestPluginConfigurationUpdate(Subject subject, int resourceId)
ResourceConfigurationUpdate getLatestResourceConfigurationUpdate(Subject subject, int resourceId)
boolean isResourceConfigurationUpdateInProgress(Subject subject, int resourceId)
subject
- The logged in user's subject.resourceId
- A resource id.
FetchException
boolean isGroupResourceConfigurationUpdateInProgress(Subject subject, int resourceGroupId)
int scheduleGroupResourceConfigurationUpdate(Subject subject, int compatibleGroupId, Map<Integer,Configuration> newResourceConfigurationMap)
PluginConfigurationUpdate updatePluginConfiguration(Subject subject, int resourceId, Configuration newConfiguration) throws org.rhq.enterprise.server.resource.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 configuration
org.rhq.enterprise.server.resource.ResourceNotFoundException
ResourceConfigurationUpdate updateResourceConfiguration(Subject subject, int resourceId, Configuration newConfiguration) throws org.rhq.enterprise.server.resource.ResourceNotFoundException, org.rhq.enterprise.server.configuration.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 configuration
org.rhq.enterprise.server.resource.ResourceNotFoundException
org.rhq.enterprise.server.configuration.ConfigurationUpdateStillInProgressException
Configuration getLiveResourceConfiguration(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 agentConfigurationDefinition getResourceConfigurationDefinitionForResourceType(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 requested
ResourceType
with the
specified id, or null
if the ResourceType does not define a resource configurationConfigurationDefinition getResourceConfigurationDefinitionWithTemplatesForResourceType(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 requested
ResourceType
with the
specified id, or null
if the ResourceType does not define a resource configurationConfigurationDefinition getPluginConfigurationDefinitionForResourceType(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 requested
ResourceType
with the
specified id, or null
if the ResourceType does not define a plugin configurationConfigurationDefinition getPackageTypeConfigurationDefinition(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 requested
PackageType
with the
specified id.Configuration translateResourceConfiguration(Subject subject, int resourceId, Configuration configuration, boolean fromStructured) throws org.rhq.enterprise.server.resource.ResourceNotFoundException
org.rhq.enterprise.server.resource.ResourceNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |