Class EtcdClusterImpl

java.lang.Object
io.etcd.jetcd.launcher.EtcdClusterImpl
All Implemented Interfaces:
EtcdCluster, AutoCloseable, org.testcontainers.lifecycle.Startable

public class EtcdClusterImpl extends Object implements EtcdCluster
  • Constructor Details

    • EtcdClusterImpl

      public EtcdClusterImpl(String image, String clusterName, String prefix, int nodes, boolean ssl, boolean debug, Collection<String> additionalArgs, org.testcontainers.containers.Network network, boolean shouldMountDataDirectory)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.testcontainers.lifecycle.Startable
    • stop

      public void stop()
      Specified by:
      stop in interface org.testcontainers.lifecycle.Startable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.testcontainers.lifecycle.Startable
    • clusterName

      public String clusterName()
      Specified by:
      clusterName in interface EtcdCluster
    • clientEndpoints

      public List<URI> clientEndpoints()
      Specified by:
      clientEndpoints in interface EtcdCluster
    • peerEndpoints

      public List<URI> peerEndpoints()
      Specified by:
      peerEndpoints in interface EtcdCluster
    • containers

      public List<EtcdContainer> containers()
      Specified by:
      containers in interface EtcdCluster