1use std::collections::HashMap;
18use std::collections::HashSet;
19
20use cheetah_string::CheetahString;
21use rocketmq_common::common::base::plain_access_config::PlainAccessConfig;
22use rocketmq_common::common::config::TopicConfig;
23use rocketmq_common::common::message::message_enum::MessageRequestMode;
24use rocketmq_common::common::message::message_queue::MessageQueue;
25use rocketmq_remoting::protocol::admin::consume_stats::ConsumeStats;
26use rocketmq_remoting::protocol::admin::topic_stats_table::TopicStatsTable;
27use rocketmq_remoting::protocol::body::broker_body::cluster_info::ClusterInfo;
28use rocketmq_remoting::protocol::body::consume_message_directly_result::ConsumeMessageDirectlyResult;
29use rocketmq_remoting::protocol::body::consumer_connection::ConsumerConnection;
30use rocketmq_remoting::protocol::body::consumer_running_info::ConsumerRunningInfo;
31use rocketmq_remoting::protocol::body::group_list::GroupList;
32use rocketmq_remoting::protocol::body::kv_table::KVTable;
33use rocketmq_remoting::protocol::body::producer_connection::ProducerConnection;
34use rocketmq_remoting::protocol::body::topic::topic_list::TopicList;
35use rocketmq_remoting::protocol::body::topic_info_wrapper::TopicConfigSerializeWrapper;
36use rocketmq_remoting::protocol::heartbeat::subscription_data::SubscriptionData;
37use rocketmq_remoting::protocol::route::topic_route_data::TopicRouteData;
38use rocketmq_remoting::protocol::static_topic::topic_queue_mapping_detail::TopicQueueMappingDetail;
39use rocketmq_remoting::protocol::subscription::subscription_group_config::SubscriptionGroupConfig;
40use rocketmq_rust::ArcMut;
41
42use crate::admin::default_mq_admin_ext_impl::DefaultMQAdminExtImpl;
43use crate::common::admin_tool_result::AdminToolResult;
44
45#[derive(Clone)]
46pub struct MQAdminExtInnerImpl {
47 pub(crate) inner: ArcMut<DefaultMQAdminExtImpl>,
48}
49
50impl MQAdminExtInnerImpl {
51 async fn add_broker_to_container(
52 &self,
53 broker_container_addr: CheetahString,
54 broker_config: CheetahString,
55 ) -> rocketmq_error::RocketMQResult<()> {
56 unimplemented!()
57 }
58
59 async fn remove_broker_from_container(
60 &self,
61 broker_container_addr: CheetahString,
62 cluster_name: CheetahString,
63 broker_name: CheetahString,
64 broker_id: u64,
65 ) -> rocketmq_error::RocketMQResult<()> {
66 unimplemented!()
67 }
68
69 async fn update_broker_config(
70 &self,
71 broker_addr: CheetahString,
72 properties: HashMap<CheetahString, CheetahString>,
73 ) -> rocketmq_error::RocketMQResult<()> {
74 unimplemented!()
75 }
76
77 async fn get_broker_config(
78 &self,
79 broker_addr: CheetahString,
80 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, CheetahString>> {
81 unimplemented!()
82 }
83
84 async fn create_and_update_topic_config(
85 &self,
86 addr: CheetahString,
87 config: TopicConfig,
88 ) -> rocketmq_error::RocketMQResult<()> {
89 unimplemented!()
90 }
91
92 async fn create_and_update_topic_config_list(
93 &self,
94 addr: CheetahString,
95 topic_config_list: Vec<TopicConfig>,
96 ) -> rocketmq_error::RocketMQResult<()> {
97 unimplemented!()
98 }
99
100 async fn create_and_update_plain_access_config(
101 &self,
102 addr: CheetahString,
103 config: PlainAccessConfig,
104 ) -> rocketmq_error::RocketMQResult<()> {
105 unimplemented!()
106 }
107
108 async fn delete_plain_access_config(
109 &self,
110 addr: CheetahString,
111 access_key: CheetahString,
112 ) -> rocketmq_error::RocketMQResult<()> {
113 unimplemented!()
114 }
115
116 async fn update_global_white_addr_config(
117 &self,
118 addr: CheetahString,
119 global_white_addrs: CheetahString,
120 acl_file_full_path: Option<CheetahString>,
121 ) -> rocketmq_error::RocketMQResult<()> {
122 unimplemented!()
123 }
124
125 async fn examine_broker_cluster_acl_version_info(
126 &self,
127 addr: CheetahString,
128 ) -> rocketmq_error::RocketMQResult<CheetahString> {
129 unimplemented!()
130 }
131
132 async fn create_and_update_subscription_group_config(
133 &self,
134 addr: CheetahString,
135 config: SubscriptionGroupConfig,
136 ) -> rocketmq_error::RocketMQResult<()> {
137 unimplemented!()
138 }
139
140 async fn create_and_update_subscription_group_config_list(
141 &self,
142 broker_addr: CheetahString,
143 configs: Vec<SubscriptionGroupConfig>,
144 ) -> rocketmq_error::RocketMQResult<()> {
145 unimplemented!()
146 }
147
148 async fn examine_subscription_group_config(
149 &self,
150 addr: CheetahString,
151 group: CheetahString,
152 ) -> rocketmq_error::RocketMQResult<SubscriptionGroupConfig> {
153 unimplemented!()
154 }
155
156 async fn examine_topic_stats(
157 &self,
158 topic: CheetahString,
159 broker_addr: Option<CheetahString>,
160 ) -> rocketmq_error::RocketMQResult<TopicStatsTable> {
161 unimplemented!()
162 }
163
164 async fn examine_topic_stats_concurrent(
165 &self,
166 topic: CheetahString,
167 ) -> AdminToolResult<TopicStatsTable> {
168 unimplemented!()
169 }
170
171 async fn fetch_all_topic_list(&self) -> rocketmq_error::RocketMQResult<TopicList> {
172 unimplemented!()
173 }
174
175 async fn fetch_topics_by_cluster(
176 &self,
177 cluster_name: CheetahString,
178 ) -> rocketmq_error::RocketMQResult<TopicList> {
179 unimplemented!()
180 }
181
182 async fn fetch_broker_runtime_stats(
183 &self,
184 broker_addr: CheetahString,
185 ) -> rocketmq_error::RocketMQResult<KVTable> {
186 unimplemented!()
187 }
188
189 async fn examine_consume_stats(
190 &self,
191 consumer_group: CheetahString,
192 topic: Option<CheetahString>,
193 cluster_name: Option<CheetahString>,
194 broker_addr: Option<CheetahString>,
195 timeout_millis: Option<u64>,
196 ) -> rocketmq_error::RocketMQResult<ConsumeStats> {
197 unimplemented!()
198 }
199
200 async fn examine_broker_cluster_info(&self) -> rocketmq_error::RocketMQResult<ClusterInfo> {
207 unimplemented!()
208 }
209
210 async fn examine_topic_route_info(
211 &self,
212 topic: CheetahString,
213 ) -> rocketmq_error::RocketMQResult<TopicRouteData> {
214 unimplemented!()
215 }
216
217 async fn examine_consumer_connection_info(
218 &self,
219 consumer_group: CheetahString,
220 broker_addr: Option<CheetahString>,
221 ) -> rocketmq_error::RocketMQResult<ConsumerConnection> {
222 unimplemented!()
223 }
224
225 async fn examine_producer_connection_info(
226 &self,
227 producer_group: CheetahString,
228 topic: CheetahString,
229 ) -> rocketmq_error::RocketMQResult<ProducerConnection> {
230 unimplemented!()
231 }
232
233 async fn get_name_server_address_list(&self) -> Vec<CheetahString> {
239 unimplemented!()
240 }
241
242 async fn wipe_write_perm_of_broker(
243 &self,
244 namesrv_addr: CheetahString,
245 broker_name: CheetahString,
246 ) -> rocketmq_error::RocketMQResult<i32> {
247 unimplemented!()
248 }
249
250 async fn add_write_perm_of_broker(
251 &self,
252 namesrv_addr: CheetahString,
253 broker_name: CheetahString,
254 ) -> rocketmq_error::RocketMQResult<i32> {
255 unimplemented!()
256 }
257
258 async fn put_kv_config(
259 &self,
260 namespace: CheetahString,
261 key: CheetahString,
262 value: CheetahString,
263 ) {
264 unimplemented!()
265 }
266
267 async fn get_kv_config(
268 &self,
269 namespace: CheetahString,
270 key: CheetahString,
271 ) -> rocketmq_error::RocketMQResult<CheetahString> {
272 unimplemented!()
273 }
274
275 async fn get_kv_list_by_namespace(
276 &self,
277 namespace: CheetahString,
278 ) -> rocketmq_error::RocketMQResult<KVTable> {
279 unimplemented!()
280 }
281
282 async fn delete_topic(
283 &self,
284 topic_name: CheetahString,
285 cluster_name: CheetahString,
286 ) -> rocketmq_error::RocketMQResult<()> {
287 unimplemented!()
288 }
289
290 async fn delete_topic_in_broker(
291 &self,
292 addrs: HashSet<CheetahString>,
293 topic: CheetahString,
294 ) -> rocketmq_error::RocketMQResult<()> {
295 unimplemented!()
296 }
297
298 async fn delete_topic_in_name_server(
305 &self,
306 addrs: HashSet<CheetahString>,
307 cluster_name: Option<CheetahString>,
308 topic: CheetahString,
309 ) -> rocketmq_error::RocketMQResult<()> {
310 unimplemented!()
311 }
312
313 async fn delete_subscription_group(
314 &self,
315 addr: CheetahString,
316 group_name: CheetahString,
317 remove_offset: Option<bool>,
318 ) -> rocketmq_error::RocketMQResult<()> {
319 unimplemented!()
320 }
321
322 async fn create_and_update_kv_config(
323 &self,
324 namespace: CheetahString,
325 key: CheetahString,
326 value: CheetahString,
327 ) -> rocketmq_error::RocketMQResult<()> {
328 unimplemented!()
329 }
330
331 async fn delete_kv_config(
332 &self,
333 namespace: CheetahString,
334 key: CheetahString,
335 ) -> rocketmq_error::RocketMQResult<()> {
336 unimplemented!()
337 }
338
339 async fn reset_offset_by_timestamp(
348 &self,
349 cluster_name: Option<CheetahString>,
350 topic: CheetahString,
351 group: CheetahString,
352 timestamp: u64,
353 is_force: bool,
354 ) -> rocketmq_error::RocketMQResult<HashMap<MessageQueue, u64>> {
355 unimplemented!()
356 }
357
358 async fn reset_offset_new(
359 &self,
360 consumer_group: CheetahString,
361 topic: CheetahString,
362 timestamp: u64,
363 ) -> rocketmq_error::RocketMQResult<()> {
364 unimplemented!()
365 }
366
367 async fn get_consume_status(
375 &self,
376 topic: CheetahString,
377 group: CheetahString,
378 client_addr: CheetahString,
379 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<MessageQueue, u64>>> {
380 unimplemented!()
381 }
382
383 async fn create_or_update_order_conf(
384 &self,
385 key: CheetahString,
386 value: CheetahString,
387 is_cluster: bool,
388 ) -> rocketmq_error::RocketMQResult<()> {
389 unimplemented!()
390 }
391
392 async fn query_topic_consume_by_who(
393 &self,
394 topic: CheetahString,
395 ) -> rocketmq_error::RocketMQResult<GroupList> {
396 unimplemented!()
397 }
398
399 async fn query_topics_by_consumer(
400 &self,
401 group: CheetahString,
402 ) -> rocketmq_error::RocketMQResult<TopicList> {
403 unimplemented!()
404 }
405
406 async fn query_topics_by_consumer_concurrent(
407 &self,
408 group: CheetahString,
409 ) -> AdminToolResult<TopicList> {
410 unimplemented!()
411 }
412
413 async fn query_subscription(
414 &self,
415 group: CheetahString,
416 topic: CheetahString,
417 ) -> rocketmq_error::RocketMQResult<SubscriptionData> {
418 unimplemented!()
419 }
420
421 async fn clean_expired_consumer_queue(
434 &self,
435 cluster: Option<CheetahString>,
436 addr: Option<CheetahString>,
437 ) -> rocketmq_error::RocketMQResult<bool> {
438 unimplemented!()
439 }
440
441 async fn delete_expired_commit_log(
442 &self,
443 cluster: Option<CheetahString>,
444 addr: Option<CheetahString>,
445 ) -> rocketmq_error::RocketMQResult<bool> {
446 unimplemented!()
447 }
448
449 async fn clean_unused_topic(
450 &self,
451 cluster: Option<CheetahString>,
452 addr: Option<CheetahString>,
453 ) -> rocketmq_error::RocketMQResult<bool> {
454 unimplemented!()
455 }
456
457 async fn get_consumer_running_info(
458 &self,
459 consumer_group: CheetahString,
460 client_id: CheetahString,
461 jstack: bool,
462 metrics: Option<bool>,
463 ) -> rocketmq_error::RocketMQResult<ConsumerRunningInfo> {
464 unimplemented!()
465 }
466
467 async fn consume_message_directly(
468 &self,
469 consumer_group: CheetahString,
470 client_id: CheetahString,
471 topic: CheetahString,
472 msg_id: CheetahString,
473 ) -> rocketmq_error::RocketMQResult<ConsumeMessageDirectlyResult> {
474 unimplemented!()
475 }
476
477 async fn consume_message_directly_ext(
478 &self,
479 cluster_name: CheetahString,
480 consumer_group: CheetahString,
481 client_id: CheetahString,
482 topic: CheetahString,
483 msg_id: CheetahString,
484 ) -> rocketmq_error::RocketMQResult<ConsumeMessageDirectlyResult> {
485 unimplemented!()
486 }
487
488 async fn clone_group_offset(
499 &self,
500 src_group: CheetahString,
501 dest_group: CheetahString,
502 topic: CheetahString,
503 is_offline: bool,
504 ) -> rocketmq_error::RocketMQResult<()> {
505 unimplemented!()
506 }
507
508 async fn get_cluster_list(
516 &self,
517 topic: String,
518 ) -> rocketmq_error::RocketMQResult<HashSet<CheetahString>> {
519 unimplemented!()
520 }
521
522 async fn get_topic_cluster_list(
530 &self,
531 topic: String,
532 ) -> rocketmq_error::RocketMQResult<HashSet<CheetahString>> {
533 unimplemented!()
534 }
535
536 async fn get_all_topic_config(
549 &self,
550 broker_addr: CheetahString,
551 timeout_millis: u64,
552 ) -> rocketmq_error::RocketMQResult<TopicConfigSerializeWrapper> {
553 unimplemented!()
554 }
555
556 async fn get_user_topic_config(
557 &self,
558 broker_addr: CheetahString,
559 special_topic: bool,
560 timeout_millis: u64,
561 ) -> rocketmq_error::RocketMQResult<TopicConfigSerializeWrapper> {
562 unimplemented!()
563 }
564
565 async fn update_consume_offset(
566 &self,
567 broker_addr: CheetahString,
568 consume_group: CheetahString,
569 mq: MessageQueue,
570 offset: u64,
571 ) -> rocketmq_error::RocketMQResult<()> {
572 unimplemented!()
573 }
574
575 async fn update_name_server_config(
576 &self,
577 properties: HashMap<CheetahString, CheetahString>,
578 name_servers: Vec<CheetahString>,
579 ) -> rocketmq_error::RocketMQResult<()> {
580 unimplemented!()
581 }
582
583 async fn get_name_server_config(
584 &self,
585 name_servers: Vec<CheetahString>,
586 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<CheetahString, CheetahString>>>
587 {
588 unimplemented!()
589 }
590
591 async fn resume_check_half_message(
602 &self,
603 topic: CheetahString,
604 msg_id: CheetahString,
605 ) -> rocketmq_error::RocketMQResult<bool> {
606 unimplemented!()
607 }
608
609 async fn set_message_request_mode(
610 &self,
611 broker_addr: CheetahString,
612 topic: CheetahString,
613 consumer_group: CheetahString,
614 mode: MessageRequestMode,
615 pop_work_group_size: i32,
616 timeout_millis: u64,
617 ) -> rocketmq_error::RocketMQResult<()> {
618 unimplemented!()
619 }
620
621 async fn reset_offset_by_queue_id(
622 &self,
623 broker_addr: CheetahString,
624 consumer_group: CheetahString,
625 topic_name: CheetahString,
626 queue_id: i32,
627 reset_offset: u64,
628 ) -> rocketmq_error::RocketMQResult<()> {
629 unimplemented!()
630 }
631
632 async fn examine_topic_config(
633 &self,
634 addr: CheetahString,
635 topic: CheetahString,
636 ) -> rocketmq_error::RocketMQResult<TopicConfig> {
637 unimplemented!()
638 }
639
640 async fn create_static_topic(
641 &self,
642 addr: CheetahString,
643 default_topic: CheetahString,
644 topic_config: TopicConfig,
645 mapping_detail: TopicQueueMappingDetail,
646 force: bool,
647 ) -> rocketmq_error::RocketMQResult<()> {
648 unimplemented!()
649 }
650
651 async fn reset_master_flush_offset(
685 &self,
686 broker_addr: CheetahString,
687 master_flush_offset: u64,
688 ) -> rocketmq_error::RocketMQResult<()> {
689 unimplemented!()
690 }
691
692 async fn get_controller_config(
693 &self,
694 controller_servers: Vec<CheetahString>,
695 ) -> rocketmq_error::RocketMQResult<HashMap<CheetahString, HashMap<CheetahString, CheetahString>>>
696 {
697 unimplemented!()
698 }
699
700 async fn update_controller_config(
701 &self,
702 properties: HashMap<CheetahString, CheetahString>,
703 controllers: Vec<CheetahString>,
704 ) -> rocketmq_error::RocketMQResult<()> {
705 unimplemented!()
706 }
707
708 async fn clean_controller_broker_data(
717 &self,
718 controller_addr: CheetahString,
719 cluster_name: CheetahString,
720 broker_name: CheetahString,
721 broker_controller_ids_to_clean: Option<CheetahString>,
722 is_clean_living_broker: bool,
723 ) -> rocketmq_error::RocketMQResult<()> {
724 unimplemented!()
725 }
726
727 async fn update_cold_data_flow_ctr_group_config(
728 &self,
729 broker_addr: CheetahString,
730 properties: HashMap<CheetahString, CheetahString>,
731 ) -> rocketmq_error::RocketMQResult<()> {
732 unimplemented!()
733 }
734
735 async fn remove_cold_data_flow_ctr_group_config(
736 &self,
737 broker_addr: CheetahString,
738 consumer_group: CheetahString,
739 ) -> rocketmq_error::RocketMQResult<()> {
740 unimplemented!()
741 }
742
743 async fn get_cold_data_flow_ctr_info(
744 &self,
745 broker_addr: CheetahString,
746 ) -> rocketmq_error::RocketMQResult<CheetahString> {
747 unimplemented!()
748 }
749
750 async fn set_commit_log_read_ahead_mode(
751 &self,
752 broker_addr: CheetahString,
753 mode: CheetahString,
754 ) -> rocketmq_error::RocketMQResult<CheetahString> {
755 unimplemented!()
756 }
757
758 async fn create_user(
759 &self,
760 broker_addr: CheetahString,
761 username: CheetahString,
762 password: CheetahString,
763 user_type: CheetahString,
764 ) -> rocketmq_error::RocketMQResult<()> {
765 unimplemented!()
766 }
767
768 async fn update_user(
775 &self,
776 broker_addr: CheetahString,
777 username: CheetahString,
778 password: CheetahString,
779 user_type: CheetahString,
780 user_status: CheetahString,
781 ) -> rocketmq_error::RocketMQResult<()> {
782 unimplemented!()
783 }
784
785 async fn delete_user(
792 &self,
793 broker_addr: CheetahString,
794 username: CheetahString,
795 ) -> rocketmq_error::RocketMQResult<()> {
796 unimplemented!()
797 }
798
799 async fn create_acl(
812 &self,
813 broker_addr: CheetahString,
814 subject: CheetahString,
815 resources: Vec<CheetahString>,
816 actions: Vec<CheetahString>,
817 source_ips: Vec<CheetahString>,
818 decision: CheetahString,
819 ) -> rocketmq_error::RocketMQResult<()> {
820 unimplemented!()
821 }
822
823 async fn update_acl(
830 &self,
831 broker_addr: CheetahString,
832 subject: CheetahString,
833 resources: Vec<CheetahString>,
834 actions: Vec<CheetahString>,
835 source_ips: Vec<CheetahString>,
836 decision: CheetahString,
837 ) -> rocketmq_error::RocketMQResult<()> {
838 unimplemented!()
839 }
840
841 async fn delete_acl(
848 &self,
849 broker_addr: CheetahString,
850 subject: CheetahString,
851 resource: CheetahString,
852 ) -> rocketmq_error::RocketMQResult<()> {
853 unimplemented!()
854 }
855
856 }