Class 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
    • 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 SOLR
        envIndex - Nom de l'index de l'environment
        envIndexIsPrefix - Si Nom de l'index de l'environment est un prefix
        rowsPerQuery - Nombre d'élément retourné par query
        resourceManager - Manager d'accès aux ressources
        configFile - Fichier de configuration des indexs
    • Method Detail

      • start

        public void start()
        Specified by:
        start in interface io.vertigo.core.node.component.Activeable
      • stop

        public void stop()
        Specified by:
        stop in interface io.vertigo.core.node.component.Activeable
      • createNode

        protected org.elasticsearch.node.Node createNode​(URL esHomeURL)
      • buildNodeSettings

        protected org.elasticsearch.common.settings.Settings buildNodeSettings​(String homePath)