Skip to content

Commit

Permalink
[ISSUE #9111] Broker Support export RocksDB Config to json file and e…
Browse files Browse the repository at this point in the history
…nhance admin tools
  • Loading branch information
qianye1001 committed Jan 13, 2025
1 parent 7c46333 commit 03436fa
Showing 1 changed file with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down Expand Up @@ -71,10 +69,6 @@ public static String toString(List<ConfigType> configTypes) {
return sb.toString();
}

public int getCode() {
return code;
}

public String getTypeName() {
return typeName;
}
Expand Down

0 comments on commit 03436fa

Please sign in to comment.