org.apache.rocketmq.common.admin.OffsetWrapper
offsetWrapper的信息:
private long brokerOffset;
private long consumerOffset;
private long lastTimestamp;
broker的进度,消费者consumer的进度和上次更新的时间戳
@Override
public ClusterInfo examineBrokerClusterInfo() throws InterruptedException, RemotingConnectException, RemotingTimeoutException,
RemotingSendRequestException, MQBrokerException {
return defaultMQAdminExtImpl.examineBrokerClusterInfo();
}
@Override
public TopicRouteData examineTopicRouteInfo(
String topic) throws RemotingException, MQClientException, InterruptedException {
return defaultMQAdminExtImpl.examineTopicRouteInfo(topic);
}
@Override
public ConsumerConnection examineConsumerConnectionInfo(
String consumerGroup) throws InterruptedException, MQBrokerException,
RemotingException, MQClientException {
return defaultMQAdminExtImpl.examineConsumerConnectionInfo(consumerGroup);
}
检查broker集群信息、检查topic路由信息、检查消费者连接信息
看下集群信息 ClusterInfo是什么
org.apache.rocketmq.common.protocol.body.ClusterInfo
看下一向神秘的rocketmq集群是啥:
public class ClusterInfo extends RemotingSerializable {
private HashMap<String/* brokerName */, BrokerData> brokerAddrTable;
private HashMap<String/* clusterName */, Set<String/* brokerName */>> clusterAddrTable;
一个断路器名brokerName与断路器数据BrokerData的表
一个集群名clusterName与断路器名brokerName的表
其实还是一个集群名对应多个broker 然后broker对应自己的数据