|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DiscoveryBossLocal
The boss interface to the discovery subsystem.
| Method Summary | |
|---|---|
org.rhq.core.domain.discovery.MergeResourceResponse |
addResource(org.rhq.core.domain.resource.Resource resource,
int ownerSubjectId)
Adds the specified resource to inventory, *auto-committing it*. |
List<org.rhq.core.domain.resource.Resource> |
getQueuedPlatformChildServers(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.InventoryStatus status,
org.rhq.core.domain.resource.Resource platform)
Given a platform resource, this returns all of its child server resources that have been auto-discovered and have the given status. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
getQueuedPlatforms(org.rhq.core.domain.auth.Subject user,
EnumSet<org.rhq.core.domain.resource.InventoryStatus> statuses,
org.rhq.core.domain.util.PageControl pc)
This returns all platform resources that either have the given status themselves or one or more of their child servers have that status. |
Map<org.rhq.core.domain.resource.Resource,List<org.rhq.core.domain.resource.Resource>> |
getQueuedPlatformsAndServers(org.rhq.core.domain.auth.Subject user,
EnumSet<org.rhq.core.domain.resource.InventoryStatus> statuses,
org.rhq.core.domain.util.PageControl pc)
Like the above method, but can find ignored, commited or both |
Map<org.rhq.core.domain.resource.Resource,List<org.rhq.core.domain.resource.Resource>> |
getQueuedPlatformsAndServers(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.util.PageControl pc)
Returns a map of platforms (the keys) and their servers (the values) that are in the auto-discovery queue but not yet imported into inventory. |
org.rhq.core.domain.discovery.MergeResourceResponse |
manuallyAddResource(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.ResourceType resourceType,
int parentResourceId,
org.rhq.core.domain.configuration.Configuration pluginConfiguration)
Manually add the resource of the specified type to inventory using the specified plugin configuration (i.e. |
org.rhq.core.domain.discovery.ResourceSyncInfo |
mergeInventoryReport(InventoryReport report)
When agents send up results from their discovery components (which notifies the server about newly discovered resources), this method will eventually be called in order to process those inventory reports. |
void |
updateAgentInventoryStatus(String platformsList,
String serversList)
|
void |
updateInventoryStatus(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.InventoryStatus status,
List<org.rhq.core.domain.resource.Resource> platforms,
List<org.rhq.core.domain.resource.Resource> servers)
This is used internally. |
void |
updateInventoryStatus(org.rhq.core.domain.auth.Subject user,
List<org.rhq.core.domain.resource.Resource> platforms,
List<org.rhq.core.domain.resource.Resource> servers,
org.rhq.core.domain.resource.InventoryStatus status)
This method is used to change the inventory status of a set of platforms and servers (e.g. |
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. |
| Methods inherited from interface org.rhq.enterprise.server.discovery.DiscoveryBossRemote |
|---|
ignoreResources, importResources, manuallyAddResource, unignoreResources |
| Method Detail |
|---|
org.rhq.core.domain.discovery.ResourceSyncInfo mergeInventoryReport(InventoryReport report)
throws InvalidInventoryReportException
report - the inventory report to be merged
InvalidInventoryReportException - if the inventory report is invalid
Map<org.rhq.core.domain.resource.Resource,List<org.rhq.core.domain.resource.Resource>> getQueuedPlatformsAndServers(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.util.PageControl pc)
user - the user that wants to see the datapc - used to define the size of the returned map - will determine how many platforms are returned
Map<org.rhq.core.domain.resource.Resource,List<org.rhq.core.domain.resource.Resource>> getQueuedPlatformsAndServers(org.rhq.core.domain.auth.Subject user,
EnumSet<org.rhq.core.domain.resource.InventoryStatus> statuses,
org.rhq.core.domain.util.PageControl pc)
user - the subjectstatuses - the inventory status'pc - page control
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> getQueuedPlatforms(org.rhq.core.domain.auth.Subject user,
EnumSet<org.rhq.core.domain.resource.InventoryStatus> statuses,
org.rhq.core.domain.util.PageControl pc)
user - the user that wants to see the datastatuses - the statuses that platform or its child servers must havepc - pagination controls
getQueuedPlatformChildServers(org.rhq.core.domain.auth.Subject, org.rhq.core.domain.resource.InventoryStatus, org.rhq.core.domain.resource.Resource)
List<org.rhq.core.domain.resource.Resource> getQueuedPlatformChildServers(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.InventoryStatus status,
org.rhq.core.domain.resource.Resource platform)
user - the user that wants to see the datastatus - the status that platform or its child servers must haveplatform - the resource whose auto-discovered child servers must have the given status
void updateInventoryStatus(org.rhq.core.domain.auth.Subject user,
List<org.rhq.core.domain.resource.Resource> platforms,
List<org.rhq.core.domain.resource.Resource> servers,
org.rhq.core.domain.resource.InventoryStatus status)
user - the user that wants to change the statusplatforms - identifies the platforms that are to be updatedservers - identifies the servers that are to be updatedstatus - the new status the given resources will have
void updateInventoryStatus(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.InventoryStatus status,
List<org.rhq.core.domain.resource.Resource> platforms,
List<org.rhq.core.domain.resource.Resource> servers)
updateInventoryStatus(Subject, List, List, InventoryStatus) for the "public" version.
user - the user that wants to change the statusstatus - the new status the given resources will haveplatforms - identifies the platforms that are to be updatedservers - identifies the servers that are to be updated
@NotNull
org.rhq.core.domain.discovery.MergeResourceResponse manuallyAddResource(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.ResourceType resourceType,
int parentResourceId,
org.rhq.core.domain.configuration.Configuration pluginConfiguration)
throws InvalidPluginConfigurationClientException,
PluginContainerException
user - the user that wants to add the resourceresourceType - the type of resource to be manually discoveredparentResourceId - 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 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 reason
org.rhq.core.domain.discovery.MergeResourceResponse addResource(org.rhq.core.domain.resource.Resource resource,
int ownerSubjectId)
resource - the resource to be mergedownerSubjectId - the user who should be the owner of the new Resource
boolean updateResourceVersion(int resourceId,
String version)
version, then
this method does nothing and returns true.
resourceId - the id of the Resource to be updatedversion - the new version
true if the Resource was in inventory and its version is now that of version.
false if the Resource was not in inventorySet<ResourceUpgradeResponse> upgradeResources(Set<ResourceUpgradeRequest> upgradeRequests)
upgradeRequests - contains the information about the upgrade of individual resources.
void updateAgentInventoryStatus(String platformsList,
String serversList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||