RabbitMQ

The RabbitMQ output in ArcGIS Velocity allows you to send messages to an externally accessible RabbitMQ broker. A message is sent to RabbitMQ to each output feature sent to the output.

Learn more about RabbitMQ

Example

以下是输出的使用示例:

An analyst configures a real-time analytic to process and analyze events ingested by a feed and sends the resulting features to a RabbitMQ broker.

Usage note

使用输出时,请谨记以下信息:

The following output data formats are supported:

  • GeoJSON
  • EsriJSON
  • Delimited
  • JSON
  • XML

Parameters

以下是输出的参数:

ParameterDescriptionData type
Host

The host name of the RabbitMQ broker.

字符串

Port

The port on which the RabbitMQ broker is available.

整型

Use SSL

Specifies if SSL is used in the connection.

布尔

Virtual host (optional)

The virtual host of the RabbitMQ broker.

Username (optional)

The username for the RabbitMQ broker.

注:

This parameter is necessary if the RabbitMQ queue specified is secured.

字符串

Password (optional)

The password for the RabbitMQ broker.

注:

This parameter is necessary if the RabbitMQ queue specified is secured.

密码

Exchange name (optional)

The exchange name the RabbitMQ output is connected to. The output can connect to either an exchange or a queue.

If both are specified, the exchange is used.

字符串

Exchange type

Specifies the RabbitMQ AMQP exchange type. Choose one of the following options:

  • None—No defined routing mechanism is selected so messages are not directed to any specific queue.
  • Direct—Routes messages to queues that have a matching routing key.
  • Fanout—Routes messages to all queues bound to the exchange, regardless of the routing keys.
  • Topic—Routes messages to queues based on wildcard matches of routing keys.

字符串

Declare the exchange

Specifies if the exchange is declared. A declared exchange refers to creating and defining an exchange that routes messages to queues based on specific rules. Choose one of the following options:

  • True—The exchange is declared. If the exchange already exists, choose the same exchange type and durability.
  • False—The exchange is not declared; the exchange must already exist.

The default is False.

布尔

Exchange durability

Specifies if the exchange remains after a restart.

布尔

Routing key (optional)

A comma-separated list of keys or topics used to bind a queue to the direct or topic exchange.

字符串

Queue name (optional)

Specifies the queue to which the RabbitMQ output is connected. The output can connect to either an exchange or a queue.

If both are specified, the exchange is used.

字符串

Declare the queue

Specifies if the queue is declared. Choose one of the following options:

  • True—The queue is declared. If the queue already exists, choose the same queue attributes.
  • False—The queue is not declared; it must already exist.

The default is False.

布尔

Queue durability

Specifies if the queue remains after a restart.

布尔

Queue auto-delete

Specifies if the server deletes the queue when no longer in use.

布尔

Queue exclusive

Specifies if the queue is restricted to this connection.

布尔

Output data format

The format for outgoing messages. The following are the supported output data formats:

  • GeoJSON
  • EsriJSON
  • Delimited
  • JSON
  • XML

字符串

Write header row

Specifies whether the files write out the header row with field names. The default is false.

布尔

Field delimiter

The field delimiter used by the file to separate fields. The default is comma (,).

字符串


在本主题中
  1. Example
  2. Usage note
  3. Parameters