Package org.elasticsearch.common.settings

Examples of org.elasticsearch.common.settings.Settings


    @AfterMethod public void closeNodes() {
        closeAllNodes();
    }

    @Test public void testIndexLifecycleActionsWith11Shards1Backup() throws Exception {
        Settings settings = settingsBuilder()
                .put(SETTING_NUMBER_OF_SHARDS, 11)
                .put(SETTING_NUMBER_OF_REPLICAS, 1)
                .build();

        // start one server
View Full Code Here


        assertThat(routingNodeEntry3, nullValue());
    }

    @Test public void testIndexLifecycleActionsWith11Shards0Backup() throws Exception {

        Settings settings = settingsBuilder()
                .put(SETTING_NUMBER_OF_SHARDS, 11)
                .put(SETTING_NUMBER_OF_REPLICAS, 0)
                .build();

        // start one server
View Full Code Here

        assertThat(routingNodeEntry3, nullValue());
    }

    @Test public void testTwoIndicesCreation() throws Exception {

        Settings settings = settingsBuilder()
                .put(SETTING_NUMBER_OF_SHARDS, 11)
                .put(SETTING_NUMBER_OF_REPLICAS, 0)
                .build();

        // start one server
View Full Code Here

    @AfterClass public void closeNodes() {
        closeAllNodes();
    }

    @Test public void testUnicastDiscovery() {
        Settings settings = ImmutableSettings.settingsBuilder()
                .put("discovery.zen.multicast.enabled", false)
                .put("discovery.zen.unicast.hosts", "localhost")
                .build();

        startNode("node1", settings);
View Full Code Here

        buildNode("node1", settingsBuilder().put("gateway.type", "local"));
        buildNode("node2", settingsBuilder().put("gateway.type", "local"));
        cleanAndCloseNodes();


        Settings settings = settingsBuilder()
                .put("discovery.zen.minimum_master_nodes", 2)
                .put("discovery.zen.ping_timeout", "500ms")
                .put("discovery.initial_state_timeout", "1s")
                .put("gateway.type", "local")
                .put("index.number_of_shards", 1)
View Full Code Here

        buildNode("node3", settingsBuilder().put("gateway.type", "local"));
        buildNode("node4", settingsBuilder().put("gateway.type", "local"));
        cleanAndCloseNodes();


        Settings settings = settingsBuilder()
                .put("discovery.zen.minimum_master_nodes", 3)
                .put("discovery.zen.ping_timeout", "500ms")
                .put("discovery.initial_state_timeout", "1s")
                .put("gateway.type", "local")
                .build();
View Full Code Here

public class SimpleSortTests extends AbstractNodesTests {

    private Client client;

    @BeforeClass public void createNodes() throws Exception {
        Settings settings = settingsBuilder().put("number_of_shards", 3).put("number_of_replicas", 0).build();
        startNode("server1", settings);
        startNode("server2", settings);
        client = getClient();
    }
View Full Code Here

public class SimpleFacetsTests extends AbstractNodesTests {

    private Client client;

    @BeforeClass public void createNodes() throws Exception {
        Settings settings = ImmutableSettings.settingsBuilder().put("index.number_of_shards", numberOfShards()).put("index.number_of_replicas", 0).build();
        for (int i = 0; i < numberOfNodes(); i++) {
            startNode("node" + i, settings);
        }
        client = getClient();
    }
View Full Code Here

        final byte[] payload = new byte[(int) payloadSize.bytes()];
        final AtomicLong idGenerator = new AtomicLong();
        final Type type = Type.NETTY;


        Settings settings = ImmutableSettings.settingsBuilder()
                .build();

        final ThreadPool serverThreadPool = new ThreadPool();
        final TransportService serverTransportService = new TransportService(type.newTransport(settings, serverThreadPool), serverThreadPool).start();
View Full Code Here

        final ByteSizeValue payloadSize = new ByteSizeValue(10, ByteSizeUnit.MB);
        final int NUMBER_OF_ITERATIONS = 100000;
        final int NUMBER_OF_CLIENTS = 5;
        final byte[] payload = new byte[(int) payloadSize.bytes()];

        Settings settings = ImmutableSettings.settingsBuilder()
                .build();

        final ThreadPool threadPool = new ThreadPool();
        final TransportService transportServiceServer = new TransportService(new NettyTransport(settings, threadPool), threadPool).start();
        final TransportService transportServiceClient = new TransportService(new NettyTransport(settings, threadPool), threadPool).start();
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.settings.Settings

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.