ManagementClient 类

定义

Synchronous client to perform management operations on Service Bus entities. Use ManagementClientAsync for asynchronous operations.

public class ManagementClient
继承
java.lang.Object
ManagementClient

构造函数

ManagementClient(ConnectionStringBuilder connectionStringBuilder)
ManagementClient(URI namespaceEndpointURI, ClientSettings clientSettings)

方法

close()

Disposes and closes the managementClient.

createQueue(QueueDescription queueDescription)

Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties.

createQueue(String queuePath)

Creates a new queue in the service namespace with the given name. See QueueDescription for default values of queue properties.

createRule(String topicName, String subscriptionName, RuleDescription ruleDescription)

Creates a new rule for a given topic - subscription. See RuleDescription for default values of subscription properties.

createSubscription(String topicPath, String subscriptionName)

Creates a new subscription for a given topic in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties.

createSubscription(SubscriptionDescription subscriptionDescription)

Creates a new subscription in the service namespace with the given name. See SubscriptionDescription for default values of subscription properties.

createSubscription(SubscriptionDescription subscriptionDescription, RuleDescription defaultRule)

Creates a new subscription in the service namespace with the provided default rule. See SubscriptionDescription for default values of subscription properties.

createTopic(String topicPath)

Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.

createTopic(TopicDescription topicDescription)

Creates a new topic in the service namespace with the given name. See TopicDescription for default values of topic properties.

deleteQueue(String path)

Deletes the queue described by the path relative to the service namespace base address.

deleteRule(String topicPath, String subscriptionName, String ruleName)

Deletes the rule for a given topic-subscription.

deleteSubscription(String topicPath, String subscriptionName)

Deletes the subscription described by the topicPath and the subscriptionName.

deleteTopic(String path)

Deletes the topic described by the path relative to the service namespace base address.

getNamespaceInfo()

Retrieves information related to the namespace. Works with any claim (Send/Listen/Manage).

getQueue(String path)

Retrieves a queue from the service namespace

getQueueRuntimeInfo(String path)

Retrieves the runtime information of a queue.

getQueues()

Retrieves the list of queues present in the namespace.

getQueues(int count, int skip)

Retrieves the list of queues present in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

getRule(String topicPath, String subscriptionName, String ruleName)

Retrieves a rule for a given topic and subscription from the service namespace

getRules(String topicName, String subscriptionName)

Retrieves the list of rules for a given topic-subscription in the namespace.

getRules(String topicName, String subscriptionName, int count, int skip)

Retrieves the list of rules for a given topic-subscription in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

getSubscription(String topicPath, String subscriptionName)

Retrieves a subscription for a given topic from the service namespace

getSubscriptionRuntimeInfo(String topicPath, String subscriptionName)

Retrieves the runtime information of a subscription in a given topic

getSubscriptions(String topicName)

Retrieves the list of subscriptions for a given topic in the namespace.

getSubscriptions(String topicName, int count, int skip)

Retrieves the list of subscriptions for a given topic in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

getTopic(String path)

Retrieves a topic from the service namespace

getTopicRuntimeInfo(String path)

Retrieves the runtime information of a topic

getTopics()

Retrieves the list of topics present in the namespace.

getTopics(int count, int skip)

Retrieves the list of topics present in the namespace. You can simulate pages of list of entities by manipulating count and skip parameters. skip(0)+count(100) gives first 100 entities. skip(100)+count(100) gives the next 100 entities.

queueExists(String path)

Checks whether a given queue exists or not.

ruleExists(String topicPath, String subscriptionName, String ruleName)

Checks whether a given rule exists or not for a given subscription.

subscriptionExists(String topicPath, String subscriptionName)

Checks whether a given subscription exists or not.

topicExists(String path)

Checks whether a given topic exists or not.

updateQueue(QueueDescription queueDescription)

Updates an existing queue.

updateRule(String topicName, String subscriptionName, RuleDescription ruleDescription)

Updates an existing rule.

updateSubscription(SubscriptionDescription subscriptionDescription)

Updates an existing subscription.

updateTopic(TopicDescription topicDescription)

Updates an existing topic.

适用于