[New] Added ExecutionHandler.archiveActivity()
This commit is contained in:
parent
49d5e41fe5
commit
7c15a8d7c5
|
@ -262,7 +262,8 @@ public class EventBasedExecutionHandler extends ExecutionHandler {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void archiveActivity(String realm, Locator activityLoc) {
|
@Override
|
||||||
|
public void archiveActivity(String realm, Locator activityLoc) {
|
||||||
this.executorService.execute(() -> {
|
this.executorService.execute(() -> {
|
||||||
try {
|
try {
|
||||||
runAsAgent(ctx -> {
|
runAsAgent(ctx -> {
|
||||||
|
|
|
@ -39,9 +39,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* immediately in an asynchronous manner
|
* immediately in an asynchronous manner
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Activity} resides
|
* the realm where the {@link Activity} resides
|
||||||
* @param activityLoc
|
* @param activityLoc
|
||||||
* the {@link Locator} of the {@link Activity}
|
* the {@link Locator} of the {@link Activity}
|
||||||
*/
|
*/
|
||||||
public abstract void addForExecution(String realm, Locator activityLoc);
|
public abstract void addForExecution(String realm, Locator activityLoc);
|
||||||
|
|
||||||
|
@ -49,9 +49,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Removes the given {@link Locator} for an {@link Activity} from execution, so it is not executed further
|
* Removes the given {@link Locator} for an {@link Activity} from execution, so it is not executed further
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Activity} resides
|
* the realm where the {@link Activity} resides
|
||||||
* @param activityLoc
|
* @param activityLoc
|
||||||
* the {@link Locator} of the {@link Activity}
|
* the {@link Locator} of the {@link Activity}
|
||||||
*/
|
*/
|
||||||
public abstract void removeFromExecution(String realm, Locator activityLoc);
|
public abstract void removeFromExecution(String realm, Locator activityLoc);
|
||||||
|
|
||||||
|
@ -59,10 +59,20 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Triggers a to execution for all registered activities in the given realm
|
* Triggers a to execution for all registered activities in the given realm
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm to trigger execution for
|
* the realm to trigger execution for
|
||||||
*/
|
*/
|
||||||
public abstract void triggerExecution(String realm);
|
public abstract void triggerExecution(String realm);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Archives the given {@link Activity}
|
||||||
|
*
|
||||||
|
* @param realm
|
||||||
|
* the realm where the activity resides
|
||||||
|
* @param activityLoc
|
||||||
|
* the {@link Locator} of the {@link Activity}
|
||||||
|
*/
|
||||||
|
public abstract void archiveActivity(String realm, Locator activityLoc);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* Returns the {@link DelayedExecutionTimer}
|
* Returns the {@link DelayedExecutionTimer}
|
||||||
|
@ -81,9 +91,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Starts the execution of the given {@link Activity} with the given {@link Locator}
|
* Starts the execution of the given {@link Activity} with the given {@link Locator}
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Activity} resides
|
* the realm where the {@link Activity} resides
|
||||||
* @param activityLoc
|
* @param activityLoc
|
||||||
* the {@link Locator} of the {@link Activity}
|
* the {@link Locator} of the {@link Activity}
|
||||||
*/
|
*/
|
||||||
public abstract void toExecution(String realm, Locator activityLoc);
|
public abstract void toExecution(String realm, Locator activityLoc);
|
||||||
|
|
||||||
|
@ -91,9 +101,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Completes the execution of the given {@link Action} with the given {@link Locator}
|
* Completes the execution of the given {@link Action} with the given {@link Locator}
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Action} resides
|
* the realm where the {@link Action} resides
|
||||||
* @param actionLoc
|
* @param actionLoc
|
||||||
* the {@link Locator} of the {@link Action}
|
* the {@link Locator} of the {@link Action}
|
||||||
*/
|
*/
|
||||||
public abstract void toExecuted(String realm, Locator actionLoc);
|
public abstract void toExecuted(String realm, Locator actionLoc);
|
||||||
|
|
||||||
|
@ -101,9 +111,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#STOPPED}
|
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#STOPPED}
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Action} resides
|
* the realm where the {@link Action} resides
|
||||||
* @param actionLoc
|
* @param actionLoc
|
||||||
* the {@link Locator} of the {@link Action}
|
* the {@link Locator} of the {@link Action}
|
||||||
*/
|
*/
|
||||||
public abstract void toStopped(String realm, Locator actionLoc);
|
public abstract void toStopped(String realm, Locator actionLoc);
|
||||||
|
|
||||||
|
@ -111,9 +121,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#WARNING}
|
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#WARNING}
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Action} resides
|
* the realm where the {@link Action} resides
|
||||||
* @param actionLoc
|
* @param actionLoc
|
||||||
* the {@link Locator} of the {@link Action}
|
* the {@link Locator} of the {@link Action}
|
||||||
*/
|
*/
|
||||||
public abstract void toWarning(String realm, Locator actionLoc);
|
public abstract void toWarning(String realm, Locator actionLoc);
|
||||||
|
|
||||||
|
@ -121,9 +131,9 @@ public abstract class ExecutionHandler extends StrolchComponent {
|
||||||
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#ERROR}
|
* Sets the state of the {@link Action} with the given {@link Locator} to {@link State#ERROR}
|
||||||
*
|
*
|
||||||
* @param realm
|
* @param realm
|
||||||
* the realm where the {@link Action} resides
|
* the realm where the {@link Action} resides
|
||||||
* @param actionLoc
|
* @param actionLoc
|
||||||
* the {@link Locator} of the {@link Action}
|
* the {@link Locator} of the {@link Action}
|
||||||
*/
|
*/
|
||||||
public abstract void toError(String realm, Locator actionLoc);
|
public abstract void toError(String realm, Locator actionLoc);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue