public class RegistryClient extends Object
Constructor and Description |
---|
RegistryClient() |
Modifier and Type | Method and Description |
---|---|
static void |
createQueue(String queueName,
String owner)
Create an entry for a queue in the Registry
|
static void |
createSubscription(String topic,
String subscriptionName,
String owner)
Create an entry for a topic subscription in the Registry
|
static void |
deleteQueue(String queueName)
Delete the entry for a queue from the Registry
|
static void |
deleteSubscription(String topic,
String subscriptionName)
Delete the entry for a subscription from the Registry
|
static QueueDetails[] |
getQueues()
Get queues saved in the Registry
|
static SubscriptionDetails[] |
getSubscriptions(String topic)
Get subscriptions saved in the Registry
|
static String |
getTenantBasedTopicName(String topicName)
Gets tenant based topic name
|
static boolean |
isResourceExist(String resourceId)
Check whether given resource exist in registry
|
public static void createQueue(String queueName, String owner) throws RegistryClientException
queueName
- Name of the queueowner
- Who creates the queueRegistryClientException
public static void deleteQueue(String queueName) throws RegistryClientException
queueName
- Name of the queue to be deletedRegistryClientException
public static QueueDetails[] getQueues() throws RegistryClientException
RegistryClientException
public static void createSubscription(String topic, String subscriptionName, String owner) throws RegistryClientException
topic
- Topic namesubscriptionName
- Queue name used for the subscriptionowner
- Who creates the subscriptionRegistryClientException
public static String getTenantBasedTopicName(String topicName)
topicName
- the topic namepublic static void deleteSubscription(String topic, String subscriptionName) throws RegistryClientException
topic
- Name of the topic that the subscription is made tosubscriptionName
- Name of the queue used for the subscriptionRegistryClientException
public static SubscriptionDetails[] getSubscriptions(String topic) throws RegistryClientException
topic
- Name of the topicRegistryClientException
public static boolean isResourceExist(String resourceId) throws RegistryClientException
resourceId
- resource path to checkRegistryClientException
Copyright © 2019 WSO2. All rights reserved.