Spring Data Elasticsearch

org.springframework.data.elasticsearch.client
Class NodeClientFactoryBean

java.lang.Object
  extended by org.springframework.data.elasticsearch.client.NodeClientFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean<org.elasticsearch.client.node.NodeClient>, InitializingBean

public class NodeClientFactoryBean
extends Object
implements FactoryBean<org.elasticsearch.client.node.NodeClient>, InitializingBean, DisposableBean

NodeClientFactoryBean

Author:
Rizwan Idrees, Mohsin Husen

Constructor Summary
NodeClientFactoryBean(boolean local)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
 org.elasticsearch.client.node.NodeClient getObject()
           
 Class<? extends org.elasticsearch.client.Client> getObjectType()
           
 boolean isSingleton()
           
 void setClusterName(String clusterName)
           
 void setEnableHttp(boolean enableHttp)
           
 void setLocal(boolean local)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeClientFactoryBean

public NodeClientFactoryBean(boolean local)
Method Detail

getObject

public org.elasticsearch.client.node.NodeClient getObject()
                                                   throws Exception
Specified by:
getObject in interface FactoryBean<org.elasticsearch.client.node.NodeClient>
Throws:
Exception

getObjectType

public Class<? extends org.elasticsearch.client.Client> getObjectType()
Specified by:
getObjectType in interface FactoryBean<org.elasticsearch.client.node.NodeClient>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<org.elasticsearch.client.node.NodeClient>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setLocal

public void setLocal(boolean local)

setEnableHttp

public void setEnableHttp(boolean enableHttp)

setClusterName

public void setClusterName(String clusterName)

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface DisposableBean
Throws:
Exception

Spring Data Elasticsearch

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.