public class EtcdClusterConfig extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
EtcdClusterConfig.TlsMode |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ADDR_STR |
static int |
DEFAULT_MAX_MSG_SIZE |
protected int |
maxMessageSize |
protected static Pattern |
SIMPLE_PATT |
| Modifier | Constructor and Description |
|---|---|
protected |
EtcdClusterConfig() |
| Modifier and Type | Method and Description |
|---|---|
static EtcdClusterConfig |
fromJson(com.google.common.io.ByteSource source) |
static EtcdClusterConfig |
fromJson(com.google.common.io.ByteSource source,
File dir) |
static EtcdClusterConfig |
fromJsonFile(String file) |
static EtcdClusterConfig |
fromJsonFileOrSimple(String fileOrSimpleString) |
static EtcdClusterConfig |
fromProperties(com.google.common.io.ByteSource source) |
EtcdClient |
getClient() |
static EtcdClient |
getClient(EtcdClusterConfig config) |
Set<String> |
getEndpoints() |
com.google.protobuf.ByteString |
getRootPrefix() |
static EtcdClusterConfig |
newSimpleConfig(String endpoints,
String rootPrefix) |
static void |
shutdownAll() |
public static final int DEFAULT_MAX_MSG_SIZE
protected final int maxMessageSize
protected static final String ADDR_STR
protected static final Pattern SIMPLE_PATT
public com.google.protobuf.ByteString getRootPrefix()
public EtcdClient getClient() throws IOException, CertificateException
public static EtcdClusterConfig newSimpleConfig(String endpoints, String rootPrefix)
public static EtcdClusterConfig fromProperties(com.google.common.io.ByteSource source) throws IOException
public static EtcdClusterConfig fromJson(com.google.common.io.ByteSource source, File dir) throws IOException
public static EtcdClusterConfig fromJson(com.google.common.io.ByteSource source) throws IOException
public static EtcdClusterConfig fromJsonFile(String file) throws IOException
public static EtcdClusterConfig fromJsonFileOrSimple(String fileOrSimpleString) throws IOException
public static EtcdClient getClient(EtcdClusterConfig config) throws IOException, CertificateException
public static void shutdownAll()
Copyright © 2019. All rights reserved.