diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-09-20 10:32:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 10:32:11 +0200 |
commit | f595dec38a20f39d47c54df4a9c5d44f2a220485 (patch) | |
tree | 7a15a316a6151600d9de181ac9691282a65517a2 /container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java | |
parent | 7c05ac06eb8d063bab4bd19ca42159a3f51f48b0 (diff) |
Revert "Revert "Bratseth/vip logic take 2""
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java b/container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java index 59674d25402..dd01d895963 100644 --- a/container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java +++ b/container-search/src/main/java/com/yahoo/search/cluster/BaseNodeMonitor.java @@ -26,25 +26,25 @@ public abstract class BaseNodeMonitor<T> { /** The object representing the monitored node */ protected T node; - protected boolean isWorking=true; + protected boolean isWorking = true; /** Whether this node is quarantined for unstability */ - protected boolean isQuarantined=false; + protected boolean isQuarantined = false; /** The last time this node failed, in ms */ - protected long failedAt=0; + protected long failedAt = 0; /** The last time this node responded (failed or succeeded), in ms */ - protected long respondedAt=0; + protected long respondedAt = 0; /** The last time this node responded successfully */ - protected long succeededAt=0; + protected long succeededAt = 0; /** The configuration of this monitor */ protected MonitorConfiguration configuration; /** Is the node we monitor part of an internal Vespa cluster or not */ - private boolean internal=false; + private boolean internal; public BaseNodeMonitor(boolean internal) { this.internal=internal; @@ -54,10 +54,12 @@ public abstract class BaseNodeMonitor<T> { /** * Returns whether this node is currently in a state suitable - * for receiving traffic. As far as we know, that is + * for receiving traffic (default true) */ public boolean isWorking() { return isWorking; } + /** @deprecated Not used */ + @Deprecated // TODO: Remove on Vespa 8 public boolean isQuarantined() { return isQuarantined; } /** |