1use std::collections::HashMap;
16use std::collections::HashSet;
17
18use cheetah_string::CheetahString;
19use rocketmq_common::common::base::plain_access_config::PlainAccessConfig;
20use rocketmq_common::common::config::TopicConfig;
21use rocketmq_common::common::message::message_enum::MessageRequestMode;
22use rocketmq_common::common::message::message_queue::MessageQueue;
23use rocketmq_remoting::protocol::admin::consume_stats::ConsumeStats;
24use rocketmq_remoting::protocol::admin::topic_stats_table::TopicStatsTable;
25use rocketmq_remoting::protocol::body::broker_body::cluster_info::ClusterInfo;
26use rocketmq_remoting::protocol::body::consume_message_directly_result::ConsumeMessageDirectlyResult;
27use rocketmq_remoting::protocol::body::consumer_connection::ConsumerConnection;
28use rocketmq_remoting::protocol::body::consumer_running_info::ConsumerRunningInfo;
29use rocketmq_remoting::protocol::body::group_list::GroupList;
30use rocketmq_remoting::protocol::body::kv_table::KVTable;
31use rocketmq_remoting::protocol::body::producer_connection::ProducerConnection;
32use rocketmq_remoting::protocol::body::subscription_group_wrapper::SubscriptionGroupWrapper;
33use rocketmq_remoting::protocol::body::topic::topic_list::TopicList;
34use rocketmq_remoting::protocol::body::topic_info_wrapper::TopicConfigSerializeWrapper;
35use rocketmq_remoting::protocol::heartbeat::subscription_data::SubscriptionData;
36use rocketmq_remoting::protocol::route::topic_route_data::TopicRouteData;
37use rocketmq_remoting::protocol::static_topic::topic_queue_mapping_detail::TopicQueueMappingDetail;
38use rocketmq_remoting::protocol::subscription::subscription_group_config::SubscriptionGroupConfig;
39use rocketmq_rust::ArcMut;
40
41use crate::admin::default_mq_admin_ext_impl::DefaultMQAdminExtImpl;
42use crate::common::admin_tool_result::AdminToolResult;
43
44#[derive(Clone)]
45pub struct MQAdminExtInnerImpl {
46 pub(crate) inner: ArcMut<DefaultMQAdminExtImpl>,
47}
48
49impl MQAdminExtInnerImpl {
50 async fn add_broker_to_container(
51 &self,
52 broker_container_addr: CheetahString,
53 broker_config: CheetahString,
54 ) -> rocketmq_error::RocketMQResult<()> {
55 unimplemented!()
56 }
57
58 async fn remove_broker_from_container(
59 &self,
60 broker_container_addr: CheetahString,
61 cluster_name: CheetahString,
62 broker_name: CheetahString,
63 broker_id: u64,
64 ) -> rocketmq_error::RocketMQResult<()> {
65 unimplemented!()
66 }
67
68 async fn update_broker_config(
69 &self,
70 broker_addr: CheetahString,
71 properties: HashMap<CheetahString, CheetahString>,
72 ) -> rocketmq_error::RocketMQResult<()> {
73 unimplemented!()
74 }
75
76 async fn get_broker_config(
77 &self,
78 broker_addr: CheetahString,
79 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, CheetahString>> {
80 unimplemented!()
81 }
82
83 async fn create_and_update_topic_config(
84 &self,
85 addr: CheetahString,
86 config: TopicConfig,
87 ) -> rocketmq_error::RocketMQResult<()> {
88 unimplemented!()
89 }
90
91 async fn create_and_update_topic_config_list(
92 &self,
93 addr: CheetahString,
94 topic_config_list: Vec<TopicConfig>,
95 ) -> rocketmq_error::RocketMQResult<()> {
96 unimplemented!()
97 }
98
99 async fn create_and_update_plain_access_config(
100 &self,
101 addr: CheetahString,
102 config: PlainAccessConfig,
103 ) -> rocketmq_error::RocketMQResult<()> {
104 unimplemented!()
105 }
106
107 async fn delete_plain_access_config(
108 &self,
109 addr: CheetahString,
110 access_key: CheetahString,
111 ) -> rocketmq_error::RocketMQResult<()> {
112 unimplemented!()
113 }
114
115 async fn update_global_white_addr_config(
116 &self,
117 addr: CheetahString,
118 global_white_addrs: CheetahString,
119 acl_file_full_path: Option<CheetahString>,
120 ) -> rocketmq_error::RocketMQResult<()> {
121 unimplemented!()
122 }
123
124 async fn examine_broker_cluster_acl_version_info(
125 &self,
126 addr: CheetahString,
127 ) -> rocketmq_error::RocketMQResult<CheetahString> {
128 unimplemented!()
129 }
130
131 async fn create_and_update_subscription_group_config(
132 &self,
133 addr: CheetahString,
134 config: SubscriptionGroupConfig,
135 ) -> rocketmq_error::RocketMQResult<()> {
136 unimplemented!()
137 }
138
139 async fn create_and_update_subscription_group_config_list(
140 &self,
141 broker_addr: CheetahString,
142 configs: Vec<SubscriptionGroupConfig>,
143 ) -> rocketmq_error::RocketMQResult<()> {
144 unimplemented!()
145 }
146
147 async fn examine_subscription_group_config(
148 &self,
149 addr: CheetahString,
150 group: CheetahString,
151 ) -> rocketmq_error::RocketMQResult<SubscriptionGroupConfig> {
152 unimplemented!()
153 }
154
155 async fn examine_topic_stats(
156 &self,
157 topic: CheetahString,
158 broker_addr: Option<CheetahString>,
159 ) -> rocketmq_error::RocketMQResult<TopicStatsTable> {
160 unimplemented!()
161 }
162
163 async fn examine_topic_stats_concurrent(&self, topic: CheetahString) -> AdminToolResult<TopicStatsTable> {
164 unimplemented!()
165 }
166
167 async fn fetch_all_topic_list(&self) -> rocketmq_error::RocketMQResult<TopicList> {
168 unimplemented!()
169 }
170
171 async fn fetch_topics_by_cluster(&self, cluster_name: CheetahString) -> rocketmq_error::RocketMQResult<TopicList> {
172 unimplemented!()
173 }
174
175 async fn fetch_broker_runtime_stats(&self, broker_addr: CheetahString) -> rocketmq_error::RocketMQResult<KVTable> {
176 unimplemented!()
177 }
178
179 async fn examine_consume_stats(
180 &self,
181 consumer_group: CheetahString,
182 topic: Option<CheetahString>,
183 cluster_name: Option<CheetahString>,
184 broker_addr: Option<CheetahString>,
185 timeout_millis: Option<u64>,
186 ) -> rocketmq_error::RocketMQResult<ConsumeStats> {
187 unimplemented!()
188 }
189
190 async fn examine_broker_cluster_info(&self) -> rocketmq_error::RocketMQResult<ClusterInfo> {
191 unimplemented!()
192 }
193
194 async fn examine_topic_route_info(&self, topic: CheetahString) -> rocketmq_error::RocketMQResult<TopicRouteData> {
195 unimplemented!()
196 }
197
198 async fn examine_consumer_connection_info(
199 &self,
200 consumer_group: CheetahString,
201 broker_addr: Option<CheetahString>,
202 ) -> rocketmq_error::RocketMQResult<ConsumerConnection> {
203 unimplemented!()
204 }
205
206 async fn examine_producer_connection_info(
207 &self,
208 producer_group: CheetahString,
209 topic: CheetahString,
210 ) -> rocketmq_error::RocketMQResult<ProducerConnection> {
211 unimplemented!()
212 }
213
214 async fn get_name_server_address_list(&self) -> Vec<CheetahString> {
215 unimplemented!()
216 }
217
218 async fn wipe_write_perm_of_broker(
219 &self,
220 namesrv_addr: CheetahString,
221 broker_name: CheetahString,
222 ) -> rocketmq_error::RocketMQResult<i32> {
223 unimplemented!()
224 }
225
226 async fn add_write_perm_of_broker(
227 &self,
228 namesrv_addr: CheetahString,
229 broker_name: CheetahString,
230 ) -> rocketmq_error::RocketMQResult<i32> {
231 unimplemented!()
232 }
233
234 async fn put_kv_config(&self, namespace: CheetahString, key: CheetahString, value: CheetahString) {
235 unimplemented!()
236 }
237
238 async fn get_kv_config(
239 &self,
240 namespace: CheetahString,
241 key: CheetahString,
242 ) -> rocketmq_error::RocketMQResult<CheetahString> {
243 unimplemented!()
244 }
245
246 async fn get_kv_list_by_namespace(&self, namespace: CheetahString) -> rocketmq_error::RocketMQResult<KVTable> {
247 unimplemented!()
248 }
249
250 async fn delete_topic(
251 &self,
252 topic_name: CheetahString,
253 cluster_name: CheetahString,
254 ) -> rocketmq_error::RocketMQResult<()> {
255 unimplemented!()
256 }
257
258 async fn delete_topic_in_broker(
259 &self,
260 addrs: HashSet<CheetahString>,
261 topic: CheetahString,
262 ) -> rocketmq_error::RocketMQResult<()> {
263 unimplemented!()
264 }
265
266 async fn delete_topic_in_name_server(
273 &self,
274 addrs: HashSet<CheetahString>,
275 cluster_name: Option<CheetahString>,
276 topic: CheetahString,
277 ) -> rocketmq_error::RocketMQResult<()> {
278 unimplemented!()
279 }
280
281 async fn delete_subscription_group(
282 &self,
283 addr: CheetahString,
284 group_name: CheetahString,
285 remove_offset: Option<bool>,
286 ) -> rocketmq_error::RocketMQResult<()> {
287 unimplemented!()
288 }
289
290 async fn create_and_update_kv_config(
291 &self,
292 namespace: CheetahString,
293 key: CheetahString,
294 value: CheetahString,
295 ) -> rocketmq_error::RocketMQResult<()> {
296 unimplemented!()
297 }
298
299 async fn delete_kv_config(
300 &self,
301 namespace: CheetahString,
302 key: CheetahString,
303 ) -> rocketmq_error::RocketMQResult<()> {
304 unimplemented!()
305 }
306
307 async fn reset_offset_by_timestamp(
316 &self,
317 cluster_name: Option<CheetahString>,
318 topic: CheetahString,
319 group: CheetahString,
320 timestamp: u64,
321 is_force: bool,
322 ) -> rocketmq_error::RocketMQResult<HashMap<MessageQueue, u64>> {
323 unimplemented!()
324 }
325
326 async fn reset_offset_new(
327 &self,
328 consumer_group: CheetahString,
329 topic: CheetahString,
330 timestamp: u64,
331 ) -> rocketmq_error::RocketMQResult<()> {
332 unimplemented!()
333 }
334
335 async fn get_consume_status(
343 &self,
344 topic: CheetahString,
345 group: CheetahString,
346 client_addr: CheetahString,
347 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<MessageQueue, u64>>> {
348 unimplemented!()
349 }
350
351 async fn create_or_update_order_conf(
352 &self,
353 key: CheetahString,
354 value: CheetahString,
355 is_cluster: bool,
356 ) -> rocketmq_error::RocketMQResult<()> {
357 unimplemented!()
358 }
359
360 async fn query_topic_consume_by_who(&self, topic: CheetahString) -> rocketmq_error::RocketMQResult<GroupList> {
361 unimplemented!()
362 }
363
364 async fn query_topics_by_consumer(&self, group: CheetahString) -> rocketmq_error::RocketMQResult<TopicList> {
365 unimplemented!()
366 }
367
368 async fn query_topics_by_consumer_concurrent(&self, group: CheetahString) -> AdminToolResult<TopicList> {
369 unimplemented!()
370 }
371
372 async fn query_subscription(
373 &self,
374 group: CheetahString,
375 topic: CheetahString,
376 ) -> rocketmq_error::RocketMQResult<SubscriptionData> {
377 unimplemented!()
378 }
379
380 async fn clean_expired_consumer_queue(
393 &self,
394 cluster: Option<CheetahString>,
395 addr: Option<CheetahString>,
396 ) -> rocketmq_error::RocketMQResult<bool> {
397 unimplemented!()
398 }
399
400 async fn delete_expired_commit_log(
401 &self,
402 cluster: Option<CheetahString>,
403 addr: Option<CheetahString>,
404 ) -> rocketmq_error::RocketMQResult<bool> {
405 unimplemented!()
406 }
407
408 async fn clean_unused_topic(
409 &self,
410 cluster: Option<CheetahString>,
411 addr: Option<CheetahString>,
412 ) -> rocketmq_error::RocketMQResult<bool> {
413 unimplemented!()
414 }
415
416 async fn get_consumer_running_info(
417 &self,
418 consumer_group: CheetahString,
419 client_id: CheetahString,
420 jstack: bool,
421 metrics: Option<bool>,
422 ) -> rocketmq_error::RocketMQResult<ConsumerRunningInfo> {
423 unimplemented!()
424 }
425
426 async fn consume_message_directly(
427 &self,
428 consumer_group: CheetahString,
429 client_id: CheetahString,
430 topic: CheetahString,
431 msg_id: CheetahString,
432 ) -> rocketmq_error::RocketMQResult<ConsumeMessageDirectlyResult> {
433 unimplemented!()
434 }
435
436 async fn consume_message_directly_ext(
437 &self,
438 cluster_name: CheetahString,
439 consumer_group: CheetahString,
440 client_id: CheetahString,
441 topic: CheetahString,
442 msg_id: CheetahString,
443 ) -> rocketmq_error::RocketMQResult<ConsumeMessageDirectlyResult> {
444 unimplemented!()
445 }
446
447 async fn clone_group_offset(
458 &self,
459 src_group: CheetahString,
460 dest_group: CheetahString,
461 topic: CheetahString,
462 is_offline: bool,
463 ) -> rocketmq_error::RocketMQResult<()> {
464 unimplemented!()
465 }
466
467 async fn get_cluster_list(&self, topic: String) -> rocketmq_error::RocketMQResult<HashSet<CheetahString>> {
475 unimplemented!()
476 }
477
478 async fn get_topic_cluster_list(&self, topic: String) -> rocketmq_error::RocketMQResult<HashSet<CheetahString>> {
486 unimplemented!()
487 }
488
489 async fn get_all_subscription_group(
490 &self,
491 broker_addr: CheetahString,
492 timeout_millis: u64,
493 ) -> rocketmq_error::RocketMQResult<SubscriptionGroupWrapper> {
494 unimplemented!()
495 }
496
497 async fn get_user_subscription_group(
498 &self,
499 broker_addr: CheetahString,
500 timeout_millis: u64,
501 ) -> rocketmq_error::RocketMQResult<SubscriptionGroupWrapper> {
502 unimplemented!()
503 }
504
505 async fn get_all_topic_config(
506 &self,
507 broker_addr: CheetahString,
508 timeout_millis: u64,
509 ) -> rocketmq_error::RocketMQResult<TopicConfigSerializeWrapper> {
510 unimplemented!()
511 }
512
513 async fn get_user_topic_config(
514 &self,
515 broker_addr: CheetahString,
516 special_topic: bool,
517 timeout_millis: u64,
518 ) -> rocketmq_error::RocketMQResult<TopicConfigSerializeWrapper> {
519 unimplemented!()
520 }
521
522 async fn update_consume_offset(
523 &self,
524 broker_addr: CheetahString,
525 consume_group: CheetahString,
526 mq: MessageQueue,
527 offset: u64,
528 ) -> rocketmq_error::RocketMQResult<()> {
529 unimplemented!()
530 }
531
532 async fn update_name_server_config(
533 &self,
534 properties: HashMap<CheetahString, CheetahString>,
535 name_servers: Vec<CheetahString>,
536 ) -> rocketmq_error::RocketMQResult<()> {
537 unimplemented!()
538 }
539
540 async fn get_name_server_config(
541 &self,
542 name_servers: Vec<CheetahString>,
543 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<CheetahString, CheetahString>>> {
544 unimplemented!()
545 }
546
547 async fn resume_check_half_message(
558 &self,
559 topic: CheetahString,
560 msg_id: CheetahString,
561 ) -> rocketmq_error::RocketMQResult<bool> {
562 unimplemented!()
563 }
564
565 async fn set_message_request_mode(
566 &self,
567 broker_addr: CheetahString,
568 topic: CheetahString,
569 consumer_group: CheetahString,
570 mode: MessageRequestMode,
571 pop_work_group_size: i32,
572 timeout_millis: u64,
573 ) -> rocketmq_error::RocketMQResult<()> {
574 unimplemented!()
575 }
576
577 async fn reset_offset_by_queue_id(
578 &self,
579 broker_addr: CheetahString,
580 consumer_group: CheetahString,
581 topic_name: CheetahString,
582 queue_id: i32,
583 reset_offset: u64,
584 ) -> rocketmq_error::RocketMQResult<()> {
585 unimplemented!()
586 }
587
588 async fn examine_topic_config(
589 &self,
590 addr: CheetahString,
591 topic: CheetahString,
592 ) -> rocketmq_error::RocketMQResult<TopicConfig> {
593 unimplemented!()
594 }
595
596 async fn create_static_topic(
597 &self,
598 addr: CheetahString,
599 default_topic: CheetahString,
600 topic_config: TopicConfig,
601 mapping_detail: TopicQueueMappingDetail,
602 force: bool,
603 ) -> rocketmq_error::RocketMQResult<()> {
604 unimplemented!()
605 }
606
607 async fn reset_master_flush_offset(
641 &self,
642 broker_addr: CheetahString,
643 master_flush_offset: u64,
644 ) -> rocketmq_error::RocketMQResult<()> {
645 unimplemented!()
646 }
647
648 async fn get_controller_config(
649 &self,
650 controller_servers: Vec<CheetahString>,
651 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<CheetahString, CheetahString>>> {
652 unimplemented!()
653 }
654
655 async fn update_controller_config(
656 &self,
657 properties: HashMap<CheetahString, CheetahString>,
658 controllers: Vec<CheetahString>,
659 ) -> rocketmq_error::RocketMQResult<()> {
660 unimplemented!()
661 }
662
663 async fn clean_controller_broker_data(
672 &self,
673 controller_addr: CheetahString,
674 cluster_name: CheetahString,
675 broker_name: CheetahString,
676 broker_controller_ids_to_clean: Option<CheetahString>,
677 is_clean_living_broker: bool,
678 ) -> rocketmq_error::RocketMQResult<()> {
679 unimplemented!()
680 }
681
682 async fn update_cold_data_flow_ctr_group_config(
683 &self,
684 broker_addr: CheetahString,
685 properties: HashMap<CheetahString, CheetahString>,
686 ) -> rocketmq_error::RocketMQResult<()> {
687 unimplemented!()
688 }
689
690 async fn remove_cold_data_flow_ctr_group_config(
691 &self,
692 broker_addr: CheetahString,
693 consumer_group: CheetahString,
694 ) -> rocketmq_error::RocketMQResult<()> {
695 unimplemented!()
696 }
697
698 async fn get_cold_data_flow_ctr_info(
699 &self,
700 broker_addr: CheetahString,
701 ) -> rocketmq_error::RocketMQResult<CheetahString> {
702 unimplemented!()
703 }
704
705 async fn set_commit_log_read_ahead_mode(
706 &self,
707 broker_addr: CheetahString,
708 mode: CheetahString,
709 ) -> rocketmq_error::RocketMQResult<CheetahString> {
710 unimplemented!()
711 }
712
713 async fn create_user(
714 &self,
715 broker_addr: CheetahString,
716 username: CheetahString,
717 password: CheetahString,
718 user_type: CheetahString,
719 ) -> rocketmq_error::RocketMQResult<()> {
720 unimplemented!()
721 }
722
723 async fn update_user(
730 &self,
731 broker_addr: CheetahString,
732 username: CheetahString,
733 password: CheetahString,
734 user_type: CheetahString,
735 user_status: CheetahString,
736 ) -> rocketmq_error::RocketMQResult<()> {
737 unimplemented!()
738 }
739
740 async fn delete_user(
747 &self,
748 broker_addr: CheetahString,
749 username: CheetahString,
750 ) -> rocketmq_error::RocketMQResult<()> {
751 unimplemented!()
752 }
753
754 async fn create_acl(
767 &self,
768 broker_addr: CheetahString,
769 subject: CheetahString,
770 resources: Vec<CheetahString>,
771 actions: Vec<CheetahString>,
772 source_ips: Vec<CheetahString>,
773 decision: CheetahString,
774 ) -> rocketmq_error::RocketMQResult<()> {
775 unimplemented!()
776 }
777
778 async fn update_acl(
785 &self,
786 broker_addr: CheetahString,
787 subject: CheetahString,
788 resources: Vec<CheetahString>,
789 actions: Vec<CheetahString>,
790 source_ips: Vec<CheetahString>,
791 decision: CheetahString,
792 ) -> rocketmq_error::RocketMQResult<()> {
793 unimplemented!()
794 }
795
796 async fn delete_acl(
803 &self,
804 broker_addr: CheetahString,
805 subject: CheetahString,
806 resource: CheetahString,
807 ) -> rocketmq_error::RocketMQResult<()> {
808 unimplemented!()
809 }
810
811 }