diff options
author | Valerij Fredriksen <freva@users.noreply.github.com> | 2018-07-26 13:22:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-26 13:22:08 +0200 |
commit | ea2cf9f4d616743419f8ad62c930a994b6a11ee1 (patch) | |
tree | 89baee6161d7e7e09a5da9598ba49b309d526906 /node-admin | |
parent | 2525dfe510c7488f7992eac629fd9e69f8aebdae (diff) | |
parent | 856a7096bdbb7541a821486afc303989e87a1610 (diff) |
Merge pull request #6477 from vespa-engine/freva/fixes
Remove convergeSuspend
Diffstat (limited to 'node-admin')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/IdempotentTask.java | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/IdempotentTask.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/IdempotentTask.java index 71e55c36284..5bb5d35e781 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/IdempotentTask.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/IdempotentTask.java @@ -40,22 +40,4 @@ public interface IdempotentTask<T extends TaskContext> { * @throws RuntimeException (or a subclass) if the task is unable to converge. */ boolean converge(T context); - - /** - * <p>Converge the task towards some state where it can be suspended. The - * TaskContext should provide enough to determine what kind of suspend is wanted, e.g. - * suspension of only the task, or the task and the resources/processes it manages.</p> - * - * <p>convergeSuspend() must be idempotent: it may be called any number of times, or - * interrupted at any time e.g. by `kill -9`.</p> - * - * <p>convergeSuspend() is not thread safe: The caller must ensure there is at most one - * invocation of convergeSuspend() at any given time.</p> - * - * @return false if already converged, i.e. was a no-op - * @throws RuntimeException (or a subclass) if the task is unable to suspend. - */ - default boolean convergeSuspend(T context) { - return false; - } } |