From ecd8ef4a25ee994b5e4f96402858229b227f5539 Mon Sep 17 00:00:00 2001 From: Luca Frosini Date: Fri, 25 Sep 2015 09:21:01 +0000 Subject: [PATCH] refs #521: Support Unscheduling of repetitive task on SmartExecutor https://support.d4science.org/issues/521 git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor-api@119022 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/vremanagement/executor/api/SmartExecutor.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/vremanagement/executor/api/SmartExecutor.java b/src/main/java/org/gcube/vremanagement/executor/api/SmartExecutor.java index 5410c05..31dd62b 100644 --- a/src/main/java/org/gcube/vremanagement/executor/api/SmartExecutor.java +++ b/src/main/java/org/gcube/vremanagement/executor/api/SmartExecutor.java @@ -13,7 +13,6 @@ import org.gcube.vremanagement.executor.exception.LaunchException; import org.gcube.vremanagement.executor.exception.PluginInstanceNotFoundException; import org.gcube.vremanagement.executor.exception.PluginNotFoundException; import org.gcube.vremanagement.executor.plugin.PluginState; -import org.quartz.SchedulerException; /** * Service Endpoint Interface @@ -51,13 +50,15 @@ public interface SmartExecutor { /** * The method use the provided UUID as String to unschedule a previous - * scheduled task. + * scheduled task and stop the current execution (if any). * @param executionIdentifier UUID as String which identify the execution + * @return return true if the current execution correctly unscheduled and + * stopped. False otherwise. * @throws Exception if there is no execution identified by the provided * UUID execution identifier as String */ @SOAPBinding(parameterStyle=ParameterStyle.WRAPPED) - public void unSchedule(String executionIdentifier) throws SchedulerException; + public boolean unSchedule(String executionIdentifier) throws Exception; /**