org.rhq.enterprise.server.discovery
Class DiscoveryServerServiceImpl

java.lang.Object
  extended by org.rhq.enterprise.server.discovery.DiscoveryServerServiceImpl
All Implemented Interfaces:
DiscoveryServerService

public class DiscoveryServerServiceImpl
extends Object
implements DiscoveryServerService

This is the service that receives inventory data from agents. As agents discover resources, they report back to the server what they have found via this service. // TODO GH: Should this be renamed inventory server service?

Author:
John Mazzitelli

Field Summary
 
Fields inherited from interface org.rhq.core.clientapi.server.discovery.DiscoveryServerService
CONCURRENCY_LIMIT_AVAILABILITY_REPORT, CONCURRENCY_LIMIT_INVENTORY_REPORT, CONCURRENCY_LIMIT_INVENTORY_SYNC
 
Constructor Summary
DiscoveryServerServiceImpl()
           
 
Method Summary
 org.rhq.core.domain.discovery.MergeResourceResponse addResource(org.rhq.core.domain.resource.Resource resource, int creatorSubjectId)
           
 void clearResourceConfigError(int resourceId)
           
 Map<Integer,org.rhq.core.domain.resource.InventoryStatus> getInventoryStatus(int rootResourceId, boolean descendents)
           
 Set<org.rhq.core.domain.resource.Resource> getResources(Set<Integer> resourceIds, boolean includeDescendants)
           
 boolean mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport availabilityReport)
           
 org.rhq.core.domain.discovery.ResourceSyncInfo mergeInventoryReport(InventoryReport report)
           
 Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> postProcessNewlyCommittedResources(Set<Integer> resourceIds)
           
 void setResourceError(org.rhq.core.domain.resource.ResourceError resourceError)
           
 boolean updateResourceVersion(int resourceId, String version)
           
 Set<ResourceUpgradeResponse> upgradeResources(Set<ResourceUpgradeRequest> upgradeRequests)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiscoveryServerServiceImpl

public DiscoveryServerServiceImpl()
Method Detail

mergeInventoryReport

public org.rhq.core.domain.discovery.ResourceSyncInfo mergeInventoryReport(InventoryReport report)
                                                                    throws InvalidInventoryReportException,
                                                                           StaleTypeException
Specified by:
mergeInventoryReport in interface DiscoveryServerService
Throws:
InvalidInventoryReportException
StaleTypeException
See Also:
DiscoveryServerService.mergeInventoryReport(InventoryReport)

mergeAvailabilityReport

public boolean mergeAvailabilityReport(org.rhq.core.domain.discovery.AvailabilityReport availabilityReport)
Specified by:
mergeAvailabilityReport in interface DiscoveryServerService

getResources

public Set<org.rhq.core.domain.resource.Resource> getResources(Set<Integer> resourceIds,
                                                               boolean includeDescendants)
Specified by:
getResources in interface DiscoveryServerService

getInventoryStatus

public Map<Integer,org.rhq.core.domain.resource.InventoryStatus> getInventoryStatus(int rootResourceId,
                                                                                    boolean descendents)
Specified by:
getInventoryStatus in interface DiscoveryServerService

setResourceError

public void setResourceError(org.rhq.core.domain.resource.ResourceError resourceError)
Specified by:
setResourceError in interface DiscoveryServerService

clearResourceConfigError

public void clearResourceConfigError(int resourceId)
Specified by:
clearResourceConfigError in interface DiscoveryServerService

addResource

public org.rhq.core.domain.discovery.MergeResourceResponse addResource(org.rhq.core.domain.resource.Resource resource,
                                                                       int creatorSubjectId)
Specified by:
addResource in interface DiscoveryServerService

updateResourceVersion

public boolean updateResourceVersion(int resourceId,
                                     String version)
Specified by:
updateResourceVersion in interface DiscoveryServerService

upgradeResources

public Set<ResourceUpgradeResponse> upgradeResources(Set<ResourceUpgradeRequest> upgradeRequests)
Specified by:
upgradeResources in interface DiscoveryServerService

postProcessNewlyCommittedResources

public Set<org.rhq.core.domain.measurement.ResourceMeasurementScheduleRequest> postProcessNewlyCommittedResources(Set<Integer> resourceIds)
Specified by:
postProcessNewlyCommittedResources in interface DiscoveryServerService


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.