restRequest, restChannel) {
@Override
protected void handleRiverResponse(NodeJRPeriodResponse nodeInfo) throws Exception {
if (nodeInfo.indexerFound) {
restChannel.sendResponse(new BytesRestResponse(OK, buildMessageDocument(restRequest,
"Period changed to " + period + "[ms] for at least one of defined indexers")));
} else {
restChannel.sendResponse(new BytesRestResponse(RestStatus.NOT_FOUND, buildMessageDocument(
restRequest, "No any of defined indexers '" + indexerNames + "' found")));
}
}
});