public class AdminHelper extends Object
AdminHelper
class is a utility class providing methods
for building special configurations such as topics cluster or hierarchy,
queues cluster, etc.Constructor and Description |
---|
AdminHelper()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
leaveQueueCluster(Queue clusterQueue,
Queue leaveQueue)
Deprecated.
|
static AdminReply |
listQueueCluster(Queue clusterQueue)
Deprecated.
|
static void |
setClusterLink(Topic clusterTopic,
Topic joiningTopic)
Deprecated.
|
static void |
setHierarchicalLink(Topic father,
Topic son)
Deprecated.
|
static void |
setQueueCluster(Destination clusterQueue,
Queue joiningQueue)
Deprecated.
|
static void |
setQueueCluster(Queue clusterQueue,
Queue joiningQueue)
Deprecated.
|
static void |
unsetClusterLink(Topic topic)
Deprecated.
|
static void |
unsetHierarchicalLink(Topic topic)
Deprecated.
|
public static void setClusterLink(Topic clusterTopic, Topic joiningTopic) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void unsetClusterLink(Topic topic) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void setHierarchicalLink(Topic father, Topic son) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void unsetHierarchicalLink(Topic topic) throws ConnectException, AdminException
The request fails if the topic does not exist or is not part of any hierarchy.
topic
- Topic which father is unset.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void setQueueCluster(Queue clusterQueue, Queue joiningQueue) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void setQueueCluster(Destination clusterQueue, Queue joiningQueue) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static void leaveQueueCluster(Queue clusterQueue, Queue leaveQueue) throws 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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public static AdminReply listQueueCluster(Queue clusterQueue) throws ConnectException, AdminException
clusterQueue
- the cluster Queue.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.Copyright © 2023 ScalAgent D.T.. All rights reserved.