add an option to control teh master node timeout in cluster health request

This commit is contained in:
Shay Banon 2012-01-05 20:50:16 +02:00
parent 759d948335
commit abc782abbb
1 changed files with 1 additions and 0 deletions

View File

@ -53,6 +53,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index")));
int level = 0;
try {
clusterHealthRequest.masterNodeTimeout(request.paramAsTime("master_timeout", clusterHealthRequest.masterNodeTimeout()));
clusterHealthRequest.timeout(request.paramAsTime("timeout", clusterHealthRequest.timeout()));
String waitForStatus = request.param("wait_for_status");
if (waitForStatus != null) {