public class AMQPDistributionQueue extends Object
AMQPDistributionQueue
class 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.
Modifier and Type | Field and Description |
---|---|
static String |
AMQPDistribution
Class name of handler allowing to distribute messages to a foreign AMQP provider.
|
Constructor and Description |
---|
AMQPDistributionQueue() |
Modifier and Type | Method and Description |
---|---|
static Queue |
create(int serverId,
String dest)
Administration method creating and deploying a AMQP distribution queue on a given server.
|
static Queue |
create(int serverId,
String name,
String dest)
Administration method creating and deploying a AMQP distribution queue on a given server.
|
static Queue |
create(int serverId,
String name,
String dest,
Properties props)
Administration method creating and deploying a AMQP distribution queue on a given server.
|
static Queue |
create(String dest)
Administration method creating and deploying a AMQP distribution queue on the local server.
|
public static final String AMQPDistribution
public static Queue create(String dest) throws ConnectException, AdminException
The request fails if the destination deployment fails server side.
Be careful this method use the static AdminModule connection.
dest
- The name of the foreign destination.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, String, Properties)
public static Queue create(int serverId, String dest) throws ConnectException, AdminException
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.
serverId
- The identifier of the server where deploying the queue.dest
- The name of the foreign destination.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, String, Properties)
public static Queue create(int serverId, String name, String dest) throws ConnectException, AdminException
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.
serverId
- The identifier of the server where deploying the queue.name
- The name of the created queue.dest
- The name of the foreign destination.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.create(int, String, String, Properties)
public static Queue create(int serverId, String name, String dest, Properties props) throws ConnectException, AdminException
A set of properties is used to configure the distribution destination:
Be careful this method use the static AdminModule connection.
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.ConnectException
- If the administration connection is closed or broken.AdminException
- If the request fails.Copyright © 2013 ScalAgent D.T.. All Rights Reserved.