public class DiscoveryService extends Object implements Closeable
| Constructor and Description |
|---|
DiscoveryService(ServiceConfig serviceConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createConfigurationMetadataStore() |
org.apache.pulsar.metadata.api.extended.MetadataStoreExtended |
createLocalMetadataStore() |
AuthenticationService |
getAuthenticationService() |
AuthorizationService |
getAuthorizationService() |
ServiceConfig |
getConfiguration() |
ConfigurationCacheService |
getConfigurationCacheService() |
BrokerDiscoveryProvider |
getDiscoveryProvider() |
String |
getServiceUrl() |
String |
getServiceUrlTls() |
String |
host()
Derive the host
|
String |
serviceUrl() |
String |
serviceUrlTls() |
void |
setConfigurationCacheService(ConfigurationMetadataCacheService 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 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(ConfigurationMetadataCacheService configurationCacheService)
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createLocalMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException
public org.apache.pulsar.metadata.api.extended.MetadataStoreExtended createConfigurationMetadataStore() throws org.apache.pulsar.metadata.api.MetadataStoreException
Copyright © 2017–2021 Apache Software Foundation. All rights reserved.