Package org.openstreetmap.osmosis.plugin.elasticsearch.utils

Examples of org.openstreetmap.osmosis.plugin.elasticsearch.utils.Endpoint


  @Before
  public void setUp() throws Exception {
    clientMocked = mock(Client.class);
    indexAdminServiceMocked = mock(IndexAdminService.class);
    entityDaoMocked = mock(EntityDao.class);
    endpoint = new Endpoint(clientMocked, indexAdminServiceMocked, entityDaoMocked);
    indexBuilders = new HashSet<AbstractIndexBuilder>();
    params = new Parameters.Builder().loadResource("plugin.properties")
        .addParameter(Parameters.CONFIG_QUEUE_SIZE, "1")
        .addParameter(Parameters.CONFIG_NODE_BULK_SIZE, "1")
        .addParameter(Parameters.CONFIG_WAY_BULK_SIZE, "1")
View Full Code Here


    // Build indexAdminService
    IndexAdminService indexAdminService = new IndexAdminService(client);
    // Build EntityDao
    EntityDao entityDao = buildEntityDao(client, params);
    // Create bundle
    Endpoint endpoint = new Endpoint(client, indexAdminService, entityDao);

    // Create Index
    createIndex(indexAdminService, params);
    // Get specialized index to build
    Set<AbstractIndexBuilder> indexBuilders = getSelectedIndexBuilders(endpoint, params);
View Full Code Here

TOP

Related Classes of org.openstreetmap.osmosis.plugin.elasticsearch.utils.Endpoint

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.