|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscoveryServerService
The interface to a JON server's resource discovery subsystem.
| Field Summary | |
|---|---|
static String |
CONCURRENCY_LIMIT_AVAILABILITY_REPORT
|
static String |
CONCURRENCY_LIMIT_INVENTORY_REPORT
|
static String |
CONCURRENCY_LIMIT_INVENTORY_SYNC
|
| Method Summary | |
|---|---|
MergeResourceResponse |
addResource(Resource resource,
int creatorSubjectId)
Merges the specified resource into inventory. |
void |
clearResourceConfigError(int resourceId)
Clears errors of type ResourceErrorType.INVALID_PLUGIN_CONFIGURATION |
Map<Integer,InventoryStatus> |
getInventoryStatus(int rootResourceId,
boolean descendants)
Retrieve a set of inventory statuses for a resource and potentially its descendants. |
Set<Resource> |
getResources(Set<Integer> resourceIds,
boolean includeDescendants)
Returns the Resources with the given id's, optionally including all descendant Resources. |
boolean |
mergeAvailabilityReport(AvailabilityReport availabilityReport)
Merges a new availability report from the agent into the server. |
ResourceSyncInfo |
mergeInventoryReport(InventoryReport inventoryReport)
Merge the platform/servers/services contained in the specified inventory report into the server's inventory. |
Set<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 |
setResourceError(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. |
| Field Detail |
|---|
static final String CONCURRENCY_LIMIT_INVENTORY_REPORT
static final String CONCURRENCY_LIMIT_AVAILABILITY_REPORT
static final String CONCURRENCY_LIMIT_INVENTORY_SYNC
| Method Detail |
|---|
@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-report")
@Timeout(value=1800000L)
ResourceSyncInfo mergeInventoryReport(InventoryReport inventoryReport)
throws InvalidInventoryReportException
inventoryReport - a report containing updated inventory data
InvalidInventoryReportException - if the inventory report contains invalid data@LimitedConcurrency(value="rhq.server.concurrency-limit.availability-report") boolean mergeAvailabilityReport(AvailabilityReport availabilityReport)
availabilityReport - report containing updated availability statuses for a set of resources
true, 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.
Set<Resource> getResources(Set<Integer> resourceIds,
boolean includeDescendants)
resourceIds - includeDescendants -
@Asynchronous(guaranteedDelivery=false) void setResourceError(ResourceError resourceError)
resourceError - all information about the error that occurred@Asynchronous(guaranteedDelivery=true) void clearResourceConfigError(int resourceId)
ResourceErrorType.INVALID_PLUGIN_CONFIGURATION
resourceId - id of the resource
@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync")
Map<Integer,InventoryStatus> getInventoryStatus(int rootResourceId,
boolean descendants)
rootResourceId - a Resource iddescendants - true if the resource's descendants should be included, or false if not
MergeResourceResponse addResource(Resource resource,
int creatorSubjectId)
resource - the resource to be mergedcreatorSubjectId - the Subject id of the JON user that requested the
addition of the resource
boolean updateResourceVersion(int resourceId,
String version)
resourceId - the id of the Resource to be updatedversion - the new version
@LimitedConcurrency(value="rhq.server.concurrency-limit.inventory-sync") Set<ResourceMeasurementScheduleRequest> postProcessNewlyCommittedResources(Set<Integer> resourceIds)
resourceIds - a collection ofResource ids that have been newly committed and successfully
synchronized on the agent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||