forked from chenld/RocketMQ
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53bd2c7
commit 9e91d72
Showing
16 changed files
with
274 additions
and
149 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
|
||
/** | ||
* 所有运维接口都在这里实现 | ||
* | ||
* | ||
* @author shijia.wxr<[email protected]> | ||
* @since 2013-7-14 | ||
*/ | ||
|
@@ -49,113 +49,140 @@ public DefaultMQAdminExt(final String adminExtGroup) { | |
this.adminExtGroup = adminExtGroup; | ||
} | ||
|
||
|
||
@Override | ||
public void createTopic(String key, String newTopic, int queueNum) throws MQClientException { | ||
defaultMQAdminExtImpl.createTopic(key, newTopic, queueNum); | ||
} | ||
|
||
|
||
@Override | ||
public long searchOffset(MessageQueue mq, long timestamp) throws MQClientException { | ||
return defaultMQAdminExtImpl.searchOffset(mq, timestamp); | ||
} | ||
|
||
|
||
@Override | ||
public long maxOffset(MessageQueue mq) throws MQClientException { | ||
return defaultMQAdminExtImpl.maxOffset(mq); | ||
} | ||
|
||
|
||
@Override | ||
public long minOffset(MessageQueue mq) throws MQClientException { | ||
return defaultMQAdminExtImpl.minOffset(mq); | ||
} | ||
|
||
|
||
@Override | ||
public long earliestMsgStoreTime(MessageQueue mq) throws MQClientException { | ||
return defaultMQAdminExtImpl.earliestMsgStoreTime(mq); | ||
} | ||
|
||
|
||
@Override | ||
public MessageExt viewMessage(String msgId) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { | ||
public MessageExt viewMessage(String msgId) throws RemotingException, MQBrokerException, | ||
InterruptedException, MQClientException { | ||
return defaultMQAdminExtImpl.viewMessage(msgId); | ||
} | ||
|
||
|
||
@Override | ||
public QueryResult queryMessage(String topic, String key, int maxNum, long begin, long end) throws MQClientException, InterruptedException { | ||
public QueryResult queryMessage(String topic, String key, int maxNum, long begin, long end) | ||
throws MQClientException, InterruptedException { | ||
return defaultMQAdminExtImpl.queryMessage(topic, key, maxNum, begin, end); | ||
} | ||
|
||
|
||
@Override | ||
public void start() throws MQClientException { | ||
defaultMQAdminExtImpl.start(); | ||
} | ||
|
||
|
||
@Override | ||
public void shutdown() { | ||
defaultMQAdminExtImpl.shutdown(); | ||
} | ||
|
||
|
||
@Override | ||
public void createAndUpdateTopicConfigByCluster(String cluster, TopicConfig config) { | ||
defaultMQAdminExtImpl.createAndUpdateTopicConfigByCluster(cluster, config); | ||
} | ||
|
||
|
||
@Override | ||
public void createAndUpdateTopicConfigByAddr(String addr, TopicConfig config) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { | ||
public void createAndUpdateTopicConfigByAddr(String addr, TopicConfig config) throws RemotingException, | ||
MQBrokerException, InterruptedException, MQClientException { | ||
defaultMQAdminExtImpl.createAndUpdateTopicConfigByAddr(addr, config); | ||
} | ||
|
||
|
||
@Override | ||
public void createAndUpdateSubscriptionGroupConfigByCluster(String cluster, SubscriptionGroupConfig config) { | ||
defaultMQAdminExtImpl.createAndUpdateSubscriptionGroupConfigByCluster(cluster, config); | ||
} | ||
|
||
|
||
@Override | ||
public void createAndUpdateSubscriptionGroupConfigByAddr(String addr, SubscriptionGroupConfig config) throws RemotingException, MQBrokerException, InterruptedException, MQClientException { | ||
public void createAndUpdateSubscriptionGroupConfigByAddr(String addr, SubscriptionGroupConfig config) | ||
throws RemotingException, MQBrokerException, InterruptedException, MQClientException { | ||
defaultMQAdminExtImpl.createAndUpdateSubscriptionGroupConfigByAddr(addr, config); | ||
} | ||
|
||
|
||
@Override | ||
public SubscriptionGroupConfig examineSubscriptionGroupConfig(String addr, String group) { | ||
return defaultMQAdminExtImpl.examineSubscriptionGroupConfig(addr, group); | ||
} | ||
|
||
|
||
@Override | ||
public TopicConfig examineTopicConfig(String addr, String topic) { | ||
return defaultMQAdminExtImpl.examineTopicConfig(addr, topic); | ||
} | ||
|
||
|
||
@Override | ||
public TopicOffsetTable examineTopicOffset(String topic) { | ||
return defaultMQAdminExtImpl.examineTopicOffset(topic); | ||
} | ||
|
||
|
||
@Override | ||
public ConsumerProgress examineConsumerProgress(String consumerGroup, String topic) { | ||
return defaultMQAdminExtImpl.examineConsumerProgress(consumerGroup, topic); | ||
} | ||
|
||
|
||
@Override | ||
public void putKVConfig(String namespace, String key, String value) { | ||
defaultMQAdminExtImpl.putKVConfig(namespace, key, value); | ||
} | ||
|
||
|
||
@Override | ||
public String getKVConfig(String namespace, String key) { | ||
return defaultMQAdminExtImpl.getKVConfig(namespace, key); | ||
} | ||
|
||
|
||
public String getAdminExtGroup() { | ||
return adminExtGroup; | ||
} | ||
|
||
|
||
public void setAdminExtGroup(String adminExtGroup) { | ||
this.adminExtGroup = adminExtGroup; | ||
} | ||
|
||
|
||
public String getCreateTopicKey() { | ||
return createTopicKey; | ||
} | ||
|
||
|
||
public void setCreateTopicKey(String createTopicKey) { | ||
this.createTopicKey = createTopicKey; | ||
} | ||
|
Oops, something went wrong.