feat(rabbitmq): add message queue management support
This commit is contained in:
@@ -17,7 +17,7 @@ description: 了解 DBX 可以连接哪些数据库,以及每类高级功能
|
||||
| PostgreSQL 兼容类型 | openGauss、KingBase、HighGo、Vastbase、CockroachDB、自定义 PostgreSQL | 复用 PostgreSQL 风格连接能力 |
|
||||
| 文件型数据库 | SQLite、DuckDB、Microsoft Access、RQLite、Turso | 选择本地数据库文件或 HTTP 端点,不填写主机和端口 |
|
||||
| 时序与边缘数据库 | Cloudflare D1、InfluxDB、IoTDB、TDengine、Databend、QuestDB | 托管 SQLite、时序、IoT 或边缘场景 |
|
||||
| 分析与消息服务 | Apache Spark、Dremio、Apache Pulsar、Apache Kafka | 用于分布式分析、消息和流管理场景 |
|
||||
| 分析与消息服务 | Apache Spark、Dremio、Apache Pulsar、Apache Kafka、Apache RocketMQ、RabbitMQ | 用于分布式分析、消息和流管理场景 |
|
||||
| Agent/JDBC 扩展类型 | H2、Snowflake、Trino、PrestoSQL、Hive、DB2、Informix、Neo4j、Cassandra、BigQuery、Kylin、SunDB、OSCAR、XuguDB、Databricks、IRIS、JDBC | 功能覆盖取决于对应驱动路径 |
|
||||
|
||||
## 默认端口
|
||||
@@ -83,6 +83,8 @@ description: 了解 DBX 可以连接哪些数据库,以及每类高级功能
|
||||
| QuestDB | 8812 |
|
||||
| Apache Pulsar Admin API | 8080 |
|
||||
| Apache Kafka | 9092 |
|
||||
| Apache RocketMQ NameServer | 9876 |
|
||||
| RabbitMQ AMQP | 5672 |
|
||||
|
||||
<Callout type="info">SQLite、DuckDB、Access 和 JDBC 在不需要网络端口时,会在连接模型中保存为端口 `0`。</Callout>
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ The connection dialog exposes ready-to-use profiles with default ports and drive
|
||||
| PostgreSQL-compatible profiles | openGauss, KingBase, HighGo, Vastbase, CockroachDB, custom PostgreSQL | Reuse PostgreSQL-style connection handling where the engine speaks a compatible protocol |
|
||||
| File-based engines | SQLite, DuckDB, Microsoft Access, RQLite, Turso | Choose a local database file or HTTP endpoint instead of host and port |
|
||||
| Time-series and edge | Cloudflare D1, InfluxDB, IoTDB, TDengine, Databend, QuestDB | Managed SQLite, time-series, IoT, or edge workloads |
|
||||
| Analytics and messaging services | Apache Spark, Dremio, Apache Pulsar, Apache Kafka, Apache RocketMQ | Distributed analytics, messaging, and stream-management workloads |
|
||||
| Analytics and messaging services | Apache Spark, Dremio, Apache Pulsar, Apache Kafka, Apache RocketMQ, RabbitMQ | Distributed analytics, messaging, and stream-management workloads |
|
||||
| Agent/JDBC-oriented engines | H2, Snowflake, Trino, PrestoSQL, Hive, DB2, Informix, Neo4j, Cassandra, BigQuery, Kylin, SunDB, OSCAR, XuguDB, Databricks, IRIS, JDBC | Feature coverage depends on the driver path used by that engine |
|
||||
|
||||
## Default Ports
|
||||
@@ -84,6 +84,7 @@ The connection dialog exposes ready-to-use profiles with default ports and drive
|
||||
| Apache Pulsar Admin API | 8080 |
|
||||
| Apache Kafka | 9092 |
|
||||
| Apache RocketMQ NameServer | 9876 |
|
||||
| RabbitMQ AMQP | 5672 |
|
||||
|
||||
<Callout type="info">SQLite, DuckDB, Access, and JDBC profiles use port `0` in the saved connection model when a network port is not part of the connection.</Callout>
|
||||
|
||||
|
||||
+36
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## 概述
|
||||
|
||||
该功能为 DBX 增加了消息队列(Message Queue)管理能力,支持 **Apache Pulsar**、**Apache Kafka** 与 **Apache RocketMQ**。三种系统在连接对话框中为独立顶层入口;控制台复用 `MqAdminConsole` 壳层,按 `systemKind` 与 capabilities 展示可用面板。
|
||||
该功能为 DBX 增加了消息队列(Message Queue)管理能力,支持 **Apache Pulsar**、**Apache Kafka**、**Apache RocketMQ** 与 **RabbitMQ**。四种系统在连接对话框中为独立顶层入口;控制台复用 `MqAdminConsole` 壳层,按 `systemKind` 与 capabilities 展示可用面板。
|
||||
|
||||
## 功能特性
|
||||
|
||||
@@ -421,6 +421,41 @@ docker run -d --name dbx-rocketmq-broker -p 10911:10911 \
|
||||
apache/rocketmq:5.3.1 sh mqbroker -n host.docker.internal:9876
|
||||
```
|
||||
|
||||
### RabbitMQ 连接示例
|
||||
|
||||
```json
|
||||
{
|
||||
"db_type": "mq",
|
||||
"driver_profile": "rabbitmq",
|
||||
"driver_label": "RabbitMQ",
|
||||
"external_config": {
|
||||
"systemKind": "rabbitmq",
|
||||
"adminUrl": "",
|
||||
"auth": { "kind": "basic", "username": "guest", "password": "guest" },
|
||||
"extra": {
|
||||
"addresses": "127.0.0.1:5672",
|
||||
"virtualHost": "/"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Agent 构建与安装:
|
||||
|
||||
```bash
|
||||
cd agents
|
||||
./gradlew :rabbitmq:shadowJar
|
||||
# 将 shadow JAR 安装到 DBX 数据目录 agents/drivers/rabbitmq/agent.jar
|
||||
```
|
||||
|
||||
Docker 快速启动(AMQP 5672 + Management 15672,仅用于本地验证):
|
||||
|
||||
```bash
|
||||
docker run -d --name dbx-rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3-management
|
||||
```
|
||||
|
||||
说明:RabbitMQ 适配器将 topic 映射为队列(queue),支持队列列表/声明/删除、清空队列(purge)、消费者列表、消息预览(basic.get + requeue)与发送(basic.publish);vhost 映射为 namespace,可在控制台查看/创建/删除。AMQP 操作按 vhost 透传(agent 侧 per-vhost 通道缓存),tenant 语义不适用(固定合成 `_rabbitmq`)。
|
||||
|
||||
### Kafka 适配器参考
|
||||
|
||||
1. 实现 `MessageQueueAdmin` trait:
|
||||
|
||||
Reference in New Issue
Block a user