From 03436fa75c7666614f64f8c93586303589b24992 Mon Sep 17 00:00:00 2001 From: qianye Date: Mon, 13 Jan 2025 19:12:36 +0800 Subject: [PATCH] [ISSUE #9111] Broker Support export RocksDB Config to json file and enhance admin tools --- .../ExportRocksDBConfigToJsonRequestHeader.java | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java b/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java index 4941d8b4978..7b1f9470e1e 100644 --- a/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java +++ b/remoting/src/main/java/org/apache/rocketmq/remoting/protocol/header/ExportRocksDBConfigToJsonRequestHeader.java @@ -31,15 +31,13 @@ public class ExportRocksDBConfigToJsonRequestHeader implements CommandCustomHead private static final String CONFIG_TYPE_SEPARATOR = ";"; public enum ConfigType { - TOPICS(0, "topics"), - SUBSCRIPTION_GROUPS(1, "subscriptionGroups"), - CONSUMER_OFFSETS(2, "consumerOffsets"); + TOPICS("topics"), + SUBSCRIPTION_GROUPS("subscriptionGroups"), + CONSUMER_OFFSETS("consumerOffsets"); - private final int code; private final String typeName; - ConfigType(int code, String typeName) { - this.code = code; + ConfigType(String typeName) { this.typeName = typeName; } @@ -71,10 +69,6 @@ public static String toString(List configTypes) { return sb.toString(); } - public int getCode() { - return code; - } - public String getTypeName() { return typeName; }