diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-06-06 11:33:56 +0200 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-06-06 11:45:54 +0200 |
commit | da5eb419a5da4dd54b792de2ac54d37b52017236 (patch) | |
tree | bacb697066dcf4ecd0274c0f1fc0d0dc5d87aeca | |
parent | 412ee6ba430ecf8be28fcf143733556269952f0e (diff) |
Use primitive type
-rw-r--r-- | controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ControllerMaintainer.java | 2 | ||||
-rw-r--r-- | vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ControllerMaintainer.java b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ControllerMaintainer.java index f21803283eb..ff8fdf7ace4 100644 --- a/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ControllerMaintainer.java +++ b/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/maintenance/ControllerMaintainer.java @@ -38,7 +38,7 @@ public abstract class ControllerMaintainer extends Maintainer { this(controller, interval, name, activeSystems, 1.0); } - public ControllerMaintainer(Controller controller, Duration interval, String name, Set<SystemName> activeSystems, Double successFactorBaseline) { + public ControllerMaintainer(Controller controller, Duration interval, String name, Set<SystemName> activeSystems, double successFactorBaseline) { super(name, interval, controller.clock(), controller.jobControl(), new ControllerJobMetrics(controller.metric()), controller.curator().cluster(), true, successFactorBaseline); this.controller = controller; diff --git a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java index 31f4038c16e..150021091ca 100644 --- a/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java +++ b/vespajlib/src/main/java/com/yahoo/concurrent/maintenance/Maintainer.java @@ -37,10 +37,10 @@ public abstract class Maintainer implements Runnable { private final AtomicBoolean shutDown = new AtomicBoolean(); private final boolean ignoreCollision; private final Clock clock; - private final Double successFactorBaseline; + private final double successFactorBaseline; public Maintainer(String name, Duration interval, Clock clock, JobControl jobControl, - JobMetrics jobMetrics, List<String> clusterHostnames, boolean ignoreCollision, Double successFactorBaseline) { + JobMetrics jobMetrics, List<String> clusterHostnames, boolean ignoreCollision, double successFactorBaseline) { this.name = name; this.interval = requireInterval(interval); this.jobControl = Objects.requireNonNull(jobControl); @@ -98,7 +98,7 @@ public abstract class Maintainer implements Runnable { * Called once each time this maintenance job should run. * * @return the degree to which the run was deviated from the successFactorBaseline - a number between -1 (no success), to 0 (complete success). - * Note that this indicates whether something is wrong, so e.g if the call did nothing because it should do + * Note that this indicates whether something is wrong, so e.g. if the call did nothing because it should do * nothing, 0.0 should be returned. */ protected abstract double maintain(); |