parent
ec3492c67c
commit
a234e45b59
|
@ -134,7 +134,7 @@ public class ClusterHealthRequest extends MasterNodeOperationRequest<ClusterHeal
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getLocal() {
|
public boolean isLocal() {
|
||||||
return this.local;
|
return this.local;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ public class RestClusterHealthAction extends BaseRestHandler {
|
||||||
@Override
|
@Override
|
||||||
public void handleRequest(final RestRequest request, final RestChannel channel) {
|
public void handleRequest(final RestRequest request, final RestChannel channel) {
|
||||||
ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index")));
|
ClusterHealthRequest clusterHealthRequest = clusterHealthRequest(RestActions.splitIndices(request.param("index")));
|
||||||
clusterHealthRequest.setLocal(request.paramAsBoolean("local", clusterHealthRequest.getLocal()));
|
clusterHealthRequest.setLocal(request.paramAsBoolean("local", clusterHealthRequest.isLocal()));
|
||||||
clusterHealthRequest.setListenerThreaded(false);
|
clusterHealthRequest.setListenerThreaded(false);
|
||||||
int level = 0;
|
int level = 0;
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue