diff options
author | Valerij Fredriksen <valerijf@oath.com> | 2018-07-26 09:16:46 +0200 |
---|---|---|
committer | Valerij Fredriksen <valerijf@oath.com> | 2018-07-26 09:16:46 +0200 |
commit | 074445777c63f3bad6cf1b7ee25e3e1fe472835d (patch) | |
tree | daf25b998f1e7fa70d668438f8a32864dad58cc7 /node-admin/src | |
parent | e854864520d3734ed1baced433b9883f61964cc3 (diff) |
Remove convergeSuspend
Diffstat (limited to 'node-admin/src')
-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; - } } |