public interface ActionTrackingService
Modifier and Type | Method and Description |
---|---|
List<ExecutionSummary> |
getAllExecutingActions()
Retrieve summary details of all the actions
currently executing.
|
List<ExecutionSummary> |
getExecutingActions(Action action)
Retrieve summary details of all instances of
the specified action that are currently
executing.
|
List<ExecutionSummary> |
getExecutingActions(String type)
Retrieve summary details of all the actions
of the given type that are currently executing.
|
List<ExecutionSummary> |
getExecutingActions(String type,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Retrieve summary details of all the actions
of the given type acting on the given
NodeRef
that are currently executing. |
ExecutionDetails |
getExecutionDetails(ExecutionSummary executionSummary)
Retrieves the execution details on the given
executing action, such as when it started,
and what machine it is executing on.
|
boolean |
isCancellationRequested(CancellableAction action)
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 called
requestActionCancellation(CancellableAction)
for them. |
void |
recordActionComplete(Action action)
Record that an action has completed execution
without error.
|
void |
recordActionExecuting(Action action)
Record that an action has begun execution.
|
void |
recordActionExecuting(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Record that an action has begun execution.
|
void |
recordActionFailure(Action action,
Throwable problem)
Record that an action failed during execution
|
void |
recordActionPending(Action action)
Record that an action has been scheduled for
asynchronous execution, and is pending
being executed.
|
void |
recordActionPending(Action action,
org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
Record that an action against a
NodeRef
has been scheduled for asynchronous execution, and is pending
being executed. |
void |
requestActionCancellation(CancellableAction action)
Requests that the specified Action cancel itself
and aborts execution, as soon as possible.
|
void |
requestActionCancellation(ExecutionSummary executionSummary)
Requests that the specified Action cancel itself
and aborts execution, as soon as possible.
|
void recordActionPending(Action action)
action
- the action that has been scheduledvoid recordActionPending(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
NodeRef
has been scheduled for asynchronous execution, and is pending
being executed.action
- the action that has been scheduledactionedUponNodeRef
- the NodeRef
the action is acting onvoid recordActionExecuting(Action action)
action
- the action that has begun executionvoid recordActionExecuting(Action action, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
action
- the action that has been scheduledactionedUponNodeRef
- the NodeRef
the action is acting onvoid recordActionComplete(Action action)
action
- the action that has been finishedvoid recordActionFailure(Action action, Throwable problem)
action
- the action that has failedvoid requestActionCancellation(CancellableAction action)
action
- The action to request the cancel ofvoid requestActionCancellation(ExecutionSummary executionSummary)
executionSummary
- ExecutionSummaryboolean isCancellationRequested(CancellableAction action)
requestActionCancellation(CancellableAction)
for them.action
- The action to check aboutExecutionDetails getExecutionDetails(ExecutionSummary executionSummary)
executionSummary
- the execution summaryList<ExecutionSummary> getAllExecutingActions()
List<ExecutionSummary> getExecutingActions(String type)
type
- the action typeList<ExecutionSummary> getExecutingActions(Action action)
List<ExecutionSummary> getExecutingActions(String type, org.alfresco.service.cmr.repository.NodeRef actionedUponNodeRef)
NodeRef
that are currently executing.type
- the action typeactionedUponNodeRef
- the node the action is acting onCopyright © 2005–2017 Alfresco Software. All rights reserved.