public interface ResourceManagerRemote
| Modifier and Type | Method and Description |
|---|---|
List<Integer> |
disableResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Set these resources to
AvailabilityType.DISABLED. |
List<Integer> |
enableResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Set these resources enabled.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findChildResources(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pageControl) |
List<org.rhq.core.domain.resource.Resource> |
findResourceLineage(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the lineage of the Resource with the specified id.
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> |
findResourcesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceCriteria criteria) |
org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary |
getAvailabilitySummary(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns a summary object that provides information about a resource's
past availability history.
|
org.rhq.core.domain.measurement.ResourceAvailability |
getLiveResourceAvailability(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the availability of the resource with the specified id.
|
org.rhq.core.domain.resource.Resource |
getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId) |
org.rhq.core.domain.resource.Resource |
getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the Resource with the specified id.
|
Map<Integer,String> |
getResourcesAncestry(org.rhq.core.domain.auth.Subject subject,
Integer[] resourceIds,
org.rhq.core.domain.resource.ResourceAncestryFormat format)
Resource.ancestry is an encoded value that holds the resource's parental ancestry.
|
void |
uninventoryAllResourcesByAgent(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.Agent doomedAgent)
This will uninventory all resources managed by the given agent.
|
List<Integer> |
uninventoryResources(org.rhq.core.domain.auth.Subject subject,
int[] resourceIds)
Removes these resources from inventory.
|
void |
uninventoryResourcesOfResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
Given a specific resource type, this will uninventory all resources of that type.
|
org.rhq.core.domain.resource.Resource |
updateResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
Update resource's editable properties (name, description, location).
|
org.rhq.core.domain.resource.composite.ResourceAvailabilitySummary getAvailabilitySummary(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - resourceId - org.rhq.core.domain.measurement.ResourceAvailability getLiveResourceAvailability(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - The logged in user's subject.resourceId - the id of a Resource in inventory.null,
the resource availability is UNKNOWN. As of RHQ 4.4 this does not return null but rather
AvailabilityType.UNKNOWN.org.rhq.core.domain.resource.Resource getResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
throws ResourceNotFoundException,
PermissionException
subject - The logged in user's subject.resourceId - the id of a Resource in inventory.ResourceNotFoundException - if the resource represented by the resourceId parameter does not exist.PermissionException - if the user does not have view permission for the resourceList<org.rhq.core.domain.resource.Resource> findResourceLineage(org.rhq.core.domain.auth.Subject subject, int resourceId)
subject - The logged in user's subject.resourceId - the id of a Resource in inventoryResourceNotFoundException - if the resource represented by the resourceId parameter does not exist.PermissionException - if the user does not have view permission for a resource in the lineageorg.rhq.core.domain.resource.Resource updateResource(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.resource.Resource resource)
subject - the logged in userresource - the resource to updatevoid uninventoryAllResourcesByAgent(org.rhq.core.domain.auth.Subject user,
org.rhq.core.domain.resource.Agent doomedAgent)
user - the logged in userdoomedAgent - the agent to be deleted and whose resources are to be uninventoriedvoid uninventoryResourcesOfResourceType(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId)
subject - the logged in userresourceTypeId - identifies the type whose resources are to be uninventoriedList<Integer> uninventoryResources(org.rhq.core.domain.auth.Subject subject, int[] resourceIds)
subject - The logged in user's subject.resourceIds - The resources to uninventory.org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findResourcesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceCriteria criteria)
subject - criteria - org.rhq.core.domain.util.PageList<org.rhq.core.domain.resource.Resource> findChildResources(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pageControl)
subject - resourceId - pageControl - org.rhq.core.domain.resource.Resource getParentResource(org.rhq.core.domain.auth.Subject subject,
int resourceId)
throws ResourceNotFoundException,
PermissionException
subject - resourceId - ResourceNotFoundException - if the resource does not existPermissionException - if the user does not have view permission for a resource in the lineageMap<Integer,String> getResourcesAncestry(org.rhq.core.domain.auth.Subject subject, Integer[] resourceIds, org.rhq.core.domain.resource.ResourceAncestryFormat format)
subject - resourceIds - format - List<Integer> disableResources(org.rhq.core.domain.auth.Subject subject, int[] resourceIds)
AvailabilityType.DISABLED. While disabled resource availability reported
from the agent is ignored. This is typically used for resources undergoing scheduled maintenance or
whose avail state should be disregarded for some period.
Permission.DELETE_RESOURCE permission on all of the provided resources.
subject - The logged in user's subject.resourceIds - The resources to disable.enableResources(Subject, int[])List<Integer> enableResources(org.rhq.core.domain.auth.Subject subject, int[] resourceIds)
Permission.DELETE_RESOURCE permission on all of the provided resources.subject - The logged in user's subject.resourceIds - The resources to enable.disableResources(Subject, int[])Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.