aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java
diff options
context:
space:
mode:
Diffstat (limited to 'controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java41
1 files changed, 0 insertions, 41 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java
deleted file mode 100644
index a1f78302e4b..00000000000
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/rotation/Rotation.java
+++ /dev/null
@@ -1,41 +0,0 @@
-// 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.controller.api.rotation;
-
-import com.yahoo.vespa.hosted.controller.api.identifiers.RotationId;
-
-import java.util.Objects;
-
-/**
- * Represents a global routing rotation.
- *
- * @author Oyvind Gronnesby
- */
-// TODO: Used in serialization (ConfigServerClient). This should be removed and config server client should use a
-// Set<String> instead, like it does for CNAMEs.
-public class Rotation {
-
- /** The ID of the allocated rotation. This value is generated by global routing system. */
- public final RotationId rotationId;
-
- /** The global name which the allocated rotation points to */
- public final String rotationName;
-
- public Rotation(RotationId rotationId, String rotationName) {
- this.rotationId = Objects.requireNonNull(rotationId);
- this.rotationName = Objects.requireNonNull(rotationName);
- }
-
- @Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (!(o instanceof Rotation)) return false;
- final Rotation rotation = (Rotation) o;
- return rotationId.equals(rotation.rotationId) && rotationName.equals(rotation.rotationName);
- }
-
- @Override
- public int hashCode() {
- return Objects.hash(rotationId, rotationName);
- }
-
-}