public interface DiscoveryServerService
| Modifier and Type | Field and Description |
|---|---|
static String |
CONCURRENCY_LIMIT_AVAILABILITY_REPORT |
static String |
CONCURRENCY_LIMIT_INVENTORY_REPORT |
static String |
CONCURRENCY_LIMIT_INVENTORY_SYNC |
| Modifier and Type | Method and Description |
|---|---|
org.rhq.core.domain.discovery.MergeResourceResponse |
addResource(org.rhq.core.domain.resource.Resource resource,
int creatorSubjectId)
Merges the specified resource into inventory.
|
void |
clearResourceConfigError(int resourceId)
Clears errors of type
ResourceErrorType.INVALID_PLUGIN_CONFIGURATION |
Map<Integer,org.rhq.core.domain.resource.InventoryStatus> |
getInventoryStatus(int rootResourceId,
boolean descendants)
Retrieve a set of inventory statuses for a resource and potentially its descendants.
|
Set<org.rhq.core.domain.resource.Resource> |
getResources(Set<Integer> resourceIds,
boolean includeDescendants)
Returns the Resources with the given id's, optionally including all descendant Resources.
|
List<org.rhq.core.domain.resource.Resource> |
getResourcesAsList(Integer... resourceIds)
Returns the Resources with the given id's.
|
boolean |
mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport availabilityReport)
Merges a new availability report from the agent into the server.
|
org.rhq.core.domain.discovery.ResourceSyncInfo |
mergeInventoryReport(InventoryReport inventoryReport)
Merge the platform/servers/services contained in the specified inventory report into the server's inventory.
|
Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> |
postProcessNewlyCommittedResources(Set<Integer> resourceIds)
Gives the server a chance to apply any necessary post-processing that's needed for newly committed resources
that have been successfully synchronized on the agent.
|
void |
setResourceEnablement(int resourceId,
boolean setEnabled)
Set the specified resource enabled or disabled.
|
void |
setResourceError(org.rhq.core.domain.resource.ResourceError resourceError)
Indicates that an error occurred on a resource.
|
boolean |
updateResourceVersion(int resourceId,
String version)
Updates the version of the specified Resource in inventory, if it is indeed in inventory.
|
Set<ResourceUpgradeResponse> |
upgradeResources(Set<ResourceUpgradeRequest> upgradeRequests)
Upgrades the data of the resources according to the provided reports.
|
static final String CONCURRENCY_LIMIT_INVENTORY_REPORT
static final String CONCURRENCY_LIMIT_AVAILABILITY_REPORT
static final String CONCURRENCY_LIMIT_INVENTORY_SYNC
@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-report") @Timeout(value=0L) org.rhq.core.domain.discovery.ResourceSyncInfo mergeInventoryReport(InventoryReport inventoryReport) throws InvalidInventoryReportException, StaleTypeException
inventoryReport - a report containing updated inventory dataInvalidInventoryReportException - if the inventory report contains invalid dataStaleTypeException@LimitedConcurrency(value="rhq.server.concurrency-limit.availability-report") boolean mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport availabilityReport)
availabilityReport - report containing updated availability statuses for a set of resourcestrue, this indicates everything seems OK - the server merged everything successfully and
the server and agent seem to be in sync with each. If false, the server thinks something
isn't right and it may be out of sync with the agent. When false is returned, the caller
should send a full availability report the next time in order to ensure the server and agent are
in sync. true should always be returned if the given availability report is already a full
report.@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync") Set<org.rhq.core.domain.resource.Resource> getResources(Set<Integer> resourceIds, boolean includeDescendants)
resourceIds - includeDescendants - @LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync") List<org.rhq.core.domain.resource.Resource> getResourcesAsList(Integer... resourceIds)
resourceIds - @Asynchronous(guaranteedDelivery=true) void setResourceEnablement(int resourceId, boolean setEnabled)
resourceId - The resource to enable or disable.setEnabled - Enable if true, disable if false.@Asynchronous(guaranteedDelivery=false) void setResourceError(org.rhq.core.domain.resource.ResourceError resourceError)
resourceError - all information about the error that occurred@Asynchronous(guaranteedDelivery=true) void clearResourceConfigError(int resourceId)
ResourceErrorType.INVALID_PLUGIN_CONFIGURATIONresourceId - id of the resource@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync") Map<Integer,org.rhq.core.domain.resource.InventoryStatus> getInventoryStatus(int rootResourceId, boolean descendants)
rootResourceId - a Resource iddescendants - true if the resource's descendants should be included, or false if notorg.rhq.core.domain.discovery.MergeResourceResponse addResource(org.rhq.core.domain.resource.Resource resource,
int creatorSubjectId)
resource - the resource to be mergedcreatorSubjectId - the Subject id of the JON user that requested the
addition of the resourceboolean updateResourceVersion(int resourceId,
String version)
resourceId - the id of the Resource to be updatedversion - the new versionSet<ResourceUpgradeResponse> upgradeResources(Set<ResourceUpgradeRequest> upgradeRequests)
upgradeRequests - contains the information about the upgrade of individual resources.@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync") Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> postProcessNewlyCommittedResources(Set<Integer> resourceIds)
resourceIds - a collection ofResource ids that have been newly committed and successfully
synchronized on the agentCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.