aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2021-11-18 15:52:01 +0100
committerMartin Polden <mpolden@mpolden.no>2021-11-19 14:21:35 +0100
commitada377ef8e8cf29102a2ddb696332dca37f71d57 (patch)
tree0d444d596378a875c6b67d428a8c51dffe4322b7 /controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java
parentff160c3f5a6a072082db60e0cc0cdba2755de110 (diff)
Move rotation to routing package
Diffstat (limited to 'controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java')
-rw-r--r--controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java
new file mode 100644
index 00000000000..19e816a0b51
--- /dev/null
+++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/routing/rotation/RotationState.java
@@ -0,0 +1,20 @@
+// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.hosted.controller.routing.rotation;
+
+/**
+ * The possible states of a global rotation.
+ *
+ * @author mpolden
+ */
+public enum RotationState {
+
+ /** Rotation has status 'in' and is receiving traffic */
+ in,
+
+ /** Rotation has status 'out' and is *NOT* receiving traffic */
+ out,
+
+ /** Rotation status is currently unknown, or no global rotation has been assigned */
+ unknown
+
+}