Added convenient method for unSchedule

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor-client@150897 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2017-07-07 10:44:39 +00:00
parent 099af9bdbe
commit 5218525346
2 changed files with 10 additions and 1 deletions

View File

@ -63,6 +63,7 @@ public class DefaultSmartExecutorProxy implements SmartExecutorProxy {
* unSchedule(String executionIdentifier, boolean globally) * unSchedule(String executionIdentifier, boolean globally)
* Passing false to globally * Passing false to globally
*/ */
@Override
public boolean unSchedule(final String executionIdentifier) throws ExecutorException { public boolean unSchedule(final String executionIdentifier) throws ExecutorException {
return this.unSchedule(executionIdentifier, false); return this.unSchedule(executionIdentifier, false);
} }

View File

@ -4,6 +4,7 @@
package org.gcube.vremanagement.executor.client.proxies; package org.gcube.vremanagement.executor.client.proxies;
import org.gcube.vremanagement.executor.api.SmartExecutor; import org.gcube.vremanagement.executor.api.SmartExecutor;
import org.gcube.vremanagement.executor.exception.ExecutorException;
/** /**
* @author Luca Frosini (ISTI - CNR) * @author Luca Frosini (ISTI - CNR)
@ -11,4 +12,11 @@ import org.gcube.vremanagement.executor.api.SmartExecutor;
*/ */
public interface SmartExecutorProxy extends SmartExecutor { public interface SmartExecutorProxy extends SmartExecutor {
/**
* It is the same of calling
* unSchedule(String executionIdentifier, boolean globally)
* Passing false to globally
*/
public boolean unSchedule(final String executionIdentifier) throws ExecutorException;
} }