Action Tracking Service work (replication task 79)

New concrete data transfer classes for holding the basic details on executing actions, and basic support (but no unit tests yet) for storing and retrieving these


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@21281 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-07-19 16:56:34 +00:00
parent a18efbbb6f
commit a2b793c21e
5 changed files with 173 additions and 47 deletions

View File

@@ -82,10 +82,9 @@ public interface ActionTrackingService
* If the specified action is not a cancellable
* action, nothing will happen.
*
* TODO Correct param type - is key based data only.
* @param action The action to request the cancel of
*/
void requestActionCancellation(Void executionSummary);
void requestActionCancellation(ExecutionSummary executionSummary);
/**
* Has cancellation been requested for the given
@@ -104,30 +103,25 @@ public interface ActionTrackingService
* Retrieves the execution details on the given
* executing action, such as when it started,
* and what machine it is executing on.
* TODO Correct param type - is key based data only.
* TODO Correct return type - is all cache data
*/
void getExecutionDetails(Void executionSummary);
ExecutionDetails getExecutionDetails(ExecutionSummary executionSummary);
/**
* Retrieve summary details of all the actions
* currently executing.
* TODO Correct return type - is key based data only.
*/
List<Void> getAllExecutingActions();
List<ExecutionSummary> getAllExecutingActions();
/**
* Retrieve summary details of all the actions
* of the given type that are currently executing.
* TODO Correct return type - is key based data only.
*/
List<Void> getExecutingActions(String type);//or is it qname?
List<ExecutionSummary> getExecutingActions(String type);
/**
* Retrieve summary details of all instances of
* the specified action that are currently
* executing.
* TODO Correct return type - is key based data only.
*/
List<Void> getExecutingActions(Action action);
List<ExecutionSummary> getExecutingActions(Action action);
}