org.springframework.data.elasticsearch.client
Class TransportClientFactoryBean
java.lang.Object
org.springframework.data.elasticsearch.client.TransportClientFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean<org.elasticsearch.client.transport.TransportClient>, InitializingBean
public class TransportClientFactoryBean
- extends Object
- implements FactoryBean<org.elasticsearch.client.transport.TransportClient>, InitializingBean, DisposableBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransportClientFactoryBean
public TransportClientFactoryBean()
destroy
public void destroy()
throws Exception
- Specified by:
destroy
in interface DisposableBean
- Throws:
Exception
getObject
public org.elasticsearch.client.transport.TransportClient getObject()
throws Exception
- Specified by:
getObject
in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
- Throws:
Exception
getObjectType
public Class<org.elasticsearch.client.transport.TransportClient> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton
in interface FactoryBean<org.elasticsearch.client.transport.TransportClient>
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Throws:
Exception
buildClient
protected void buildClient()
throws Exception
- Throws:
Exception
setClusterNodes
public void setClusterNodes(String[] clusterNodes)
setProperties
public void setProperties(Properties properties)
Copyright © 2013 BioMed Central. All Rights Reserved.