Class EtcdClusterImpl

  • All Implemented Interfaces:
    EtcdCluster, java.lang.AutoCloseable, org.testcontainers.lifecycle.Startable

    public class EtcdClusterImpl
    extends java.lang.Object
    implements EtcdCluster
    • Constructor Summary

      Constructors 
      Constructor Description
      EtcdClusterImpl​(java.lang.String image, java.lang.String clusterName, java.lang.String prefix, int nodes, boolean ssl, java.util.Collection<java.lang.String> additionalArgs, org.testcontainers.containers.Network network, boolean shouldMountDataDirectory)  
    • Constructor Detail

      • EtcdClusterImpl

        public EtcdClusterImpl​(java.lang.String image,
                               java.lang.String clusterName,
                               java.lang.String prefix,
                               int nodes,
                               boolean ssl,
                               java.util.Collection<java.lang.String> additionalArgs,
                               org.testcontainers.containers.Network network,
                               boolean shouldMountDataDirectory)
    • Method Detail

      • 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 java.lang.AutoCloseable
        Specified by:
        close in interface org.testcontainers.lifecycle.Startable
      • clientEndpoints

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

        public java.util.List<java.net.URI> peerEndpoints()
        Specified by:
        peerEndpoints in interface EtcdCluster