Expose timeout for nodes_info requests in the REST interface

Closes #3191
This commit is contained in:
Clinton Gormley 2013-06-15 19:01:09 +02:00
parent a30d58aae2
commit 27a8083b7d
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ public class RestNodesInfoAction extends BaseRestHandler {
nodesInfoRequest.transport(request.paramAsBoolean("transport", nodesInfoRequest.transport())); nodesInfoRequest.transport(request.paramAsBoolean("transport", nodesInfoRequest.transport()));
nodesInfoRequest.http(request.paramAsBoolean("http", nodesInfoRequest.http())); nodesInfoRequest.http(request.paramAsBoolean("http", nodesInfoRequest.http()));
nodesInfoRequest.plugin(request.paramAsBoolean("plugin", nodesInfoRequest.plugin())); nodesInfoRequest.plugin(request.paramAsBoolean("plugin", nodesInfoRequest.plugin()));
nodesInfoRequest.timeout( request.paramAsTime("timeout", nodesInfoRequest.timeout()));
executeNodeRequest(request, channel, nodesInfoRequest); executeNodeRequest(request, channel, nodesInfoRequest);
} }