public class EtcdAccess extends Object
| Constructor | Description |
|---|---|
EtcdAccess(mousio.etcd4j.EtcdClient client,
String serviceId,
String clientId) |
| Modifier and Type | Method | Description |
|---|---|---|
String |
fetchConfig() |
|
mousio.etcd4j.EtcdClient |
getClient() |
|
void |
sendClientInfo(String json) |
|
void |
sendSchema(String schemaJson) |
|
void |
sendServiceInfo(String key,
String data) |
|
void |
setClientId(String clientId) |
public void setClientId(String clientId)
public mousio.etcd4j.EtcdClient getClient()
public void sendClientInfo(String json) throws IOException, mousio.etcd4j.responses.EtcdAuthenticationException, TimeoutException, mousio.etcd4j.responses.EtcdException
IOExceptionmousio.etcd4j.responses.EtcdAuthenticationExceptionTimeoutExceptionmousio.etcd4j.responses.EtcdExceptionpublic String fetchConfig() throws IOException, mousio.etcd4j.responses.EtcdAuthenticationException, TimeoutException, mousio.etcd4j.responses.EtcdException
IOExceptionmousio.etcd4j.responses.EtcdAuthenticationExceptionTimeoutExceptionmousio.etcd4j.responses.EtcdExceptionpublic void sendSchema(String schemaJson) throws IOException, mousio.etcd4j.responses.EtcdAuthenticationException, TimeoutException, mousio.etcd4j.responses.EtcdException
IOExceptionmousio.etcd4j.responses.EtcdAuthenticationExceptionTimeoutExceptionmousio.etcd4j.responses.EtcdExceptionpublic void sendServiceInfo(String key, String data) throws IOException, mousio.etcd4j.responses.EtcdAuthenticationException, TimeoutException, mousio.etcd4j.responses.EtcdException
IOExceptionmousio.etcd4j.responses.EtcdAuthenticationExceptionTimeoutExceptionmousio.etcd4j.responses.EtcdExceptionCopyright © 2020. All rights reserved.