summaryrefslogtreecommitdiffstats
path: root/orchestrator-restapi
diff options
context:
space:
mode:
authorHåkon Hallingstad <hakon@oath.com>2017-10-27 15:43:33 +0200
committerHåkon Hallingstad <hakon@oath.com>2017-10-27 15:43:33 +0200
commit9f9d1fe8d282040acbdfe81520c01b836f932543 (patch)
tree00534cfe9c51b015e7d325559a4c53e2fbe90f73 /orchestrator-restapi
parent5fcbb66f52d44b286f0898ab318f7e6269330f4e (diff)
REST API for service status
Diffstat (limited to 'orchestrator-restapi')
-rw-r--r--orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java41
1 files changed, 41 insertions, 0 deletions
diff --git a/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java
new file mode 100644
index 00000000000..5efdd2581a9
--- /dev/null
+++ b/orchestrator-restapi/src/main/java/com/yahoo/vespa/orchestrator/restapi/wire/SlobrokEntryResponse.java
@@ -0,0 +1,41 @@
+// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+package com.yahoo.vespa.orchestrator.restapi.wire;
+
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+import java.util.Objects;
+
+public class SlobrokEntryResponse {
+ @JsonProperty("name")
+ public final String name;
+
+ @JsonProperty("spec")
+ public final String spec;
+
+ public SlobrokEntryResponse(String name, String spec) {
+ this.name = name;
+ this.spec = spec;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o) return true;
+ if (o == null || getClass() != o.getClass()) return false;
+ SlobrokEntryResponse that = (SlobrokEntryResponse) o;
+ return Objects.equals(name, that.name) &&
+ Objects.equals(spec, that.spec);
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(name, spec);
+ }
+
+ @Override
+ public String toString() {
+ return "SlobrokEntryResponse{" +
+ "name='" + name + '\'' +
+ ", spec='" + spec + '\'' +
+ '}';
+ }
+}