Package org.elasticsearch.transport

Examples of org.elasticsearch.transport.TransportRequestOptions


                        listener.onResponse(newResponse(request, responses));
                    }
                });
                return;
            }
            TransportRequestOptions transportRequestOptions = TransportRequestOptions.options();
            if (request.timeout() != null) {
                transportRequestOptions.withTimeout(request.timeout());
            }
            transportRequestOptions.withCompress(transportCompress());
            for (final String nodeId : nodesIds) {
                final DiscoveryNode node = clusterState.nodes().nodes().get(nodeId);
                if (nodeId.equals("_local") || nodeId.equals(clusterState.nodes().localNodeId())) {
                    threadPool.executor(executor()).execute(new Runnable() {
                        @Override public void run() {
View Full Code Here


                                shouldCompressRequest = false;
                            }

                            long len = indexInput.length();
                            long readCount = 0;
                            TransportRequestOptions requestOptions = TransportRequestOptions.options()
                                    .withCompress(shouldCompressRequest)
                                    .withType(TransportRequestOptions.Type.RECOVERY)
                                    .withTimeout(internalActionTimeout);

                            while (readCount < len) {
View Full Code Here

        long size = 0;
        int totalOperations = 0;
        List<Translog.Operation> operations = Lists.newArrayList();
        Translog.Operation operation = snapshot.next();

        TransportRequestOptions recoveryOptions = TransportRequestOptions.options()
                .withCompress(recoverySettings.compress())
                .withType(TransportRequestOptions.Type.RECOVERY)
                .withTimeout(internalActionLongTimeout);

        while (operation != null) {
View Full Code Here

TOP

Related Classes of org.elasticsearch.transport.TransportRequestOptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.