public interface InventoryManagerLocal
| Modifier and Type | Method and Description |
|---|---|
List<org.rhq.core.domain.resource.ResourceType> |
getDeletedTypes() |
boolean |
isReadyForPermanentRemoval(org.rhq.core.domain.resource.ResourceType resourceType)
Determines whether or not a resource type is ready to be permanently removed from the database.
|
int |
markTypesDeleted(List<Integer> resourceTypeIds,
boolean uninventoryResources)
Marks the specified resource types for deletion by setting the deleted
flag on each one.
|
void |
purgeDeletedResourceType(org.rhq.core.domain.resource.ResourceType resourceType)
Permanently removes the resource type from the database along with all associated meta data such as metric
definitions, operation definitions, and resource configuration definitions.
|
int markTypesDeleted(List<Integer> resourceTypeIds, boolean uninventoryResources)
uninventoryResources is true then all resources of the affected types are removed from
inventory as well. Marking a resource type for deletion will effectively result in the resource type and all of
its associated meta data being removed from the system. That meta data includes metric definitions, operation
definitions, resource configuration definitions, plugin configuration definitions, event definitions, etc.
Note that this method only marks the resource types and their resources for deletion. The actual deletion is
carried out by asynchronously by a scheduled job (which ultimately will uninventory the resources if not done
beforehand).resourceTypeIds - The ids of the resource types to deleteuninventoryResources - True to uninventory the resources of the marked types, False to ignore the resourcesList<org.rhq.core.domain.resource.ResourceType> getDeletedTypes()
boolean isReadyForPermanentRemoval(org.rhq.core.domain.resource.ResourceType resourceType)
resourceType - The resource type to checktrue if the resource type is ready to be permanently deleted.void purgeDeletedResourceType(org.rhq.core.domain.resource.ResourceType resourceType)
PurgeResourceTypesJob.resourceType - The resource type to deleteCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.