Package org.elasticsearch.client.node

Examples of org.elasticsearch.client.node.NodeClient


        Client client = node.client();
        if (! (client instanceof NodeClient) ) {
            throw new RuntimeException("Unable to create node client: the returned node isn't a NodeClient!");
        }

        NodeClient nodeClient = (NodeClient) client;

        AbstractClient<NodeClient, JsonInput, JsonOutput> shellClient = this.clientWrapper.wrapEsLocalNodeClient(nodeClient);
        resourceRegistry.registerResource(shellClient);

        ShellNativeClient shellNativeClient = clientWrapper.wrapShellClient(shellClient);
View Full Code Here


class ElasticsearchTemplateProducer {

  @Produces
  public ElasticsearchOperations createElasticsearchTemplate() throws IOException, ParserConfigurationException, SAXException {
    ImmutableSettings.Builder settings = ImmutableSettings.settingsBuilder().put("http.enabled", "false");
    NodeClient client = (NodeClient) nodeBuilder().settings(settings).clusterName("testClusterForCDI").local(true).node()
        .client();
    return new ElasticsearchTemplate(client);
  }
View Full Code Here

TOP

Related Classes of org.elasticsearch.client.node.NodeClient

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.