public interface DiscoveryBossLocal extends DiscoveryBossRemote
| Modifier and Type | Method and Description |
|---|---|
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*.
|
org.rhq.core.domain.discovery.PlatformSyncInfo |
getPlatformSyncInfo(org.rhq.core.domain.resource.Agent knownAgent)
Just get the top level server info for the agent's platform.
|
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)
Deprecated.
unused, remove when doing a deprecation cleanup
|
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)
Deprecated.
used only by portal war, should be removed when possible.
|
Collection<org.rhq.core.domain.discovery.ResourceSyncInfo> |
getResourceSyncInfo(int resourceId) |
org.rhq.core.domain.resource.ImportResourceResponse |
manuallyAddResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.ImportResourceRequest importResourceRequest)
Manually Add the resource to inventory using the type and plugin configuration (i.e.
|
org.rhq.core.domain.discovery.MergeInventoryReportResults |
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 |
mergeResourceInNewTransaction(List<org.rhq.core.domain.resource.Resource> resourceBatch,
org.rhq.core.domain.resource.Agent agent,
Map<org.rhq.core.domain.resource.Resource,Set<org.rhq.enterprise.server.discovery.DiscoveryBossBean.PostMergeAction>> postMergeActions)
Exists for transactional boundary reasons only.
|
void |
updateAgentInventoryStatus(String platformsList,
String serversList) |
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.
|
void |
updateInventoryStatusInNewTransaction(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 is used internally.
|
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.
|
ignoreResources, importResources, manuallyAddResource, unignoreAndImportResources, unignoreResourcesorg.rhq.core.domain.discovery.MergeInventoryReportResults mergeInventoryReport(InventoryReport report) throws InvalidInventoryReportException
report - the inventory report to be mergedInvalidInventoryReportException - if the inventory report is invalidvoid mergeResourceInNewTransaction(List<org.rhq.core.domain.resource.Resource> resourceBatch, org.rhq.core.domain.resource.Agent agent, Map<org.rhq.core.domain.resource.Resource,Set<org.rhq.enterprise.server.discovery.DiscoveryBossBean.PostMergeAction>> postMergeActions) throws InvalidInventoryReportException
Exists for transactional boundary reasons only.
Merge In the provided batch of resources. The list of resources must provide a parent before its child.resourceBatch - a batch of resourcesagent - the agent managing the resourcespostMergeActions - a series of actions to perform on newly committed resources.InvalidInventoryReportExceptionorg.rhq.core.domain.discovery.PlatformSyncInfo getPlatformSyncInfo(org.rhq.core.domain.resource.Agent knownAgent)
knownAgent - the agent for the platform we want to sync withCollection<org.rhq.core.domain.discovery.ResourceSyncInfo> getResourceSyncInfo(int resourceId)
resourceId - the root resourceId on which we want to sync@Deprecated 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@Deprecated 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 controlorg.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 controlsgetQueuedPlatformChildServers(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 statusvoid 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 havevoid updateInventoryStatusInNewTransaction(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)
updateInventoryStatus(Subject, List, List, InventoryStatus) for the "public" version.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 haveorg.rhq.core.domain.resource.ImportResourceResponse manuallyAddResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.ImportResourceRequest importResourceRequest)
throws InvalidPluginConfigurationClientException,
PluginContainerException
importResourceRequest. This will not only create a new resource, but it will also
ensure the resource component is activated (and thus connects to the managed resource).subject - the user making the requestimportResourceRequest - the requestInvalidPluginConfigurationClientException - if connecting to the underlying managed resource failed due to
an invalid plugin configurationPluginContainerException - if the manual discovery fails for any other reasonorg.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 Resourceboolean 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 versiontrue 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.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.