timoninmaxim commented on code in PR #10675:
URL: https://github.com/apache/ignite/pull/10675#discussion_r1220017197


##########
modules/core/src/main/java/org/apache/ignite/internal/management/api/HelpCommand.java:
##########
@@ -15,29 +15,25 @@
  * limitations under the License.
  */
 
-package org.apache.ignite.internal.visor.persistence;
+package org.apache.ignite.internal.management.api;
 
-import org.jetbrains.annotations.Nullable;
-
-/** Persistence cleaning operations. */
-public enum PersistenceOperation {
-    /** */
-    INFO,
-
-    /** */
-    CLEAN,
-
-    /** */
-    BACKUP;
-
-    /** */
-    private static final PersistenceOperation[] VALS = values();
+import java.util.function.Consumer;
 
+/**
+ * Marker interface only for backward compatibility with {@code ./control.sh}.
+ */
+public interface HelpCommand extends Command<NoArg, Void> {
     /**
-     * @param ordinal Index of enum value.
-     * @return Value of {@link PersistenceOperation} enum.
+     * Prints custom help command header.
+     *
+     * @param printer Printer.
      */
-    @Nullable public static PersistenceOperation fromOrdinal(int ordinal) {
-        return ordinal >= 0 && ordinal < VALS.length ? VALS[ordinal] : null;
+    public default void printHeader(Consumer<String> printer) {

Review Comment:
   Unused method?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to