Package org.springframework.data.elasticsearch.client

Examples of org.springframework.data.elasticsearch.client.TransportClientFactoryBean.afterPropertiesSet()


  private Client createTransportClient() throws Exception {
    TransportClientFactoryBean factory = new TransportClientFactoryBean();
    factory.setClusterName(this.properties.getClusterName());
    factory.setClusterNodes(this.properties.getClusterNodes());
    factory.afterPropertiesSet();
    return factory.getObject();
  }

  @Override
  public void destroy() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.