Class EmbeddedElasticSearchServer
- java.lang.Object
-
- io.vertigo.connectors.elasticsearch.EmbeddedElasticSearchServer
-
- All Implemented Interfaces:
io.vertigo.core.node.component.Activeable,io.vertigo.core.node.component.Component,io.vertigo.core.node.component.CoreComponent
public final class EmbeddedElasticSearchServer extends Object implements io.vertigo.core.node.component.Component, io.vertigo.core.node.component.Activeable
Gestion de la connexion au serveur ElasticSearch en mode embarqué.- Author:
- pchretien, npiedeloup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classEmbeddedElasticSearchServer.MyNode
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_VERTIGO_ES_CLUSTER_NAME
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.elasticsearch.common.settings.SettingsbuildNodeSettings(String homePath)protected org.elasticsearch.node.NodecreateNode(URL esHomeURL)voidstart()voidstop()
-
-
-
Field Detail
-
DEFAULT_VERTIGO_ES_CLUSTER_NAME
public static final String DEFAULT_VERTIGO_ES_CLUSTER_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EmbeddedElasticSearchServer
@Inject public EmbeddedElasticSearchServer(String elasticSearchHome, Optional<String> clusterNameOpt, Optional<Integer> httpPortOpt, Optional<Integer> transportPortOpt, 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 queryresourceManager- Manager d'accès aux ressourcesconfigFile- Fichier de configuration des indexs
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()
- Specified by:
stopin interfaceio.vertigo.core.node.component.Activeable
-
createNode
protected org.elasticsearch.node.Node createNode(URL esHomeURL)
-
buildNodeSettings
protected org.elasticsearch.common.settings.Settings buildNodeSettings(String homePath)
-
-