mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-QA to HEAD (4.2) (including moving test classes into separate folders)
51903 to 54309 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@54310 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,6 +21,7 @@ package org.alfresco.service.cmr.action;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.service.PublicService;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
|
||||
/**
|
||||
* Service interface for tracking when actions
|
||||
@@ -39,6 +40,17 @@ public interface ActionTrackingService
|
||||
*/
|
||||
void recordActionPending(Action action);
|
||||
|
||||
/**
|
||||
* Record that an action against a <code>NodeRef</code>
|
||||
* has been scheduled for asynchronous execution, and is pending
|
||||
* being executed.
|
||||
*
|
||||
* @param action the action that has been scheduled
|
||||
* @param actionedUponNodeRef the <code>NodeRef</code> the action is acting on
|
||||
* @since 4.1.6
|
||||
*/
|
||||
void recordActionPending(Action action, NodeRef actionedUponNodeRef);
|
||||
|
||||
/**
|
||||
* Record that an action has begun execution.
|
||||
*
|
||||
@@ -46,6 +58,15 @@ public interface ActionTrackingService
|
||||
*/
|
||||
void recordActionExecuting(Action action);
|
||||
|
||||
/**
|
||||
* Record that an action has begun execution.
|
||||
*
|
||||
* @param action the action that has been scheduled
|
||||
* @param actionedUponNodeRef the <code>NodeRef</code> the action is acting on
|
||||
* @since 4.1.6
|
||||
*/
|
||||
void recordActionExecuting(Action action, NodeRef actionedUponNodeRef);
|
||||
|
||||
/**
|
||||
* Record that an action has completed execution
|
||||
* without error.
|
||||
@@ -102,18 +123,26 @@ public interface ActionTrackingService
|
||||
* Retrieves the execution details on the given
|
||||
* executing action, such as when it started,
|
||||
* and what machine it is executing on.
|
||||
*
|
||||
* @param executionSummary the execution summary
|
||||
* @return the execution details
|
||||
*/
|
||||
ExecutionDetails getExecutionDetails(ExecutionSummary executionSummary);
|
||||
|
||||
/**
|
||||
* Retrieve summary details of all the actions
|
||||
* currently executing.
|
||||
*
|
||||
* @return the execution summaries
|
||||
*/
|
||||
List<ExecutionSummary> getAllExecutingActions();
|
||||
|
||||
/**
|
||||
* Retrieve summary details of all the actions
|
||||
* of the given type that are currently executing.
|
||||
* of the given type that are currently executing.
|
||||
*
|
||||
* @param type the action type
|
||||
* @return the execution summaries
|
||||
*/
|
||||
List<ExecutionSummary> getExecutingActions(String type);
|
||||
|
||||
@@ -121,6 +150,20 @@ public interface ActionTrackingService
|
||||
* Retrieve summary details of all instances of
|
||||
* the specified action that are currently
|
||||
* executing.
|
||||
*
|
||||
* @return the execution summaries
|
||||
*/
|
||||
List<ExecutionSummary> getExecutingActions(Action action);
|
||||
|
||||
/**
|
||||
* Retrieve summary details of all the actions
|
||||
* of the given type acting on the given <code>NodeRef</code>
|
||||
* that are currently executing.
|
||||
*
|
||||
* @param type the action type
|
||||
* @param actionedUponNodeRef the node the action is acting on
|
||||
* @return the execution summaries
|
||||
* @since 4.1.6
|
||||
*/
|
||||
List<ExecutionSummary> getExecutingActions(String type, NodeRef actionedUponNodeRef);
|
||||
}
|
||||
|
Reference in New Issue
Block a user