|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.client.jms.admin.AdminHelper
The AdminHelper
class is a utility class providing methods
for building special configurations such as topics cluster or hierarchy,
queues cluster, etc.
Constructor Summary | |
AdminHelper()
|
Method Summary | |
static void |
leaveQueueCluster(Queue clusterQueue,
Queue leaveQueue)
Removes a queue from the cluster Queue it is part of. |
static AdminReply |
listQueueCluster(Queue clusterQueue)
List a cluster queue. |
static void |
setClusterLink(Topic clusterTopic,
Topic joiningTopic)
Links two given topics in a cluster relationship. |
static void |
setHierarchicalLink(Topic father,
Topic son)
Links two given topics in a hierarchical relationship. |
static void |
setQueueCluster(Destination clusterQueue,
Queue joiningQueue)
|
static void |
setQueueCluster(Queue clusterQueue,
Queue joiningQueue)
Adds a queue to a cluster. |
static void |
unsetClusterLink(Topic topic)
Removes a topic from the cluster it is part of. |
static void |
unsetHierarchicalLink(Topic topic)
Unsets the father of a given topic. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AdminHelper()
Method Detail |
public static void setClusterLink(Topic clusterTopic, Topic joiningTopic) throws java.net.ConnectException, AdminException
The request fails if one or both of the topics are deleted, or can't belong to a cluster.
clusterTopic
- Topic part of the cluster, or chosen as the
initiator of the cluster.joiningTopic
- Topic joining the cluster.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static void unsetClusterLink(Topic topic) throws java.net.ConnectException, AdminException
The request fails if the topic does not exist or is not part of any cluster.
topic
- Topic leaving the cluster it is part of.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static void setHierarchicalLink(Topic father, Topic son) throws java.net.ConnectException, AdminException
The request fails if one of the topics does not exist or can't be part of a hierarchy.
father
- Father.son
- Son.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static void unsetHierarchicalLink(Topic topic) throws java.net.ConnectException, AdminException
The request fails if the topic does not exist or is not part of any hierarchy.
topic
- Topic which father is unset.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static void setQueueCluster(Queue clusterQueue, Queue joiningQueue) throws java.net.ConnectException, AdminException
The request fails if one or both of the queues are deleted, or can't belong to a cluster.
clusterQueue
- Queue part of the cluster, or chosen as the
initiator of the cluster.joiningQueue
- Queue joining the cluster.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static void setQueueCluster(Destination clusterQueue, Queue joiningQueue) throws java.net.ConnectException, AdminException
java.net.ConnectException
AdminException
public static void leaveQueueCluster(Queue clusterQueue, Queue leaveQueue) throws java.net.ConnectException, AdminException
The request fails if the queue does not exist or is not part of any cluster.
clusterQueue
- the cluster Queue.leaveQueue
- Queue leaving the cluster Queue it is part of.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.public static AdminReply listQueueCluster(Queue clusterQueue) throws java.net.ConnectException, AdminException
clusterQueue
- the cluster Queue.
java.net.ConnectException
- If the admin connection is closed or broken.
AdminException
- If the request fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |