Merge pull request #3192 from clintongormley/nodes_info_timeout

Expose timeout for nodes_info requests in the REST interface
This commit is contained in:
Clinton Gormley 2013-06-15 10:28:42 -07:00
commit 2f616e3c2a
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);
} }