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 queueRegistryClientExceptionpublic static void deleteQueue(String queueName) throws RegistryClientException
queueName - Name of the queue to be deletedRegistryClientExceptionpublic static QueueDetails[] getQueues() throws RegistryClientException
RegistryClientExceptionpublic static void createSubscription(String topic, String subscriptionName, String owner) throws RegistryClientException
topic - Topic namesubscriptionName - Queue name used for the subscriptionowner - Who creates the subscriptionRegistryClientExceptionpublic 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 subscriptionRegistryClientExceptionpublic static SubscriptionDetails[] getSubscriptions(String topic) throws RegistryClientException
topic - Name of the topicRegistryClientExceptionpublic static boolean isResourceExist(String resourceId) throws RegistryClientException
resourceId - resource path to checkRegistryClientExceptionCopyright © 2018 WSO2. All rights reserved.