public interface ActionTrackingService
| Modifier and Type | Method and Description |
|---|---|
java.util.List |
getAllExecutingActions()
Retrieve summary details of all the actions
currently executing.
|
java.util.List |
getExecutingActions(Action action)
Retrieve summary details of all instances of
the specified action that are currently
executing.
|
java.util.List |
getExecutingActions(java.lang.String type)
Retrieve summary details of all the actions
of the given type 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
ActionTrackingService.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 |
recordActionFailure(Action action,
java.lang.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 |
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 recordActionExecuting(Action action)
action - the action that has begun executionvoid recordActionComplete(Action action)
action - the action that has been finishedvoid recordActionFailure(Action action, java.lang.Throwable problem)
action - the action that has failedvoid requestActionCancellation(CancellableAction action)
action - The action to request the cancel ofvoid requestActionCancellation(ExecutionSummary executionSummary)
action - The action to request the cancel ofboolean isCancellationRequested(CancellableAction action)
ActionTrackingService.requestActionCancellation(CancellableAction)
for them.action - The action to check aboutExecutionDetails getExecutionDetails(ExecutionSummary executionSummary)
java.util.List getAllExecutingActions()
java.util.List getExecutingActions(java.lang.String type)
java.util.List getExecutingActions(Action action)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.