diff options
author | Bjørn Meland <bjormel@users.noreply.github.com> | 2020-11-06 17:27:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-06 17:27:14 +0100 |
commit | 03c5ce98a29d438b51c02e537d6e6ce31be09bc3 (patch) | |
tree | 21a3f2158b12f6799328ee3cac2b2d6ef5bf83c2 /controller-api | |
parent | 5fd120c003d93b1860bb5c5ce061e4240863a32a (diff) | |
parent | 48da06c60e8033f010446e413f26e5c2556c3404 (diff) |
Merge pull request #15189 from vespa-engine/bjormel/node-repo-reboot-from-controller
Expose reboot to controller
Diffstat (limited to 'controller-api')
-rw-r--r-- | controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java index 3493a9dda6f..df6a6d5070d 100644 --- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java +++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/NodeRepository.java @@ -92,6 +92,8 @@ public interface NodeRepository { void patchNode(ZoneId zoneId, String hostName, NodeRepositoryNode node); + void reboot(ZoneId zoneId, String hostName); + private static Node toNode(NodeRepositoryNode node) { var application = Optional.ofNullable(node.getOwner()) .map(owner -> ApplicationId.from(owner.getTenant(), owner.getApplication(), |