public class DiscoveryService extends Object implements Closeable
| Constructor and Description |
|---|
DiscoveryService(ServiceConfig serviceConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
AuthenticationService |
getAuthenticationService() |
AuthorizationService |
getAuthorizationService() |
ServiceConfig |
getConfiguration() |
ConfigurationCacheService |
getConfigurationCacheService() |
BrokerDiscoveryProvider |
getDiscoveryProvider() |
String |
getServiceUrl() |
String |
getServiceUrlTls() |
ZooKeeperClientFactory |
getZooKeeperClientFactory() |
String |
host()
Derive the host
|
String |
serviceUrl() |
String |
serviceUrlTls() |
void |
setConfigurationCacheService(ConfigurationCacheService configurationCacheService) |
void |
start()
Starts discovery service by initializing ZooKeeper and server
|
void |
startServer()
starts server to handle discovery-request from client-channel
|
public DiscoveryService(ServiceConfig serviceConfig)
public void start()
throws Exception
Exceptionpublic void startServer()
throws Exception
Exceptionpublic ZooKeeperClientFactory getZooKeeperClientFactory()
public BrokerDiscoveryProvider getDiscoveryProvider()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String host()
public String serviceUrl()
public String serviceUrlTls()
public String getServiceUrl()
public String getServiceUrlTls()
public ServiceConfig getConfiguration()
public AuthenticationService getAuthenticationService()
public AuthorizationService getAuthorizationService()
public ConfigurationCacheService getConfigurationCacheService()
public void setConfigurationCacheService(ConfigurationCacheService configurationCacheService)
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.