|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationManagerRemote
Method Summary | |
---|---|
void |
cancelOperationHistory(Subject subject,
int operationHistoryId,
boolean ignoreAgentErrors)
Cancels a currently in-progress operation. |
void |
deleteOperationHistory(Subject subject,
int operationHistoryId,
boolean purgeInProgress)
Purges the history from the database. |
PageList<GroupOperationHistory> |
findGroupOperationHistoriesByCriteria(Subject subject,
GroupOperationHistoryCriteria criteria)
|
List<OperationDefinition> |
findOperationDefinitionsByCriteria(Subject subject,
OperationDefinitionCriteria criteria)
|
PageList<ResourceOperationHistory> |
findResourceOperationHistoriesByCriteria(Subject subject,
ResourceOperationHistoryCriteria criteria)
|
List<GroupOperationSchedule> |
findScheduledGroupOperations(Subject subject,
int groupId)
|
List<ResourceOperationSchedule> |
findScheduledResourceOperations(Subject subject,
int resourceId)
Returns the list of scheduled operations for the given resource. |
GroupOperationSchedule |
scheduleGroupOperation(Subject subject,
int groupId,
int[] executionOrderResourceIds,
boolean haltOnFailure,
String operationName,
Configuration parameters,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
String description)
|
ResourceOperationSchedule |
scheduleResourceOperation(Subject subject,
int resourceId,
String operationName,
long delay,
long repeatInterval,
int repeatCount,
int timeout,
Configuration parameters,
String description)
Schedules an operation for execution on the given resource. |
void |
unscheduleGroupOperation(Subject subject,
String jobId,
int resourceGroupId)
Unschedules the group operation identified with the given job ID. |
void |
unscheduleResourceOperation(Subject subject,
String jobId,
int resourceId)
Unschedules the resource operation identified with the given job ID. |
Method Detail |
---|
void cancelOperationHistory(Subject subject, int operationHistoryId, 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 logged in user's subject.historyId
- 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(Subject subject, int operationHistoryId, boolean purgeInProgress)
Note that this method will handle deleting a resource or group history - depending on what the given
historyId
refers to.
subject
- The logged in user's subject.historyId
- 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
ResourceOperationSchedule scheduleResourceOperation(Subject subject, int resourceId, String operationName, long delay, long repeatInterval, int repeatCount, int timeout, Configuration parameters, String description) throws org.rhq.enterprise.server.exception.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
org.rhq.enterprise.server.exception.ScheduleException
- TODOvoid unscheduleResourceOperation(Subject subject, String jobId, int resourceId) throws org.rhq.enterprise.server.exception.UnscheduleException
subject
- The logged in user's subject.jobId
- identifies the operation to unscheduleresourceId
- the ID of the resource whose operation is getting unscheduled
org.rhq.enterprise.server.exception.UnscheduleException
- TODO
Exception
GroupOperationSchedule scheduleGroupOperation(Subject subject, int groupId, int[] executionOrderResourceIds, boolean haltOnFailure, String operationName, Configuration parameters, long delay, long repeatInterval, int repeatCount, int timeout, String description) throws org.rhq.enterprise.server.exception.ScheduleException
subject
- groupId
- executionOrderResourceIds
- haltOnFailure
- operationName
- parameters
- delay
- repeatInterval
- repeatCount
- timeout
- description
-
org.rhq.enterprise.server.exception.ScheduleException
void unscheduleGroupOperation(Subject subject, String jobId, int resourceGroupId) throws org.rhq.enterprise.server.exception.UnscheduleException
subject
- the user who is asking to unschedule the operationjobId
- identifies the operation to unscheduleresourceGroupId
- the ID of the group whose operation is getting unscheduled
org.rhq.enterprise.server.exception.UnscheduleException
- TODOList<ResourceOperationSchedule> findScheduledResourceOperations(Subject subject, int resourceId) throws Exception
user
- The logged in user's subject.resourceId
-
Exception
- TODO
Exception
List<GroupOperationSchedule> findScheduledGroupOperations(Subject subject, int groupId) throws Exception
Exception
List<OperationDefinition> findOperationDefinitionsByCriteria(Subject subject, OperationDefinitionCriteria criteria)
PageList<ResourceOperationHistory> findResourceOperationHistoriesByCriteria(Subject subject, ResourceOperationHistoryCriteria criteria)
PageList<GroupOperationHistory> findGroupOperationHistoriesByCriteria(Subject subject, GroupOperationHistoryCriteria criteria)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |