类 HttpLookupService
java.lang.Object
org.apache.pulsar.client.impl.HttpLookupService
- 所有已实现的接口:
AutoCloseable,LookupService
-
构造器概要
构造器构造器说明HttpLookupService(InstrumentProvider instrumentProvider, ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) -
方法概要
修饰符和类型方法说明voidclose()Calls http-lookup api to find broker-service address which can serve a given topic.CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata>getPartitionedTopicMetadata(TopicName topicName) ReturnsPartitionedTopicMetadatafor a given topic.Returns current SchemaInfoSchemaInfofor a given topic.Returns specific version SchemaInfoSchemaInfofor a given topic.Returns broker-service lookup api url.getTopicsUnderNamespace(NamespaceName namespace, CommandGetTopicsOfNamespace.Mode mode, String topicsPattern, String topicsHash) Returns all the topics name for a given namespace.Resolves pulsar service url.voidupdateServiceUrl(String serviceUrl) Instruct the LookupService to switch to a new service URL for all subsequent requests.
-
构造器详细资料
-
HttpLookupService
public HttpLookupService(InstrumentProvider instrumentProvider, ClientConfigurationData conf, io.netty.channel.EventLoopGroup eventLoopGroup) throws PulsarClientException
-
-
方法详细资料
-
updateServiceUrl
从接口复制的说明:LookupServiceInstruct the LookupService to switch to a new service URL for all subsequent requests.- 指定者:
updateServiceUrl在接口中LookupService- 抛出:
PulsarClientException
-
getBroker
Calls http-lookup api to find broker-service address which can serve a given topic.- 指定者:
getBroker在接口中LookupService- 参数:
topicName- topic-name- 返回:
- broker-socket-address that serves given topic
-
getPartitionedTopicMetadata
public CompletableFuture<org.apache.pulsar.common.partition.PartitionedTopicMetadata> getPartitionedTopicMetadata(TopicName topicName) 从接口复制的说明:LookupServiceReturnsPartitionedTopicMetadatafor a given topic.- 指定者:
getPartitionedTopicMetadata在接口中LookupService- 参数:
topicName- topic-name- 返回:
-
getServiceUrl
从接口复制的说明:LookupServiceReturns broker-service lookup api url.- 指定者:
getServiceUrl在接口中LookupService- 返回:
-
resolveHost
从接口复制的说明:LookupServiceResolves pulsar service url.- 指定者:
resolveHost在接口中LookupService- 返回:
- the service url resolved to a socket address
-
getTopicsUnderNamespace
public CompletableFuture<GetTopicsResult> getTopicsUnderNamespace(NamespaceName namespace, CommandGetTopicsOfNamespace.Mode mode, String topicsPattern, String topicsHash) 从接口复制的说明:LookupServiceReturns all the topics name for a given namespace.- 指定者:
getTopicsUnderNamespace在接口中LookupService- 参数:
namespace- : namespace-name- 返回:
-
getSchema
从接口复制的说明:LookupServiceReturns current SchemaInfoSchemaInfofor a given topic.- 指定者:
getSchema在接口中LookupService- 参数:
topicName- topic-name- 返回:
- SchemaInfo
-
getSchema
从接口复制的说明:LookupServiceReturns specific version SchemaInfoSchemaInfofor a given topic.- 指定者:
getSchema在接口中LookupService- 参数:
topicName- topic-nameversion- schema info version- 返回:
- SchemaInfo
-
close
- 指定者:
close在接口中AutoCloseable- 抛出:
Exception
-