Class ESEmbeddedSearchServicesPlugin
java.lang.Object
io.vertigo.datafactory.plugins.search.elasticsearch_5_6.AbstractESSearchServicesPlugin
io.vertigo.datafactory.plugins.search.elasticsearch_5_6.embedded.ESEmbeddedSearchServicesPlugin
- 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 embarqué.
- Author:
- pchretien, npiedeloup
-
Field Summary
Fields inherited from class io.vertigo.datafactory.plugins.search.elasticsearch_5_6.AbstractESSearchServicesPlugin
SUFFIX_SORT_FIELD -
Constructor Summary
ConstructorsConstructorDescriptionESEmbeddedSearchServicesPlugin(String elasticSearchHome, String envIndex, Optional<Boolean> envIndexIsPrefix, int rowsPerQuery, String configFile, Optional<Integer> httpPortOpt, Optional<Integer> transportPortOpt, 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
-
ESEmbeddedSearchServicesPlugin
@Inject public ESEmbeddedSearchServicesPlugin(String elasticSearchHome, String envIndex, Optional<Boolean> envIndexIsPrefix, int rowsPerQuery, String configFile, Optional<Integer> httpPortOpt, Optional<Integer> transportPortOpt, io.vertigo.commons.codec.CodecManager codecManager, io.vertigo.datamodel.smarttype.SmartTypeManager smartTypeManager, io.vertigo.core.resource.ResourceManager resourceManager) Constructor.- Parameters:
elasticSearchHome- URL du serveur SOLRenvIndex- Nom de l'index de l'environmentenvIndexIsPrefix- Si Nom de l'index de l'environment est un prefixrowsPerQuery- Nombre d'élément retourné par queryconfigFile- Fichier de configuration des indexscodecManager- 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
-