summaryrefslogtreecommitdiffstats
path: root/node-admin/src
diff options
context:
space:
mode:
authorValerij Fredriksen <valerijf@oath.com>2018-10-26 15:46:20 +0200
committerValerij Fredriksen <valerijf@oath.com>2018-10-26 15:46:20 +0200
commitbfa236c47b1d663b5b91b3bb35c8cf199ae85823 (patch)
treed922294b70023ca8b4c726ff01d9024bf293a7c6 /node-admin/src
parentafc5271edc3bba917b707baf0c3afaf7be192ca8 (diff)
Remove unused interfaces
Diffstat (limited to 'node-admin/src')
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/AdminComponent.java28
-rw-r--r--node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/NodeAdminStateUpdater.java18
2 files changed, 0 insertions, 46 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/AdminComponent.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/AdminComponent.java
deleted file mode 100644
index 9888cca9c7e..00000000000
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/component/AdminComponent.java
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2018 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.component;
-
-import com.yahoo.vespa.hosted.node.admin.provider.NodeAdminStateUpdater;
-
-/**
- * An AdminComponent cannot assume anything about the environment until enable()
- * is called: Required YUM packages may not have been installed, services
- * not started, etc. An enabled AdminComponent can be disabled to disengage from
- * the environment.
- */
-public interface AdminComponent {
- /**
- * Enable component. May be called more than once.
- */
- void enable();
-
- /**
- * @return NodeAdminStateUpdater used by the REST API
- */
- NodeAdminStateUpdater getNodeAdminStateUpdater();
-
- /**
- * Disable component. May be called more than once.
- * Must be compatible with component deconstruct().
- */
- void disable();
-}
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/NodeAdminStateUpdater.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/NodeAdminStateUpdater.java
deleted file mode 100644
index 30e892cab07..00000000000
--- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/provider/NodeAdminStateUpdater.java
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2018 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.provider;
-
-import javax.annotation.concurrent.ThreadSafe;
-
-@ThreadSafe
-public interface NodeAdminStateUpdater {
- enum State { TRANSITIONING, RESUMED, SUSPENDED_NODE_ADMIN, SUSPENDED}
-
- /**
- * Set the wanted state, and assert whether the current state equals it.
- * Typically, this method should be called repeatedly until current state
- * has converged.
- *
- * @throws RuntimeException (or a subclass) if the state has not converged yet.
- */
- void setResumeStateAndCheckIfResumed(State wantedState);
-}