|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscoveryAgentService
The interface to a RHQ Agent's Resource discovery subsystem.
| Method Summary | |
|---|---|
void |
disableServiceScans(int serverResourceId)
Disable periodic scans for new services for the specified server. |
void |
enableServiceScans(int serverResourceId,
Configuration config)
Enable periodic scans for new services for the specified server, using the specified discovery configuration. |
AvailabilityReport |
executeAvailabilityScanImmediately(boolean changedOnlyReport)
Checks the availability of all resources and returns a report on their availability statuses. |
InventoryReport |
executeServerScanImmediately()
Executes an immediate plugin discovery scan for top-level servers. |
void |
executeServiceScanDeferred()
This method asks that a service scan be performed, but it does not wait for the results of that scan. |
InventoryReport |
executeServiceScanImmediately()
Executes an immediate plugin discovery scan for services and non-top-level servers. |
Availability |
getCurrentAvailability(Resource resource)
Returns the current availablity for the specified Resource if no other thread currently possesses a write lock on that Resource's ResourceComponent, or otherwise, returns the last-collected availablity for the Resource. |
Resource |
getPlatform()
Access to the current inventory managed by the plugin container. |
MergeResourceResponse |
manuallyAddResource(ResourceType resourceType,
int parentResourceId,
Configuration pluginConfiguration,
int creatorSubjectId)
Manually discover the resource of the specified type using the specified plugin configuration (i.e. connection properties). |
void |
removeResource(int resourceId)
Shuts down and removes a Resource and its descendents from the PC's inventory. |
void |
synchronizeInventory(ResourceSyncInfo syncInfo)
Called to inform the agent of a status change for the resource represented by syncInfo. |
void |
updatePluginConfiguration(int resourceId,
Configuration newPluginConfiguration)
This will update the plugin configuration for the resource with the given ID. |
| Method Detail |
|---|
void updatePluginConfiguration(int resourceId,
Configuration newPluginConfiguration)
throws InvalidPluginConfigurationClientException,
PluginContainerException
resourceId - identifies the resource whose plugin configuration is to be updatednewPluginConfiguration - the new plugin configuration
InvalidPluginConfigurationClientException - if failed to update the plugin configuration or failed to
restart the component due to a bad plugin configuration
PluginContainerException - if failed for some other reasonvoid synchronizeInventory(ResourceSyncInfo syncInfo)
syncInfo - for the root of the tree to be updated.Resource getPlatform()
InventoryReport executeServerScanImmediately()
throws PluginContainerException
PluginContainerException - if the server scan fails
InventoryReport executeServiceScanImmediately()
throws PluginContainerException
PluginContainerException - if the service scan failsvoid executeServiceScanDeferred()
AvailabilityReport executeAvailabilityScanImmediately(boolean changedOnlyReport)
changedOnlyReport - if true, the report returned will only contain statuses for those
resources that have changed availability status from their last known state. If
false, the report will contain information on all known resources (which will
make the report much larger than had true been passed in).
@NotNull Availability getCurrentAvailability(Resource resource)
AvailabilityType in the returned
Availablity will be set to null).
resource - a Resource
AvailabilityType in the
returned Availablity will be set to null).
MergeResourceResponse manuallyAddResource(ResourceType resourceType,
int parentResourceId,
Configuration pluginConfiguration,
int creatorSubjectId)
throws InvalidPluginConfigurationClientException,
PluginContainerException
resourceType - the type of resource to be manually addedparentResourceId - the id of the resource that will be the parent of the manually discovered resourcepluginConfiguration - the properties that should be used to connect to the underlying managed resourcecreatorSubjectId - the Subject id of the JON user that requested the
addition of the resource
ResourceError that might have occurred during
the activation of the resource
InvalidPluginConfigurationClientException - if connecting to the underlying managed resource failed due to
an invalid plugin configuration.
PluginContainerException - if the manual discovery fails for any other reasonvoid removeResource(int resourceId)
resourceId - the id of the Resource to remove
void enableServiceScans(int serverResourceId,
Configuration config)
serverResourceId - resource id of the serverconfig - discovery configuration for the servervoid disableServiceScans(int serverResourceId)
serverResourceId - resource id of the server
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||