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
  • Field Details

  • Constructor Details

    • EmbeddedElasticSearchServer

      @Inject public EmbeddedElasticSearchServer(Optional<String> dockerHostOpt, Optional<String> imageOpt, Optional<String> clusterNameOpt, Optional<Integer> httpPortOpt, Optional<Integer> transportPortOpt)
      Constructor.
      Parameters:
      imageOpt - Image Docker ES (ex: docker.elastic.co/elasticsearch/elasticsearch:9.4.3)
      clusterNameOpt - Nom du cluster
      httpPortOpt - Port HTTP
      transportPortOpt - Port Transport (TCP)
  • Method Details

    • 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