Class ESNodeSearchServicesPlugin
java.lang.Object
io.vertigo.datafactory.plugins.search.elasticsearch_5_6.AbstractESSearchServicesPlugin
io.vertigo.datafactory.plugins.search.elasticsearch_5_6.commonshttp.ESNodeSearchServicesPlugin
- All Implemented Interfaces:
io.vertigo.core.node.component.Activeable,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin,io.vertigo.datafactory.impl.search.SearchServicesPlugin
Gestion de la connexion au serveur elasticSearch en mode HTTP.
- Author:
- npiedeloup
-
Field Summary
Fields inherited from class io.vertigo.datafactory.plugins.search.elasticsearch_5_6.AbstractESSearchServicesPlugin
SUFFIX_SORT_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionESNodeSearchServicesPlugin(String serversNamesStr, String envIndex, Optional<Boolean> envIndexIsPrefix, int rowsPerQuery, String clusterName, String configFile, Optional<String> nodeNameOpt, io.vertigo.commons.codec.CodecManager codecManager, io.vertigo.datamodel.smarttype.SmartTypeManager smartTypeManager, io.vertigo.core.resource.ResourceManager resourceManager) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidClose created client.protected org.elasticsearch.client.ClientMethods inherited from class io.vertigo.datafactory.plugins.search.elasticsearch_5_6.AbstractESSearchServicesPlugin
checkClusterHealth, count, getMetaData, loadList, loadVersions, put, putAll, putMetaData, remove, remove, start, stop, waitForRefresh
-
Constructor Details
-
ESNodeSearchServicesPlugin
@Inject public ESNodeSearchServicesPlugin(String serversNamesStr, String envIndex, Optional<Boolean> envIndexIsPrefix, int rowsPerQuery, String clusterName, String configFile, Optional<String> nodeNameOpt, io.vertigo.commons.codec.CodecManager codecManager, io.vertigo.datamodel.smarttype.SmartTypeManager smartTypeManager, io.vertigo.core.resource.ResourceManager resourceManager) Constructor.- Parameters:
serversNamesStr- URL du serveur ElasticSearch avec le port de communication de cluster (9300 en général)envIndex- Nom de l'index de l'environmentenvIndexIsPrefix- Si Nom de l'index de l'environment est un prefixrowsPerQuery- Liste des indexesclusterName- : nom du cluster à rejoindreconfigFile- fichier de configuration des indexnodeNameOpt- : nom du nodecodecManager- Manager des codecsresourceManager- Manager d'accès aux ressources
-
-
Method Details
-
createClient
protected org.elasticsearch.client.Client createClient()- Specified by:
createClientin classAbstractESSearchServicesPlugin- Returns:
- ElasticSearch client.
-
closeClient
protected void closeClient()Close created client.- Specified by:
closeClientin classAbstractESSearchServicesPlugin
-