|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ResourceManagerRemote
Method Summary | |
---|---|
List<Integer> |
disableResources(Subject subject,
int[] resourceIds)
Set these resources to AvailabilityType.DISABLED . |
List<Integer> |
enableResources(Subject subject,
int[] resourceIds)
Set these resources enabled. |
PageList<Resource> |
findChildResources(Subject subject,
int resourceId,
PageControl pageControl)
|
List<Resource> |
findResourceLineage(Subject subject,
int resourceId)
Returns the lineage of the Resource with the specified id. |
PageList<Resource> |
findResourcesByCriteria(Subject subject,
ResourceCriteria criteria)
|
ResourceAvailabilitySummary |
getAvailabilitySummary(Subject subject,
int resourceId)
Returns a summary object that provides information about a resource's past availability history. |
ResourceAvailability |
getLiveResourceAvailability(Subject subject,
int resourceId)
Returns the availability of the resource with the specified id. |
Resource |
getParentResource(Subject subject,
int resourceId)
|
Resource |
getResource(Subject subject,
int resourceId)
Returns the Resource with the specified id. |
Map<Integer,String> |
getResourcesAncestry(Subject subject,
Integer[] resourceIds,
ResourceAncestryFormat format)
Resource.ancestry is an encoded value that holds the resource's parental ancestry. |
List<Integer> |
uninventoryResources(Subject subject,
int[] resourceIds)
Removes these resources from inventory. |
Resource |
updateResource(Subject subject,
Resource resource)
Update resource's editable properties (name, description, location). |
Method Detail |
---|
ResourceAvailabilitySummary getAvailabilitySummary(Subject subject, int resourceId)
subject
- resourceId
-
ResourceAvailability getLiveResourceAvailability(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
.
FetchException
- if the resource represented by the resourceId parameter does not exist, or if the
passed subject does not have permission to view this resource.Resource getResource(Subject subject, int resourceId)
subject
- The logged in user's subject.resourceId
- the id of a Resource
in inventory.
FetchException
- if the resource represented by the resourceId parameter does not exist, or if the
passed subject does not have permission to view this resource.List<Resource> findResourceLineage(Subject subject, int resourceId)
subject
- The logged in user's subject.resourceId
- the id of a Resource
in inventory
FetchException
- on any issue. Wraps ResourceNotFoundException when necessary.Resource updateResource(Subject subject, Resource resource)
user
- the logged in userresource
- the resource to update
List<Integer> uninventoryResources(Subject subject, int[] resourceIds)
subject
- The logged in user's subject.resourceIds
- The resources to uninventory.PageList<Resource> findResourcesByCriteria(Subject subject, ResourceCriteria criteria)
PageList<Resource> findChildResources(Subject subject, int resourceId, PageControl pageControl)
Resource getParentResource(Subject subject, int resourceId)
Map<Integer,String> getResourcesAncestry(Subject subject, Integer[] resourceIds, ResourceAncestryFormat format)
subject
- resourceIds
- format
-
List<Integer> disableResources(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 fo some period.
Permission.DELETE
permission on all of the provided resources.
subject
- The logged in user's subject.resourceIds
- The resources to uninventory.enableResources(Subject, int[])
List<Integer> enableResources(Subject subject, int[] resourceIds)
Permission.DELETE
permission on all of the provided resources.
subject
- The logged in user's subject.resourceIds
- The resources to uninventory.disableResources(Subject, int[])
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |