Package org.alfresco.service.cmr.action
Interface ActionTrackingService
- All Known Implementing Classes:
ActionTrackingServiceImpl
public interface ActionTrackingService
Service interface for tracking when actions
begin to run, complete or fail.
- Author:
- Nick Burch
-
Method Summary
Modifier and TypeMethodDescriptionRetrieve summary details of all the actions currently executing.getExecutingActions(String type) Retrieve summary details of all the actions of the given type that are currently executing.getExecutingActions(String type, NodeRef actionedUponNodeRef) Retrieve summary details of all the actions of the given type acting on the givenNodeRefthat are currently executing.getExecutingActions(Action action) Retrieve summary details of all instances of the specified action that are currently executing.getExecutionDetails(ExecutionSummary executionSummary) Retrieves the execution details on the given executing action, such as when it started, and what machine it is executing on.booleanHas cancellation been requested for the given action? This method is most commonly called by the action in question, to check to see if someone has calledrequestActionCancellation(CancellableAction)for them.voidrecordActionComplete(Action action) Record that an action has completed execution without error.voidrecordActionExecuting(Action action) Record that an action has begun execution.voidrecordActionExecuting(Action action, NodeRef actionedUponNodeRef) Record that an action has begun execution.voidrecordActionFailure(Action action, Throwable problem) Record that an action failed during executionvoidrecordActionPending(Action action) Record that an action has been scheduled for asynchronous execution, and is pending being executed.voidrecordActionPending(Action action, NodeRef actionedUponNodeRef) Record that an action against aNodeRefhas been scheduled for asynchronous execution, and is pending being executed.voidRequests that the specified Action cancel itself and aborts execution, as soon as possible.voidrequestActionCancellation(ExecutionSummary executionSummary) Requests that the specified Action cancel itself and aborts execution, as soon as possible.
-
Method Details
-
recordActionPending
Record that an action has been scheduled for asynchronous execution, and is pending being executed.- Parameters:
action- the action that has been scheduled
-
recordActionPending
Record that an action against aNodeRefhas been scheduled for asynchronous execution, and is pending being executed.- Parameters:
action- the action that has been scheduledactionedUponNodeRef- theNodeRefthe action is acting on- Since:
- 4.1.6
-
recordActionExecuting
Record that an action has begun execution.- Parameters:
action- the action that has begun execution
-
recordActionExecuting
Record that an action has begun execution.- Parameters:
action- the action that has been scheduledactionedUponNodeRef- theNodeRefthe action is acting on- Since:
- 4.1.6
-
recordActionComplete
Record that an action has completed execution without error.- Parameters:
action- the action that has been finished
-
recordActionFailure
Record that an action failed during execution- Parameters:
action- the action that has failed
-
requestActionCancellation
Requests that the specified Action cancel itself and aborts execution, as soon as possible. Cancellable actions periodically check to see if a cancel has been requested, and will take note of the cancel request once seen.- Parameters:
action- The action to request the cancel of
-
requestActionCancellation
Requests that the specified Action cancel itself and aborts execution, as soon as possible. Cancellable actions periodically check to see if a cancel has been requested, and will take note of the cancel request once seen. If the specified action is not a cancellable action, nothing will happen.- Parameters:
executionSummary- ExecutionSummary
-
isCancellationRequested
Has cancellation been requested for the given action? This method is most commonly called by the action in question, to check to see if someone has calledrequestActionCancellation(CancellableAction)for them.- Parameters:
action- The action to check about- Returns:
- if cancellation has been requested or not
-
getExecutionDetails
Retrieves the execution details on the given executing action, such as when it started, and what machine it is executing on.- Parameters:
executionSummary- the execution summary- Returns:
- the execution details
-
getAllExecutingActions
List<ExecutionSummary> getAllExecutingActions()Retrieve summary details of all the actions currently executing.- Returns:
- the execution summaries
-
getExecutingActions
Retrieve summary details of all the actions of the given type that are currently executing.- Parameters:
type- the action type- Returns:
- the execution summaries
-
getExecutingActions
Retrieve summary details of all instances of the specified action that are currently executing.- Returns:
- the execution summaries
-
getExecutingActions
Retrieve summary details of all the actions of the given type acting on the givenNodeRefthat are currently executing.- Parameters:
type- the action typeactionedUponNodeRef- the node the action is acting on- Returns:
- the execution summaries
- Since:
- 4.1.6
-