Package org.elasticsearch.test.cluster

Examples of org.elasticsearch.test.cluster.NoopClusterService


        ImplementationSymbolVisitor implementationSymbolVisitor = new ImplementationSymbolVisitor(
                injector.getInstance(ReferenceResolver.class),
                injector.getInstance(Functions.class),
                RowGranularity.CLUSTER);
        projectionToProjectorVisitor = new ProjectionToProjectorVisitor(
                new NoopClusterService(),
                ImmutableSettings.EMPTY,
                mock(TransportActionProvider.class),
                implementationSymbolVisitor
        );
    }
View Full Code Here


        settings.put(FaultDetection.SETTING_CONNECT_ON_NETWORK_DISCONNECT, shouldRetry)
                .put(FaultDetection.SETTING_PING_INTERVAL, "5m");
        ClusterName clusterName = new ClusterName(randomAsciiOfLengthBetween(3, 20));
        final ClusterState state = ClusterState.builder(clusterName).nodes(buildNodesForA(false)).build();
        MasterFaultDetection masterFD = new MasterFaultDetection(settings.build(), threadPool, serviceA, clusterName,
                new NoopClusterService(state));
        masterFD.start(nodeB, "test");

        final String[] failureReason = new String[1];
        final DiscoveryNode[] failureNode = new DiscoveryNode[1];
        final CountDownLatch notified = new CountDownLatch(1);
View Full Code Here

    private GatewayService createService(ImmutableSettings.Builder settings) {
        return new GatewayService(ImmutableSettings.builder()
                .put("http.enabled", "false")
                .put("discovery.type", "local")
                .put(settings.build()).build(), null, null, new NoopClusterService(), null, null);

    }
View Full Code Here

TOP

Related Classes of org.elasticsearch.test.cluster.NoopClusterService

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.