Package io.etcd.jetcd.launcher
Class EtcdClusterImpl
- java.lang.Object
-
- io.etcd.jetcd.launcher.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.net.URI>clientEndpoints()voidclose()java.lang.StringclusterName()java.util.List<EtcdContainer>containers()java.util.List<java.net.URI>peerEndpoints()voidstart()voidstop()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.etcd.jetcd.launcher.EtcdCluster
restart
-
-
-
-
Method Detail
-
start
public void start()
- Specified by:
startin interfaceorg.testcontainers.lifecycle.Startable
-
stop
public void stop()
- Specified by:
stopin interfaceorg.testcontainers.lifecycle.Startable
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceorg.testcontainers.lifecycle.Startable
-
clusterName
public java.lang.String clusterName()
- Specified by:
clusterNamein interfaceEtcdCluster
-
clientEndpoints
public java.util.List<java.net.URI> clientEndpoints()
- Specified by:
clientEndpointsin interfaceEtcdCluster
-
peerEndpoints
public java.util.List<java.net.URI> peerEndpoints()
- Specified by:
peerEndpointsin interfaceEtcdCluster
-
containers
public java.util.List<EtcdContainer> containers()
- Specified by:
containersin interfaceEtcdCluster
-
-