public class EtcdClusterResource extends org.junit.rules.ExternalResource implements EtcdCluster
| Constructor and Description |
|---|
EtcdClusterResource(String clusterName) |
EtcdClusterResource(String clusterName,
int nodes) |
EtcdClusterResource(String clusterName,
int nodes,
boolean ssl) |
EtcdClusterResource(String clusterName,
int nodes,
boolean ssl,
boolean restartable) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
after() |
protected void |
before() |
void |
close() |
List<URI> |
getClientEndpoints() |
List<URI> |
getPeerEndpoints() |
void |
restart() |
void |
start() |
public EtcdClusterResource(String clusterName)
public EtcdClusterResource(String clusterName, int nodes)
public EtcdClusterResource(String clusterName, int nodes, boolean ssl)
public EtcdClusterResource(String clusterName, int nodes, boolean ssl, boolean restartable)
protected void before()
throws Throwable
before in class org.junit.rules.ExternalResourceThrowableprotected void after()
after in class org.junit.rules.ExternalResourcepublic void start()
start in interface EtcdClusterpublic void restart()
restart in interface EtcdClusterpublic void close()
close in interface EtcdClusterclose in interface AutoCloseable@NonNull public List<URI> getClientEndpoints()
getClientEndpoints in interface EtcdCluster@NonNull public List<URI> getPeerEndpoints()
getPeerEndpoints in interface EtcdClusterCopyright © 2020. All rights reserved.