接口 NonPersistentTopics
-
@Deprecated public interface NonPersistentTopics已过时。since 2.0. SeeTopics
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 voidcreatePartitionedTopic(java.lang.String topic, int numPartitions)已过时。Create a partitioned topic.java.util.concurrent.CompletableFuture<java.lang.Void>createPartitionedTopicAsync(java.lang.String topic, int numPartitions)已过时。Create a partitioned topic asynchronously.PersistentTopicInternalStatsgetInternalStats(java.lang.String topic)已过时。Get the internal stats for the topic.java.util.concurrent.CompletableFuture<PersistentTopicInternalStats>getInternalStatsAsync(java.lang.String topic)已过时。Get the internal stats for the topic asynchronously.java.util.List<java.lang.String>getList(java.lang.String namespace)已过时。Get list of topics exist into given namespace.java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getListAsync(java.lang.String namespace)已过时。Get list of topics exist into given namespace asynchronously.java.util.List<java.lang.String>getListInBundle(java.lang.String namespace, java.lang.String bundleRange)已过时。Get list of topics exist into given bundle.java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>>getListInBundleAsync(java.lang.String namespace, java.lang.String bundleRange)已过时。Get list of topics exist into given bundle asynchronously.PartitionedTopicMetadatagetPartitionedTopicMetadata(java.lang.String topic)已过时。Get metadata of a partitioned topic.java.util.concurrent.CompletableFuture<PartitionedTopicMetadata>getPartitionedTopicMetadataAsync(java.lang.String topic)已过时。Get metadata of a partitioned topic asynchronously.NonPersistentTopicStatsgetStats(java.lang.String topic)已过时。Get the stats for the topic.java.util.concurrent.CompletableFuture<NonPersistentTopicStats>getStatsAsync(java.lang.String topic)已过时。Get the stats for the topic asynchronously.voidunload(java.lang.String topic)已过时。Unload a topic.java.util.concurrent.CompletableFuture<java.lang.Void>unloadAsync(java.lang.String topic)已过时。Unload a topic asynchronously.
-
-
-
方法详细资料
-
getPartitionedTopicMetadata
PartitionedTopicMetadata getPartitionedTopicMetadata(java.lang.String topic) throws PulsarAdminException
已过时。Get metadata of a partitioned topic. Get metadata of a partitioned topic.- 参数:
topic- Topic name- 返回:
- Partitioned topic metadata
- 抛出:
PulsarAdminException
-
getPartitionedTopicMetadataAsync
java.util.concurrent.CompletableFuture<PartitionedTopicMetadata> getPartitionedTopicMetadataAsync(java.lang.String topic)
已过时。Get metadata of a partitioned topic asynchronously. Get metadata of a partitioned topic asynchronously.- 参数:
topic- Topic name- 返回:
- a future that can be used to track when the partitioned topic metadata is returned
-
getStats
NonPersistentTopicStats getStats(java.lang.String topic) throws PulsarAdminException
已过时。Get the stats for the topic. Response Example:
All the rates are computed over a 1 minute window and are relative the last completed 1 minute period.{ "msgRateIn" : 100.0, // Total rate of messages published on the topic. msg/s "msgThroughputIn" : 10240.0, // Total throughput of messages published on the topic. byte/s "msgRateOut" : 100.0, // Total rate of messages delivered on the topic. msg/s "msgThroughputOut" : 10240.0, // Total throughput of messages delivered on the topic. byte/s "averageMsgSize" : 1024.0, // Average size of published messages. bytes "publishers" : [ // List of publishes on this topic with their stats { "producerId" : 10 // producer id "address" : 10.4.1.23:3425 // IP and port for this producer "connectedSince" : 2014-11-21 23:54:46 // Timestamp of this published connection "msgRateIn" : 100.0, // Total rate of messages published by this producer. msg/s "msgThroughputIn" : 10240.0, // Total throughput of messages published by this producer. byte/s "averageMsgSize" : 1024.0, // Average size of published messages by this producer. bytes }, ], "subscriptions" : { // Map of subscriptions on this topic "sub1" : { "msgRateOut" : 100.0, // Total rate of messages delivered on this subscription. msg/s "msgThroughputOut" : 10240.0, // Total throughput delivered on this subscription. bytes/s "msgBacklog" : 0, // Number of messages in the subscriotion backlog "type" : Exclusive // Whether the subscription is exclusive or shared "consumers" [ // List of consumers on this subscription { "id" : 5 // Consumer id "address" : 10.4.1.23:3425 // IP and port for this consumer "connectedSince" : 2014-11-21 23:54:46 // Timestamp of this consumer connection "msgRateOut" : 100.0, // Total rate of messages delivered to this consumer. msg/s "msgThroughputOut" : 10240.0, // Total throughput delivered to this consumer. bytes/s } ], }, "replication" : { // Replication statistics "cluster_1" : { // Cluster name in the context of from-cluster or to-cluster "msgRateIn" : 100.0, // Total rate of messages received from this remote cluster. msg/s "msgThroughputIn" : 10240.0, // Total throughput received from this remote cluster. bytes/s "msgRateOut" : 100.0, // Total rate of messages delivered to the replication-subscriber. msg/s "msgThroughputOut" : 10240.0, // Total throughput delivered to the replication-subscriber. bytes/s "connected" : true, // Whether the replication-subscriber is currently connected locally }, "cluster_2" : { "msgRateIn" : 100.0, "msgThroughputIn" : 10240.0, "msgRateOut" : 100.0, "msghroughputOut" : 10240.0, "connected" : true, } }, }- 参数:
topic- Topic name- 返回:
- the topic statistics
- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Topic does not existPulsarAdminException- Unexpected error
-
getStatsAsync
java.util.concurrent.CompletableFuture<NonPersistentTopicStats> getStatsAsync(java.lang.String topic)
已过时。Get the stats for the topic asynchronously. All the rates are computed over a 1 minute window and are relative the last completed 1 minute period.- 参数:
topic- Topic name- 返回:
- a future that can be used to track when the topic statistics are returned
-
getInternalStats
PersistentTopicInternalStats getInternalStats(java.lang.String topic) throws PulsarAdminException
已过时。Get the internal stats for the topic. Access the internal state of the topic- 参数:
topic- Topic name- 返回:
- the topic statistics
- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Topic does not existPulsarAdminException- Unexpected error
-
getInternalStatsAsync
java.util.concurrent.CompletableFuture<PersistentTopicInternalStats> getInternalStatsAsync(java.lang.String topic)
已过时。Get the internal stats for the topic asynchronously.- 参数:
topic- Topic Name- 返回:
- a future that can be used to track when the internal topic statistics are returned
-
createPartitionedTopic
void createPartitionedTopic(java.lang.String topic, int numPartitions) throws PulsarAdminException已过时。Create a partitioned topic. Create a partitioned topic. It needs to be called before creating a producer for a partitioned topic.- 参数:
topic- Topic namenumPartitions- Number of partitions to create of the topic- 抛出:
PulsarAdminException
-
createPartitionedTopicAsync
java.util.concurrent.CompletableFuture<java.lang.Void> createPartitionedTopicAsync(java.lang.String topic, int numPartitions)已过时。Create a partitioned topic asynchronously. Create a partitioned topic asynchronously. It needs to be called before creating a producer for a partitioned topic.- 参数:
topic- Topic namenumPartitions- Number of partitions to create of the topic- 返回:
- a future that can be used to track when the partitioned topic is created
-
unload
void unload(java.lang.String topic) throws PulsarAdminException已过时。Unload a topic.- 参数:
topic- Topic name- 抛出:
PulsarAdminException.NotAuthorizedException- Don't have admin permissionPulsarAdminException.NotFoundException- Topic does not existPulsarAdminException- Unexpected error
-
unloadAsync
java.util.concurrent.CompletableFuture<java.lang.Void> unloadAsync(java.lang.String topic)
已过时。Unload a topic asynchronously.- 参数:
topic- Topic name- 返回:
- a future that can be used to track when the topic is unloaded
-
getListInBundle
java.util.List<java.lang.String> getListInBundle(java.lang.String namespace, java.lang.String bundleRange) throws PulsarAdminException已过时。Get list of topics exist into given bundle.- 参数:
namespace-bundleRange-- 返回:
- 抛出:
PulsarAdminException
-
getListInBundleAsync
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getListInBundleAsync(java.lang.String namespace, java.lang.String bundleRange)已过时。Get list of topics exist into given bundle asynchronously.- 参数:
namespace-bundleRange-- 返回:
-
getList
java.util.List<java.lang.String> getList(java.lang.String namespace) throws PulsarAdminException已过时。Get list of topics exist into given namespace.- 参数:
namespace-- 返回:
- 抛出:
PulsarAdminException
-
getListAsync
java.util.concurrent.CompletableFuture<java.util.List<java.lang.String>> getListAsync(java.lang.String namespace)
已过时。Get list of topics exist into given namespace asynchronously.- 参数:
namespace-- 返回:
-
-