org.springframework.data.elasticsearch.client
Class NodeClientFactoryBean
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NodeClientFactoryBean
public NodeClientFactoryBean(boolean local)
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
Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.