diff options
author | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2016-06-29 13:52:34 +0200 |
---|---|---|
committer | Haakon Dybdahl <dybdahl@yahoo-inc.com> | 2016-06-29 13:52:34 +0200 |
commit | 900db08862f1d8ef1723cf7c2fb8abd09553efdf (patch) | |
tree | 6c4449011a7b8cf18aa47362a1031f2e7fe4de08 /node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java | |
parent | cb87ddefda4f9c029092c5056e355e7bd261adbe (diff) |
Let agents live their own life and some code review feedback improvements.
Diffstat (limited to 'node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java index 793d20b4f85..459c6789739 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeagent/NodeAgent.java @@ -14,17 +14,10 @@ public interface NodeAgent { enum State {WAITING, WORKING, FROZEN, TERMINATED} /** - * Signals to the agent that it should update the node specification and container state and maintain wanted state. - * - * It is an error to call this method on an instance after stop() has been called. - */ - - /** * Make the node agent execute a command soon. * @param command task to be done - * @param blocking will wait for the node agent to execute the command. */ - void execute(Command command, boolean blocking); + void execute(Command command); /** * Returns the state of the agent. @@ -34,9 +27,9 @@ public interface NodeAgent { /** * Starts the agent. After this method is called, the agent will asynchronously maintain the node, continuously * striving to make the current state equal to the wanted state. The current and wanted state update as part of - * {@link #execute(Command, boolean)}. + * {@link #execute(Command)}. */ - void start(); + void start(int intervalMillis); /** * Signals to the agent that the node is at the end of its lifecycle and no longer needs a managing agent. |