Class AMQPDistributionQueue
- java.lang.Object
-
- org.objectweb.joram.client.jms.admin.AMQPDistributionQueue
-
public class AMQPDistributionQueue extends Object
TheAMQPDistributionQueueclass allows administrators to create AMQP distribution queues (AMQP bridge out).The AMQP bridge destinations rely on a particular Joram service which purpose is to maintain valid connections with the foreign XMQ servers.
-
-
Field Summary
Fields Modifier and Type Field Description static StringAMQPDistributionClass name of handler allowing to distribute messages to a foreign AMQP provider.
-
Constructor Summary
Constructors Constructor Description AMQPDistributionQueue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Queuecreate(int serverId, String dest)Administration method creating and deploying a AMQP distribution queue on a given server.static Queuecreate(int serverId, String name, String dest)Administration method creating and deploying a AMQP distribution queue on a given server.static Queuecreate(int serverId, String name, String dest, Properties props)Administration method creating and deploying a AMQP distribution queue on a given server.static Queuecreate(String dest)Administration method creating and deploying a AMQP distribution queue on the local server.
-
-
-
Field Detail
-
AMQPDistribution
public static final String AMQPDistribution
Class name of handler allowing to distribute messages to a foreign AMQP provider.- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static Queue create(String dest) throws ConnectException, AdminException
Administration method creating and deploying a AMQP distribution queue on the local server.The request fails if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
- Parameters:
dest- The name of the foreign destination.- Returns:
- the created bridge destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.- See Also:
create(int, String, String, Properties)
-
create
public static Queue create(int serverId, String dest) throws ConnectException, AdminException
Administration method creating and deploying a AMQP distribution queue on a given server.The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
- Parameters:
serverId- The identifier of the server where deploying the queue.dest- The name of the foreign destination.- Returns:
- the created bridge destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.- See Also:
create(int, String, String, Properties)
-
create
public static Queue create(int serverId, String name, String dest) throws ConnectException, AdminException
Administration method creating and deploying a AMQP distribution queue on a given server.The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
- Parameters:
serverId- The identifier of the server where deploying the queue.name- The name of the created queue.dest- The name of the foreign destination.- Returns:
- the created bridge destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.- See Also:
create(int, String, String, Properties)
-
create
public static Queue create(int serverId, String name, String dest, Properties props) throws ConnectException, AdminException
Administration method creating and deploying a AMQP distribution queue on a given server.A set of properties is used to configure the distribution destination:
- period – Tells the time to wait before another distribution attempt. Default is 0, which means there won't be other attempts.
- distribution.batch – If set to true, the destination will try to distribute each time every waiting message, regardless of distribution errors. This can lead to the loss of message ordering, but will prevent a blocking message from blocking every following message. When set to false, the distribution process will stop on the first error. Default is false.
- distribution.async - If set to true, the messages are asynchronously forwarded through a daemon.
- amqp.ConnectionUpdatePeriod - Period between two update phases allowing the discovering of new Connections. Default value is 5000.
- amqp.Queue.DeclarePassive – If true declare a queue passively; i.e., check if it exists but do not create it. If false the queue is created if it does not exist. Default value is true.
- amqp.Queue.DeclareExclusive – If true we are declaring an exclusive queue (restricted to this connection). Default value is false.
- amqp.Queue.DeclareDurable – If true we are declaring a durable queue (the queue will survive a server restart). Default value is true.
- amqp.Queue.DeclareAutoDelete – If true we are declaring an “autodelete” queue (server will delete it when no longer in use). Default value is false.
- amqp.Routing - This property allows to filter the connections used to forward the messages. It can be set either globally at creation or specifically for a message at sending.
Be careful this method use the static AdminModule connection.
- Parameters:
serverId- The identifier of the server where deploying the queue.name- The name of the created queue.dest- The name of the foreign destination.props- A Properties object containing all needed parameters.- Returns:
- the created bridge destination.
- Throws:
ConnectException- If the administration connection is closed or broken.AdminException- If the request fails.
-
-