public class EtcdClusterExtension extends Object implements EtcdCluster, org.junit.jupiter.api.extension.BeforeAllCallback, org.junit.jupiter.api.extension.AfterAllCallback
| Constructor and Description |
|---|
EtcdClusterExtension(String clusterName,
int nodes) |
EtcdClusterExtension(String clusterName,
int nodes,
boolean ssl) |
EtcdClusterExtension(String clusterName,
int nodes,
boolean ssl,
String... additionalArgs) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
close() |
List<URI> |
getClientEndpoints() |
List<URI> |
getPeerEndpoints() |
void |
restart() |
void |
start() |
public EtcdClusterExtension(String clusterName, int nodes)
public EtcdClusterExtension(String clusterName, int nodes, boolean ssl)
public void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
throws Exception
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackExceptionpublic void afterAll(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
throws Exception
afterAll in interface org.junit.jupiter.api.extension.AfterAllCallbackExceptionpublic 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.