com.alibaba.rocketmq.common.admin.RollbackStats Java Examples
The following examples show how to use
com.alibaba.rocketmq.common.admin.RollbackStats.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ResetOffsetByTimeOldCommand.java From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 | 5 votes |
public static void resetOffset(DefaultMQAdminExt defaultMQAdminExt, String consumerGroup, String topic, long timestamp, boolean force, String timeStampStr) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { List<RollbackStats> rollbackStatsList = defaultMQAdminExt.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); System.out .printf( "rollback consumer offset by specified consumerGroup[%s], topic[%s], force[%s], timestamp(string)[%s], timestamp(long)[%s]\n", consumerGroup, topic, force, timeStampStr, timestamp); System.out.printf("%-20s %-20s %-20s %-20s %-20s %-20s\n",// "#brokerName",// "#queueId",// "#brokerOffset",// "#consumerOffset",// "#timestampOffset",// "#rollbackOffset" // ); for (RollbackStats rollbackStats : rollbackStatsList) { System.out.printf("%-20s %-20d %-20d %-20d %-20d %-20d\n",// UtilAll.frontStringAtLeast(rollbackStats.getBrokerName(), 32),// rollbackStats.getQueueId(),// rollbackStats.getBrokerOffset(),// rollbackStats.getConsumerOffset(),// rollbackStats.getTimestampOffset(),// rollbackStats.getRollbackOffset() // ); } }
Example #2
Source File: ResetOffsetByTimeOldCommand.java From rocketmq with Apache License 2.0 | 5 votes |
public static void resetOffset(DefaultMQAdminExt defaultMQAdminExt, String consumerGroup, String topic, long timestamp, boolean force, String timeStampStr) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { List<RollbackStats> rollbackStatsList = defaultMQAdminExt.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); System.out.printf( "rollback consumer offset by specified consumerGroup[%s], topic[%s], force[%s], timestamp(string)[%s], timestamp(long)[%s]%n", consumerGroup, topic, force, timeStampStr, timestamp); System.out.printf("%-20s %-20s %-20s %-20s %-20s %-20s%n",// "#brokerName",// "#queueId",// "#brokerOffset",// "#consumerOffset",// "#timestampOffset",// "#rollbackOffset" // ); for (RollbackStats rollbackStats : rollbackStatsList) { System.out.printf("%-20s %-20d %-20d %-20d %-20d %-20d%n",// UtilAll.frontStringAtLeast(rollbackStats.getBrokerName(), 32),// rollbackStats.getQueueId(),// rollbackStats.getBrokerOffset(),// rollbackStats.getConsumerOffset(),// rollbackStats.getTimestampOffset(),// rollbackStats.getRollbackOffset() // ); } }
Example #3
Source File: ResetOffsetByTimeOldCommand.java From RocketMQ-Master-analyze with Apache License 2.0 | 5 votes |
public static void resetOffset(DefaultMQAdminExt defaultMQAdminExt, String consumerGroup, String topic, long timestamp, boolean force, String timeStampStr) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { List<RollbackStats> rollbackStatsList = defaultMQAdminExt.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); System.out .printf( "rollback consumer offset by specified consumerGroup[%s], topic[%s], force[%s], timestamp(string)" + "[%s], timestamp(long)[%s]\n", consumerGroup, topic, force, timeStampStr, timestamp); System.out.printf("%-20s %-20s %-20s %-20s %-20s %-20s\n", // "#brokerName", // "#queueId", // "#brokerOffset", // "#consumerOffset", // "#timestampOffset", // "#rollbackOffset" // ); for (RollbackStats rollbackStats : rollbackStatsList) { System.out.printf("%-20s %-20d %-20d %-20d %-20d %-20d\n", // UtilAll.frontStringAtLeast(rollbackStats.getBrokerName(), 32), // rollbackStats.getQueueId(), // rollbackStats.getBrokerOffset(), // rollbackStats.getConsumerOffset(), // rollbackStats.getTimestampOffset(), // rollbackStats.getRollbackOffset() // ); } }
Example #4
Source File: DefaultMQAdminExt.java From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 | 4 votes |
public List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { return defaultMQAdminExtImpl.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); }
Example #5
Source File: MQAdminExt.java From reading-and-annotate-rocketmq-3.4.6 with GNU General Public License v3.0 | 4 votes |
List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException;
Example #6
Source File: ConsumerGroupRollBackStat.java From rocket-console with Apache License 2.0 | 4 votes |
public List<RollbackStats> getRollbackStatsList() { return rollbackStatsList; }
Example #7
Source File: ConsumerGroupRollBackStat.java From rocket-console with Apache License 2.0 | 4 votes |
public void setRollbackStatsList(List<RollbackStats> rollbackStatsList) { this.rollbackStatsList = rollbackStatsList; }
Example #8
Source File: MQAdminExtImpl.java From rocket-console with Apache License 2.0 | 4 votes |
@Override public List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { return MQAdminInstance.threadLocalMQAdminExt().resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); }
Example #9
Source File: DefaultMQAdminExt.java From rocketmq with Apache License 2.0 | 4 votes |
public List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { return defaultMQAdminExtImpl.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); }
Example #10
Source File: MQAdminExt.java From rocketmq with Apache License 2.0 | 4 votes |
List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException;
Example #11
Source File: DefaultMQAdminExt.java From RocketMQ-Master-analyze with Apache License 2.0 | 4 votes |
public List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { return defaultMQAdminExtImpl.resetOffsetByTimestampOld(consumerGroup, topic, timestamp, force); }
Example #12
Source File: MQAdminExt.java From RocketMQ-Master-analyze with Apache License 2.0 | 2 votes |
/** * 按照时间回溯消费进度(客户端需要重启) * * @param consumerGroup * @param topic * @param timestamp * @param force * @throws RemotingException * @throws MQBrokerException * @throws InterruptedException * @throws MQClientException * @return */ public List<RollbackStats> resetOffsetByTimestampOld(String consumerGroup, String topic, long timestamp, boolean force) throws RemotingException, MQBrokerException, InterruptedException, MQClientException;