private void updateAndLogRotationState() { final boolean currentlyInRotation = vipStatus.isInRotation(); final boolean previousRotationAnswer = previouslyInRotation; previouslyInRotation = currentlyInRotation; if (previousRotationAnswer != currentlyInRotation) { if (currentlyInRotation) { log.log(LogLevel.INFO, "Putting container back into rotation by serving status.html again."); } else { log.log(LogLevel.WARNING, "Removing container from rotation by no longer serving status.html."); } } }
private StatusResponse() { super(com.yahoo.jdisc.http.HttpResponse.Status.OK); // status may be overwritten below if (vipStatus != null && ! vipStatus.isInRotation()) { searchContainerOutOfService(); } else if (accessDisk) { preSlurpFile(); } else { vipRespond(); } }