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
- Thrown when an issue occurs during a registry operationpublic static void deleteQueue(String queueName) throws RegistryClientException
queueName
- Name of the queue to be deletedRegistryClientException
- Thrown when an issue occurs during a registry operationpublic static QueueDetails[] getQueues() throws RegistryClientException
RegistryClientException
- Thrown when an issue occurs during a registry operationpublic static void createSubscription(String topic, String subscriptionName, String owner) throws RegistryClientException
topic
- Topic namesubscriptionName
- Queue name used for the subscriptionowner
- Who creates the subscriptionRegistryClientException
- Thrown when an issue occurs during a registry operationpublic 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
- Thrown when an issue occurs during a registry operationpublic static SubscriptionDetails[] getSubscriptions(String topic) throws RegistryClientException
topic
- Name of the topicRegistryClientException
- Thrown when an issue occurs during a registry operationpublic static boolean isResourceExist(String resourceId) throws RegistryClientException
resourceId
- resource path to checkRegistryClientException
- Thrown when an issue occurs during a registry operationCopyright © 2017 WSO2. All rights reserved.