From: Sébastien Lesaint Date: Mon, 3 Dec 2018 13:01:21 +0000 (+0100) Subject: SONARCLOUD-192 add WS api/ce/queue_stats X-Git-Tag: 7.6~209 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0fa031a35acdb07fad27d41c14caf7e2937cfeee;p=sonarqube.git SONARCLOUD-192 add WS api/ce/queue_stats --- diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/ce/UpdateIf.java b/server/sonar-db-dao/src/main/java/org/sonar/db/ce/UpdateIf.java index 1c1df6ec8a8..dd80fc63b2f 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/ce/UpdateIf.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/ce/UpdateIf.java @@ -26,7 +26,7 @@ import javax.annotation.concurrent.Immutable; import static com.google.common.base.Preconditions.checkArgument; import static java.util.Objects.requireNonNull; -final class UpdateIf { +public final class UpdateIf { private UpdateIf() { // just a wrapping class, prevent instantiation } @@ -38,7 +38,7 @@ final class UpdateIf { private final Long startedAt; private final long updatedAt; - NewProperties(CeQueueDto.Status status, @Nullable String workerUuid, + public NewProperties(CeQueueDto.Status status, @Nullable String workerUuid, long startedAt, long updatedAt) { checkArgument(workerUuid == null || workerUuid.length() <= 40, "worker uuid is too long: %s", workerUuid); this.status = requireNonNull(status, "status can't be null"); @@ -69,7 +69,7 @@ final class UpdateIf { public static class OldProperties { private final CeQueueDto.Status status; - OldProperties(CeQueueDto.Status status) { + public OldProperties(CeQueueDto.Status status) { this.status = requireNonNull(status, "status can't be null"); }