summaryrefslogtreecommitdiffstats
path: root/controller-api
diff options
context:
space:
mode:
authorJon Marius Venstad <jonmv@users.noreply.github.com>2020-12-10 13:23:06 +0100
committerGitHub <noreply@github.com>2020-12-10 13:23:06 +0100
commitbdf02b5a355e14d83831d09964f78f9b6becefdc (patch)
treef60c38a7cac8c758f51fba9128a9826b88972f97 /controller-api
parenta4b297165caca7c8875e560a83614446c31c7b16 (diff)
parentbf127fe126f7c6e3b7924bd64fabc955fccbc7c3 (diff)
Merge pull request #15772 from vespa-engine/jonmv/percentwise-progress-in-api
Use percent complete instead of actual progress token
Diffstat (limited to 'controller-api')
-rw-r--r--controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
index 868d251d7ee..e143cdd6d9e 100644
--- a/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
+++ b/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/integration/configserver/ApplicationReindexing.java
@@ -120,9 +120,9 @@ public class ApplicationReindexing {
private final Instant endedAt;
private final State state;
private final String message;
- private final String progress;
+ private final Double progress;
- public Status(Instant readyAt, Instant startedAt, Instant endedAt, State state, String message, String progress) {
+ public Status(Instant readyAt, Instant startedAt, Instant endedAt, State state, String message, Double progress) {
this.readyAt = readyAt;
this.startedAt = startedAt;
this.endedAt = endedAt;
@@ -140,7 +140,7 @@ public class ApplicationReindexing {
public Optional<Instant> endedAt() { return Optional.ofNullable(endedAt); }
public Optional<State> state() { return Optional.ofNullable(state); }
public Optional<String> message() { return Optional.ofNullable(message); }
- public Optional<String> progress() { return Optional.ofNullable(progress); }
+ public Optional<Double> progress() { return Optional.ofNullable(progress); }
@Override
public boolean equals(Object o) {