summaryrefslogtreecommitdiffstats
path: root/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java')
-rw-r--r--container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java
index c8cf575dff3..be62f8177c2 100644
--- a/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java
+++ b/container-core/src/main/java/com/yahoo/container/handler/VipStatusHandler.java
@@ -57,7 +57,7 @@ public final class VipStatusHandler extends ThreadedHttpRequestHandler {
private StatusResponse() {
super(com.yahoo.jdisc.http.HttpResponse.Status.OK); // status may be overwritten below
if (vipStatus != null && ! vipStatus.isInRotation()) {
- searchContainerOutOfService();
+ setOutOfServiceStatus();
} else if (accessDisk) {
preSlurpFile();
} else {
@@ -140,7 +140,7 @@ public final class VipStatusHandler extends ThreadedHttpRequestHandler {
/**
* Behaves like a VIP status response file has been deleted.
*/
- private void searchContainerOutOfService() {
+ private void setOutOfServiceStatus() {
contentType = "text/plain";
data = Utf8.toBytes(NO_SEARCH_BACKENDS);
setStatus(com.yahoo.jdisc.http.HttpResponse.Status.NOT_FOUND);
@@ -191,8 +191,8 @@ public final class VipStatusHandler extends ThreadedHttpRequestHandler {
}
private void updateAndLogRotationState() {
- final boolean currentlyInRotation = vipStatus.isInRotation();
- final boolean previousRotationAnswer = previouslyInRotation;
+ boolean currentlyInRotation = vipStatus.isInRotation();
+ boolean previousRotationAnswer = previouslyInRotation;
previouslyInRotation = currentlyInRotation;
if (previousRotationAnswer != currentlyInRotation) {