aboutsummaryrefslogtreecommitdiffstats
path: root/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java
diff options
context:
space:
mode:
authorValerij Fredriksen <valerij92@gmail.com>2019-02-09 15:46:22 +0100
committerValerij Fredriksen <valerij92@gmail.com>2019-02-09 20:15:39 +0100
commit55fc3eec5fd3c7e15ed9eb4bdc16c89b52c883a8 (patch)
tree957799604b7d38042a04d6a3d180555d29c1d327 /node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java
parente7660da42e14624e719d03e75d5ad6ec7d3a8862 (diff)
Add Acl to NodeAgentContextFactory and cache
Diffstat (limited to 'node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java
index 456391c65c2..6002e7bcd89 100644
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java
+++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/nodeadmin/NodeAdmin.java
@@ -1,10 +1,11 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.node.admin.nodeadmin;
-import com.yahoo.vespa.hosted.node.admin.configserver.noderepository.NodeSpec;
+import com.yahoo.vespa.hosted.node.admin.nodeagent.NodeAgentContext;
import java.time.Duration;
import java.util.List;
+import java.util.Set;
/**
* NodeAdmin manages the life cycle of NodeAgents.
@@ -12,11 +13,8 @@ import java.util.List;
*/
public interface NodeAdmin {
- /**
- * Calling this will cause NodeAdmin to move to the state containersToRun by adding or removing nodes.
- * @param containersToRun this is the wanted state.
- */
- void refreshContainersToRun(final List<NodeSpec> containersToRun);
+ /** Start/stop NodeAgents and schedule next NodeAgent ticks with the given NodeAgentContexts */
+ void refreshContainersToRun(Set<NodeAgentContext> nodeAgentContexts);
/** Gather node agent and its docker container metrics and forward them to the {@code MetricReceiverWrapper} */
void updateNodeAgentMetrics();