|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OperationManagerLocal
| Method Summary | |
|---|---|
void |
cancelOperationHistory(org.rhq.core.domain.auth.Subject subject,
int historyId,
boolean ignoreAgentErrors)
Cancels a currently in-progress operation. |
void |
checkForCompletedGroupOperation(int historyId)
This is, for all intents and purposes, and internal method. |
void |
checkForTimedOutOperations(org.rhq.core.domain.auth.Subject whoami)
Will check to see if any in progress operation jobs are taking too long to finish and if so marks their histories as failed. |
void |
deleteOperationHistory(org.rhq.core.domain.auth.Subject subject,
int historyId,
boolean purgeInProgress)
Purges the history from the database. |
void |
deleteOperationScheduleEntity(org.rhq.core.domain.operation.ScheduleJobId jobId)
This will delete an operation schedule entity identified with the given job ID. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> |
findCompletedGroupOperationHistories(org.rhq.core.domain.auth.Subject subject,
int groupId,
org.rhq.core.domain.util.PageControl pc)
Returns the list of completed operation histories for the group resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> |
findCompletedResourceOperationHistories(org.rhq.core.domain.auth.Subject subject,
int resourceId,
Long startDate,
Long endDate,
org.rhq.core.domain.util.PageControl pc)
Returns the list of completed operation histories for the given resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.GroupOperationScheduleComposite> |
findCurrentlyScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
Gets a list of all currently scheduled group operations (that is, scheduled but not yet invoked and/or completed). |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.ResourceOperationScheduleComposite> |
findCurrentlyScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
Gets a list of all currently scheduled resource operations (that is, scheduled but not yet invoked and/or completed). |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> |
findGroupOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupOperationHistoryCriteria criteria)
|
List<org.rhq.core.domain.operation.OperationDefinition> |
findOperationDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.OperationDefinitionCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> |
findPendingGroupOperationHistories(org.rhq.core.domain.auth.Subject subject,
int groupId,
org.rhq.core.domain.util.PageControl pc)
Returns the list of pending operation histories for the group resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> |
findPendingResourceOperationHistories(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pc)
Returns the list of pending operation histories for the given resource. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.GroupOperationLastCompletedComposite> |
findRecentlyCompletedGroupOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
Gets a list of all recently completed group operations. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.ResourceOperationLastCompletedComposite> |
findRecentlyCompletedResourceOperations(org.rhq.core.domain.auth.Subject subject,
Integer resourceId,
org.rhq.core.domain.util.PageControl pc)
Gets a list of all recently completed resource operations. |
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> |
findResourceOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceOperationHistoryCriteria criteria)
|
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> |
findResourceOperationHistoriesByGroupHistoryId(org.rhq.core.domain.auth.Subject subject,
int historyId,
org.rhq.core.domain.util.PageControl pc)
Get the paged resource operation histories for a given group history. |
List<org.rhq.core.domain.operation.bean.GroupOperationSchedule> |
findScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
int groupId)
Returns the list of schedules for the group itself. |
List<org.rhq.core.domain.operation.bean.ResourceOperationSchedule> |
findScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Returns the list of scheduled operations for the given resource. |
List<org.rhq.core.domain.operation.OperationDefinition> |
findSupportedGroupOperations(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
boolean eagerLoaded)
Returns the definitions of all the operations supported by the given group. |
List<org.rhq.core.domain.operation.OperationDefinition> |
findSupportedResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean eagerLoaded)
Returns the definitions of all the operations supported by the given resource. |
List<org.rhq.core.domain.operation.OperationDefinition> |
findSupportedResourceTypeOperations(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId,
boolean eagerLoaded)
Returns the definitions of all the operations supported by the given resource type. |
org.rhq.core.domain.operation.bean.GroupOperationSchedule |
getGroupOperationSchedule(org.rhq.core.domain.auth.Subject whoami,
int scheduleId)
TODO |
org.rhq.core.domain.operation.bean.GroupOperationSchedule |
getGroupOperationSchedule(org.rhq.core.domain.auth.Subject subject,
org.quartz.JobDetail jobDetail)
Given a group operation job's details, this returns a schedule POJO corresponding to that job. |
org.rhq.core.domain.operation.bean.GroupOperationSchedule |
getGroupOperationSchedule(org.rhq.core.domain.auth.Subject subject,
String jobId)
Given a group job's id, this returns the schedule for that group job. |
org.rhq.core.domain.operation.ResourceOperationHistory |
getLatestCompletedResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the mostly recently run operation for the Resource with the given id, or null if the
resource has had no operations performed against it yet (or if all previously performed operations have been
deleted from the history). |
org.rhq.core.domain.operation.ResourceOperationHistory |
getOldestInProgressResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Get the oldest operation still in progress for the Resource with the given id, or null if
the resource has no operations being performed against it. |
org.rhq.core.domain.operation.OperationDefinition |
getOperationDefinition(org.rhq.core.domain.auth.Subject subject,
int operationId)
Get the OperationDefinition object that corresponds to this operationId |
org.rhq.core.domain.operation.OperationDefinition |
getOperationDefinitionByResourceTypeAndName(int resourceTypeId,
String operationName,
boolean eagerLoaded)
|
org.rhq.core.domain.operation.OperationHistory |
getOperationHistoryByHistoryId(org.rhq.core.domain.auth.Subject subject,
int historyId)
TODO |
org.rhq.core.domain.operation.OperationHistory |
getOperationHistoryByJobId(org.rhq.core.domain.auth.Subject subject,
String historyJobId)
TODO |
List<org.rhq.core.domain.common.composite.IntegerOptionItem> |
getResourceNameOptionItems(int groupId)
TODO |
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
getResourceOperationSchedule(org.rhq.core.domain.auth.Subject whoami,
int scheduleId)
TODO |
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
getResourceOperationSchedule(org.rhq.core.domain.auth.Subject subject,
org.quartz.JobDetail jobDetail)
Given a Resource operation job's details, this returns a schedule POJO corresponding to that job. |
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
getResourceOperationSchedule(org.rhq.core.domain.auth.Subject subject,
String jobId)
Given a resource job's id, this returns the schedule for that resource job. |
org.rhq.core.domain.operation.OperationDefinition |
getSupportedGroupOperation(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
String operationName,
boolean eagerLoaded)
Returns the definition of the named operation supported by the given group. |
org.rhq.core.domain.operation.OperationDefinition |
getSupportedResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
boolean eagerLoaded)
Returns the definition of the named operation supported by the given resource. |
boolean |
isGroupOperationSupported(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
Determines if the given group has at least one operation. |
boolean |
isResourceOperationSupported(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Determines if the given resource has at least one operation. |
int |
scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.GroupOperationSchedule schedule)
Schedules a Resource group operation for execution. |
org.rhq.core.domain.operation.bean.GroupOperationSchedule |
scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
String description)
#see {@link OperationManagerRemote#scheduleGroupOperation |
org.rhq.core.domain.operation.bean.GroupOperationSchedule |
scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
org.quartz.Trigger trigger,
String description)
Schedules an operation for execution on members of the given group. |
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
org.quartz.Trigger trigger,
String description)
Schedules an operation for execution on the given resource. |
org.rhq.core.domain.operation.bean.ResourceOperationSchedule |
scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
org.rhq.core.domain.configuration.Configuration parameters,
String description)
Schedules an operation for execution on the given resource. |
int |
scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule)
Schedules a Resource operation for execution. |
void |
unscheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceGroupId)
see OperationManagerRemote.unscheduleGroupOperation(org.rhq.core.domain.auth.Subject, String, int) |
void |
unscheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceId)
Unschedules the resource operation identified with the given job ID. |
org.rhq.core.domain.operation.OperationHistory |
updateOperationHistory(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.OperationHistory history)
This is called by the jobs so they can update the history. |
void |
updateOperationScheduleEntity(org.rhq.core.domain.operation.ScheduleJobId jobId,
long nextFireTime)
This allows you to update an operation schedule entity with a new next-fire-time. |
| Method Detail |
|---|
List<org.rhq.core.domain.common.composite.IntegerOptionItem> getResourceNameOptionItems(int groupId)
groupId -
int scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.ResourceOperationSchedule schedule)
subject - the user who is asking to schedule the jobschedule - the information describing the operation to be scheduled along with the schedule to be used
ResourceOperationScheduleEntity created to track the
scheduled operation
int scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.bean.GroupOperationSchedule schedule)
throws ScheduleException
subject - the user who is asking to schedule the jobschedule - the information describing the operation to be scheduled along with the schedule to be used
GroupOperationScheduleEntity created to track the
scheduled operation
ScheduleException
org.rhq.core.domain.operation.bean.ResourceOperationSchedule scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
org.quartz.Trigger trigger,
String description)
throws org.quartz.SchedulerException
subject - the user who is asking to schedule the jobresourceId - the resource that is the target of the operationoperationName - the actual operation to invokeparameters - optional parameters to pass into the operationtrigger - the schedule of when the job runs (the names and group names in this trigger are ignored
and reset by this method)description - user-entered description of the job to be scheduled
org.quartz.SchedulerException - if failed to schedule the operation
org.rhq.core.domain.operation.bean.GroupOperationSchedule scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
org.quartz.Trigger trigger,
String description)
throws org.quartz.SchedulerException
subject - the user who is asking to schedule the jobgroupId - the group whose member resources are the target of the operationexecutionOrderResourceIds - optional order of exection - if notnull, these are group members
resource IDs in the order in which the operations are invokedhaltOnFailure - if true, the group operation will halt whenever one individual
resource fails to execute. When executing in order, this means once a failure
occurs, the resources next in line to execute will abort and not attempt to
execute. If not executing in any particular order, you are not guaranteed which
will stop and which will continue since all are executed as fast as possible,
but the group operation will attempt to stop as best it can.operationName - the actual operation to invokeparameters - optional parameters to pass into the operationtrigger - the schedule of when the job runs (the names and group names in this trigger
are ignored and reset by this method)description - user-entered description of the job to be scheduled
org.quartz.SchedulerException - if failed to schedule the operation
org.rhq.core.domain.operation.bean.ResourceOperationSchedule getResourceOperationSchedule(org.rhq.core.domain.auth.Subject whoami,
int scheduleId)
whoami - scheduleId -
org.rhq.core.domain.operation.bean.GroupOperationSchedule getGroupOperationSchedule(org.rhq.core.domain.auth.Subject whoami,
int scheduleId)
whoami - scheduleId -
void deleteOperationScheduleEntity(org.rhq.core.domain.operation.ScheduleJobId jobId)
This method is really just for the OperationJob objects to clean out the schedule tracking entity when
the schedule has run its course and will no longer be triggered. The UI or other pieces of client code will
usually not have to ever use this method; if you are thinking about having a need to call this method, please
know what you are doing.
jobId -
void updateOperationScheduleEntity(org.rhq.core.domain.operation.ScheduleJobId jobId,
long nextFireTime)
This method is really just for the OperationJob objects to update the schedule tracking entity. The UI
or other pieces of client code will usually not have to ever use this method; if you are thinking about having a
need to call this method, please know what you are doing.
jobId - nextFireTime - the next time this job is due to be triggered
List<org.rhq.core.domain.operation.bean.GroupOperationSchedule> findScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
int groupId)
throws Exception
subject - groupId -
Exception - TODO
@Nullable
org.rhq.core.domain.operation.bean.ResourceOperationSchedule getResourceOperationSchedule(org.rhq.core.domain.auth.Subject subject,
org.quartz.JobDetail jobDetail)
subject - jobDetail -
org.rhq.core.domain.operation.bean.ResourceOperationSchedule getResourceOperationSchedule(org.rhq.core.domain.auth.Subject subject,
String jobId)
throws org.quartz.SchedulerException
subject - jobId -
org.quartz.SchedulerException - if failed to find the schedule
@Nullable
org.rhq.core.domain.operation.bean.GroupOperationSchedule getGroupOperationSchedule(org.rhq.core.domain.auth.Subject subject,
org.quartz.JobDetail jobDetail)
subject - jobDetail -
org.rhq.core.domain.operation.bean.GroupOperationSchedule getGroupOperationSchedule(org.rhq.core.domain.auth.Subject subject,
String jobId)
throws org.quartz.SchedulerException
subject - jobId -
org.quartz.SchedulerException - if failed to find the schedule
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> findResourceOperationHistoriesByGroupHistoryId(org.rhq.core.domain.auth.Subject subject,
int historyId,
org.rhq.core.domain.util.PageControl pc)
subject - the user that wants to see the historyhistoryId - ID of the history to retrievepc - the page control used for sorting and paging of results
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> findCompletedGroupOperationHistories(org.rhq.core.domain.auth.Subject subject,
int groupId,
org.rhq.core.domain.util.PageControl pc)
findCompletedResourceOperationHistories(Subject, int, Long, Long, PageControl) for that.
subject - groupId - pc -
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> findPendingGroupOperationHistories(org.rhq.core.domain.auth.Subject subject,
int groupId,
org.rhq.core.domain.util.PageControl pc)
findPendingResourceOperationHistories(Subject, int, PageControl) for that.
subject - groupId - pc -
org.rhq.core.domain.operation.OperationHistory updateOperationHistory(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.operation.OperationHistory history)
Every call to this method will trigger at least one check against the AlertConditionCacheManager. The first is against the passed history element itself, which captures the creation events (history element will be in the INPROGRESS state), as well as updated to ResourceOperationHistory elements (completed, failed, etc).
Furthermore, since ResourceOperationHistory elements are reused for execution of group operations, this method also checks to see if it is part of a larger group operation. If it is, and if it is the last member of that group to finish, the group status will be updated. This will trigger a second check against the AlertConditionCacheManager using that corresponding group history element.
subject - the user that the job is executing underhistory - the history with the data to be updated
void checkForCompletedGroupOperation(int historyId)
historyId - the integer id of the OperationHistory entity that needs to be checked
List<org.rhq.core.domain.operation.OperationDefinition> findSupportedResourceTypeOperations(org.rhq.core.domain.auth.Subject subject,
int resourceTypeId,
boolean eagerLoaded)
subject - resourceTypeId - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
List<org.rhq.core.domain.operation.OperationDefinition> findSupportedGroupOperations(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
boolean eagerLoaded)
subject - compatibleGroupId - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
org.rhq.core.domain.operation.OperationDefinition getSupportedResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
boolean eagerLoaded)
subject - resourceId - operationName - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
org.rhq.core.domain.operation.OperationDefinition getSupportedGroupOperation(org.rhq.core.domain.auth.Subject subject,
int compatibleGroupId,
String operationName,
boolean eagerLoaded)
subject - compatibleGroupId - operationName - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
boolean isResourceOperationSupported(org.rhq.core.domain.auth.Subject subject,
int resourceId)
subject - resourceId -
true if the resource has at least one operation
boolean isGroupOperationSupported(org.rhq.core.domain.auth.Subject subject,
int resourceGroupId)
subject - resourceGroupId -
true if the group has at least one operationvoid checkForTimedOutOperations(org.rhq.core.domain.auth.Subject whoami)
Calls to this method could trigger a number of checks against the AlertConditionCacheManager. The first set of checks would be against any and all resource operations that have timed out. Then, for any of these timeouts, since ResourceOperationHistory elements are reused for execution of group operations, this method also checks to see if it is part of a larger group operation. If it is, and if it is the last member of that group to finish, the group status will be updated. This will trigger another check against the AlertConditionCacheManager using that corresponding group history element.
whoami - only the overlord may execute this system operation
@Nullable
org.rhq.core.domain.operation.ResourceOperationHistory getLatestCompletedResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Resource with the given id, or null if the
resource has had no operations performed against it yet (or if all previously performed operations have been
deleted from the history). Returns the result of the operation as it is known on the server-side in the database.
subject - the user who wants to see the informationresourceId - a Resource id
Resource with the given id, or null
if the resource has had no operations performed against it yet.
@Nullable
org.rhq.core.domain.operation.ResourceOperationHistory getOldestInProgressResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId)
Resource with the given id, or null if
the resource has no operations being performed against it. Returns the INPROCESS element with empty results.
subject - the user who wants to see the informationresourceId - a Resource id
Resource with the given id, or null
if the resource has no operations being performed against it.
org.rhq.core.domain.operation.OperationDefinition getOperationDefinition(org.rhq.core.domain.auth.Subject subject,
int operationId)
subject - the user who wants to see the informationoperationId -
org.rhq.core.domain.operation.OperationDefinition getOperationDefinitionByResourceTypeAndName(int resourceTypeId,
String operationName,
boolean eagerLoaded)
throws OperationDefinitionNotFoundException
resourceTypeId - operationName - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
OperationDefinitionNotFoundException
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.ResourceOperationLastCompletedComposite> findRecentlyCompletedResourceOperations(org.rhq.core.domain.auth.Subject subject,
Integer resourceId,
org.rhq.core.domain.util.PageControl pc)
Only resource operations are returned (group operations are ignored by this method). However, if a group operation was executed, all of the resource executions that occurred as part of it will be returned (that is, the resources in that group will have its resource operations returned.
subject - the user asking for the data; the returned list is limited to what this user can seeresourceId - if non-null, will only result recent completed operations for this resourcepc - limits the number of composite objects returned
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.GroupOperationLastCompletedComposite> findRecentlyCompletedGroupOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
subject - the user asking for the data; the returned list is limited to what this user can seepc - limits the number of composite objects returned
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.ResourceOperationScheduleComposite> findCurrentlyScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
subject - the user asking for the data; the returned list is limited to what this user can seepc - limits the number of composite objects returned
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.composite.GroupOperationScheduleComposite> findCurrentlyScheduledGroupOperations(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.util.PageControl pc)
subject - the user asking for the data; the returned list is limited to what this user can seepc - limits the number of composite objects returned
void cancelOperationHistory(org.rhq.core.domain.auth.Subject subject,
int historyId,
boolean ignoreAgentErrors)
Note that this method will handle canceling a resource or group history - depending on what the given
historyId refers to. If it refers to a group history, it will cancel all the resource invocations for that
group invocation.
If the cancel request succeeds, the history element will be checked against the AlertConditionCacheManager.
subject - the user that wants to cancel the operationhistoryId - the ID of the history item identifying the in-progress operationignoreAgentErrors - if true this will still flag the history items in the database as canceled,
even if the method failed to notify the agent(s) that the operation should be canceled.
If false, this method will not update the history status unless it could
successfully tell the agent(s) to cancel the operation.
void deleteOperationHistory(org.rhq.core.domain.auth.Subject subject,
int historyId,
boolean purgeInProgress)
Note that this method will handle deleting a resource or group history - depending on what the given
historyId refers to.
subject - the user that wants to delete the historyhistoryId - the ID of the history to be deletedpurgeInProgress - if true, even if the operation is in progress, the history entity will be
deleted. You normally do not want to purge operation histories until they are completed,
so you normally pass in false, but a user might want to force it to be
purged, in which case the UI will want to pass in true
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> findCompletedResourceOperationHistories(org.rhq.core.domain.auth.Subject subject,
int resourceId,
Long startDate,
Long endDate,
org.rhq.core.domain.util.PageControl pc)
subject - resourceId - startDate - filter used to show only results occurring after this epoch millis parameter, nullableendDate - filter used to show only results occurring before this epoch millis parameter, nullablepc -
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> findPendingResourceOperationHistories(org.rhq.core.domain.auth.Subject subject,
int resourceId,
org.rhq.core.domain.util.PageControl pc)
subject - resourceId - pc -
org.rhq.core.domain.operation.OperationHistory getOperationHistoryByHistoryId(org.rhq.core.domain.auth.Subject subject,
int historyId)
org.rhq.core.domain.operation.OperationHistory getOperationHistoryByJobId(org.rhq.core.domain.auth.Subject subject,
String historyJobId)
List<org.rhq.core.domain.operation.bean.ResourceOperationSchedule> findScheduledResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId)
throws Exception
subject - resourceId -
Exception - TODO
List<org.rhq.core.domain.operation.OperationDefinition> findSupportedResourceOperations(org.rhq.core.domain.auth.Subject subject,
int resourceId,
boolean eagerLoaded)
subject - resourceId - eagerLoaded - if true the parametersConfigurationDefinition, resultsConfigurationDefinition, and
resourceType fields are eagerly loaded, otherwise they are left as null references
org.rhq.core.domain.operation.bean.GroupOperationSchedule scheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
org.rhq.core.domain.configuration.Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
String description)
throws ScheduleException
ScheduleException
org.rhq.core.domain.operation.bean.ResourceOperationSchedule scheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
int resourceId,
String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
org.rhq.core.domain.configuration.Configuration parameters,
String description)
throws ScheduleException
subject - The logged in user's subject.resourceId - the resource that is the target of the operationoperationName - the actual operation to invokedelay - the number of milliseconds to delay this operation, 0 for immediate start.repeatInterval - the number of milliseconds after completion to repeat this operation. 0 for no repeat.repeatCount - the number of times to repeat this operation. -1 infinite, 0 for no repeat.timeout - the number of seconds before this operation will fail due to timeout. 0 for no timeout.parameters - the names parameters for the operation.description - user-entered description of the job to be scheduled
ScheduleException - TODO
void unscheduleResourceOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceId)
throws UnscheduleException
subject - the user who is asking to unschedule the operationjobId - identifies the operation to unscheduleresourceId - the ID of the resource whose operation is getting unscheduled
UnscheduleException - TODO
void unscheduleGroupOperation(org.rhq.core.domain.auth.Subject subject,
String jobId,
int resourceGroupId)
throws UnscheduleException
OperationManagerRemote.unscheduleGroupOperation(org.rhq.core.domain.auth.Subject, String, int)
UnscheduleException
List<org.rhq.core.domain.operation.OperationDefinition> findOperationDefinitionsByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.OperationDefinitionCriteria criteria)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.ResourceOperationHistory> findResourceOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.ResourceOperationHistoryCriteria criteria)
org.rhq.core.domain.util.PageList<org.rhq.core.domain.operation.GroupOperationHistory> findGroupOperationHistoriesByCriteria(org.rhq.core.domain.auth.Subject subject,
org.rhq.core.domain.criteria.GroupOperationHistoryCriteria criteria)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||