|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface MQAdminExt
MQ管理类接口,涉及所有与MQ管理相关的对外接口
包括Topic创建、订阅组创建、配置修改等
| 方法摘要 | |
|---|---|
boolean |
cleanExpiredConsumerQueue(String cluster)
触发清理失效的消费队列 |
boolean |
cleanExpiredConsumerQueueByAddr(String addr)
触发指定的broker清理失效的消费队列 |
void |
cloneGroupOffset(String srcGroup,
String destGroup,
String topic,
boolean isOffline)
克隆某一个组的消费进度到新的组 |
ConsumeMessageDirectlyResult |
consumeMessageDirectly(String consumerGroup,
String clientId,
String msgId)
向指定Consumer发送某条消息 |
void |
createAndUpdateKvConfig(String namespace,
String key,
String value)
在 namespace 上添加或者更新 KV 配置 |
void |
createAndUpdateSubscriptionGroupConfig(String addr,
SubscriptionGroupConfig config)
向指定Broker创建或者更新订阅组配置 |
void |
createAndUpdateTopicConfig(String addr,
TopicConfig config)
向指定Broker创建或者更新Topic配置 |
void |
createOrUpdateOrderConf(String key,
String value,
boolean isCluster)
创建或更新顺序消息的分区配置 |
void |
deleteIpsByProjectGroup(String key)
删除 project group 对应的所有 server ip |
void |
deleteKvConfig(String namespace,
String key)
删除 namespace 上的 KV 配置 |
void |
deleteSubscriptionGroup(String addr,
String groupName)
删除 broker 上的 subscription group 信息 |
void |
deleteTopicInBroker(Set<String> addrs,
String topic)
删除 broker 上的 topic 信息 |
void |
deleteTopicInNameServer(Set<String> addrs,
String topic)
删除 broker 上的 topic 信息 |
ClusterInfo |
examineBrokerClusterInfo()
查看集群信息 |
ConsumerConnection |
examineConsumerConnectionInfo(String consumerGroup)
查看Consumer网络连接、订阅关系 |
ConsumeStats |
examineConsumeStats(String consumerGroup)
查询消费进度 |
ConsumeStats |
examineConsumeStats(String consumerGroup,
String topic)
|
ProducerConnection |
examineProducerConnectionInfo(String producerGroup,
String topic)
查看Producer网络连接 |
SubscriptionGroupConfig |
examineSubscriptionGroupConfig(String addr,
String group)
查询指定Broker的订阅组配置 |
TopicConfig |
examineTopicConfig(String addr,
String topic)
查询指定Broker的Topic配置 |
TopicRouteData |
examineTopicRouteInfo(String topic)
查看Topic路由信息 |
TopicStatsTable |
examineTopicStats(String topic)
查询Topic Offset信息 |
TopicList |
fetchAllTopicList()
从Name Server获取所有Topic列表 |
KVTable |
fetchBrokerRuntimeStats(String brokerAddr)
获取Broker运行时数据 |
ConsumerRunningInfo |
getConsumerRunningInfo(String consumerGroup,
String clientId,
boolean jstack)
查询Consumer内存数据结构 |
Map<String,Map<MessageQueue,Long>> |
getConsumeStatus(String topic,
String group,
String clientAddr)
通过客户端查看消费者的消费情况 |
String |
getIpsByProjectGroup(String projectGroup)
通过 project 获取所有的 server ip 信息 |
String |
getKVConfig(String namespace,
String key)
从Name Server获取一个配置项 |
KVTable |
getKVListByNamespace(String namespace)
获取指定Namespace下的所有kv |
List<String> |
getNameServerAddressList()
获取Name Server地址列表 |
String |
getProjectGroupByIp(String ip)
通过 server ip 获取 project 信息 |
List<MessageTrack> |
messageTrackDetail(MessageExt msg)
查询消息被谁消费了 |
void |
putKVConfig(String namespace,
String key,
String value)
向Name Server增加一个配置项 |
Set<QueueTimeSpan> |
queryConsumeTimeSpan(String topic,
String group)
根据 topic 和 group 获取消息的时间跨度 |
GroupList |
queryTopicConsumeByWho(String topic)
根据Topic查询被哪些订阅组消费 |
Map<MessageQueue,Long> |
resetOffsetByTimestamp(String topic,
String group,
long timestamp,
boolean isForce)
按照时间回溯消费进度(客户端不需要重启) |
List<RollbackStats> |
resetOffsetByTimestampOld(String consumerGroup,
String topic,
long timestamp,
boolean force)
按照时间回溯消费进度(客户端需要重启) |
void |
resetOffsetNew(String consumerGroup,
String topic,
long timestamp)
重置消费进度,无论Consumer是否在线,都可以执行。 |
void |
shutdown()
|
void |
start()
|
void |
updateBrokerConfig(String brokerAddr,
Properties properties)
更新Broker配置 |
BrokerStatsData |
ViewBrokerStatsData(String brokerAddr,
String statsName,
String statsKey)
服务器统计数据输出 |
int |
wipeWritePermOfBroker(String namesrvAddr,
String brokerName)
清除某个Broker的写权限,针对所有Name Server |
| 从接口 com.alibaba.rocketmq.client.MQAdmin 继承的方法 |
|---|
createTopic, createTopic, earliestMsgStoreTime, maxOffset, minOffset, queryMessage, searchOffset, viewMessage |
| 方法详细信息 |
|---|
void start()
throws MQClientException
MQClientExceptionvoid shutdown()
void updateBrokerConfig(String brokerAddr,
Properties properties)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
UnsupportedEncodingException,
InterruptedException,
MQBrokerException
brokerAddr - properties -
MQBrokerException
InterruptedException
UnsupportedEncodingException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
void createAndUpdateTopicConfig(String addr,
TopicConfig config)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
addr - config -
MQClientException
InterruptedException
MQBrokerException
RemotingException
void createAndUpdateSubscriptionGroupConfig(String addr,
SubscriptionGroupConfig config)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
addr - config -
MQClientException
InterruptedException
MQBrokerException
RemotingException
SubscriptionGroupConfig examineSubscriptionGroupConfig(String addr,
String group)
addr - group -
TopicConfig examineTopicConfig(String addr,
String topic)
addr - topic -
TopicStatsTable examineTopicStats(String topic)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
topic -
RemotingException
MQClientException
InterruptedException
MQBrokerException
TopicList fetchAllTopicList()
throws RemotingException,
MQClientException,
InterruptedException
InterruptedException
MQClientException
RemotingException
KVTable fetchBrokerRuntimeStats(String brokerAddr)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
InterruptedException,
MQBrokerException
MQBrokerException
InterruptedException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
ConsumeStats examineConsumeStats(String consumerGroup)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
consumerGroup -
InterruptedException
MQClientException
RemotingException
MQBrokerException
ConsumeStats examineConsumeStats(String consumerGroup,
String topic)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
RemotingException
MQClientException
InterruptedException
MQBrokerException
ClusterInfo examineBrokerClusterInfo()
throws InterruptedException,
MQBrokerException,
RemotingTimeoutException,
RemotingSendRequestException,
RemotingConnectException
InterruptedException
MQBrokerException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
TopicRouteData examineTopicRouteInfo(String topic)
throws RemotingException,
MQClientException,
InterruptedException
topic -
RemotingException
MQClientException
InterruptedException
ConsumerConnection examineConsumerConnectionInfo(String consumerGroup)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
InterruptedException,
MQBrokerException,
RemotingException,
MQClientException
consumerGroup -
MQBrokerException
InterruptedException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
MQClientException
RemotingException
ProducerConnection examineProducerConnectionInfo(String producerGroup,
String topic)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
producerGroup - topic -
InterruptedException
MQClientException
RemotingException
MQBrokerExceptionList<String> getNameServerAddressList()
int wipeWritePermOfBroker(String namesrvAddr,
String brokerName)
throws RemotingCommandException,
RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
InterruptedException,
MQClientException
brokerName -
MQClientException
InterruptedException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
RemotingCommandException
void putKVConfig(String namespace,
String key,
String value)
namespace - key - value -
String getKVConfig(String namespace,
String key)
throws RemotingException,
MQClientException,
InterruptedException
namespace - key -
RemotingException
MQClientException
InterruptedException
KVTable getKVListByNamespace(String namespace)
throws RemotingException,
MQClientException,
InterruptedException
namespace -
InterruptedException
MQClientException
RemotingException
void deleteTopicInBroker(Set<String> addrs,
String topic)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
addrs - topic -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void deleteTopicInNameServer(Set<String> addrs,
String topic)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
addrs - topic -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void deleteSubscriptionGroup(String addr,
String groupName)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
addr - groupName -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void createAndUpdateKvConfig(String namespace,
String key,
String value)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
namespace - key - value -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void deleteKvConfig(String namespace,
String key)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
namespace - key -
RemotingException
MQBrokerException
InterruptedException
MQClientException
String getProjectGroupByIp(String ip)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
ip -
RemotingException
MQBrokerException
InterruptedException
MQClientException
String getIpsByProjectGroup(String projectGroup)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
projectGroup -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void deleteIpsByProjectGroup(String key)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
key -
RemotingException
MQBrokerException
InterruptedException
MQClientException
List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup,
String topic,
long timestamp,
boolean force)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
consumerGroup - topic - timestamp - force -
RemotingException
MQBrokerException
InterruptedException
MQClientException
Map<MessageQueue,Long> resetOffsetByTimestamp(String topic,
String group,
long timestamp,
boolean isForce)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
topic - group - timestamp - isForce -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void resetOffsetNew(String consumerGroup,
String topic,
long timestamp)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
consumerGroup - topic - timestamp -
InterruptedException
MQBrokerException
RemotingException
MQClientException
Map<String,Map<MessageQueue,Long>> getConsumeStatus(String topic,
String group,
String clientAddr)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
topic - group - clientAddr -
RemotingException
MQBrokerException
InterruptedException
MQClientException
void createOrUpdateOrderConf(String key,
String value,
boolean isCluster)
throws RemotingException,
MQBrokerException,
InterruptedException,
MQClientException
key - value - isCluster -
RemotingException
MQBrokerException
InterruptedException
MQClientException
GroupList queryTopicConsumeByWho(String topic)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
InterruptedException,
MQBrokerException,
RemotingException,
MQClientException
topic -
MQBrokerException
InterruptedException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
MQClientException
RemotingException
Set<QueueTimeSpan> queryConsumeTimeSpan(String topic,
String group)
throws InterruptedException,
MQBrokerException,
RemotingException,
MQClientException
topic - group -
RemotingConnectException
RemotingSendRequestException
RemotingTimeoutException
InterruptedException
MQBrokerException
RemotingException
MQClientException
boolean cleanExpiredConsumerQueue(String cluster)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
MQClientException,
InterruptedException
cluster - null则表示所有集群
RemotingConnectException
RemotingSendRequestException
RemotingTimeoutException
MQClientException
InterruptedException
boolean cleanExpiredConsumerQueueByAddr(String addr)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
MQClientException,
InterruptedException
addr -
RemotingConnectException
RemotingSendRequestException
RemotingTimeoutException
MQClientException
InterruptedException
ConsumerRunningInfo getConsumerRunningInfo(String consumerGroup,
String clientId,
boolean jstack)
throws RemotingException,
MQClientException,
InterruptedException
consumerGroup - clientId -
InterruptedException
MQClientException
RemotingException
ConsumeMessageDirectlyResult consumeMessageDirectly(String consumerGroup,
String clientId,
String msgId)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
consumerGroup - clientId - msgId -
InterruptedException
MQClientException
RemotingException
MQBrokerException
List<MessageTrack> messageTrackDetail(MessageExt msg)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
msg -
RemotingException
MQClientException
InterruptedException
MQBrokerException
void cloneGroupOffset(String srcGroup,
String destGroup,
String topic,
boolean isOffline)
throws RemotingException,
MQClientException,
InterruptedException,
MQBrokerException
srcGroup - destGroup - topic - isOffline -
RemotingException
MQClientException
InterruptedException
MQBrokerException
BrokerStatsData ViewBrokerStatsData(String brokerAddr,
String statsName,
String statsKey)
throws RemotingConnectException,
RemotingSendRequestException,
RemotingTimeoutException,
MQClientException,
InterruptedException
statsName - statsKey -
InterruptedException
MQClientException
RemotingTimeoutException
RemotingSendRequestException
RemotingConnectException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||