Class LedgerCommand
- java.lang.Object
-
- org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
-
- org.apache.bookkeeper.tools.common.BKCommand<BookieFlagsT>
-
- org.apache.bookkeeper.tools.cli.helpers.BookieCommand<LedgerCommand.LedgerFlags>
-
- org.apache.bookkeeper.tools.cli.commands.bookie.LedgerCommand
-
public class LedgerCommand extends BookieCommand<LedgerCommand.LedgerFlags>
Command to dump ledger index entries into readable format.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LedgerCommand.LedgerFlags
Flags for ledger command.
-
Field Summary
Fields Modifier and Type Field Description (package private) static org.slf4j.Logger
LOG
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Constructor Description LedgerCommand()
LedgerCommand(LedgerIdFormatter ledgerIdFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(ServerConfiguration conf, LedgerCommand.LedgerFlags cmdFlags)
void
setPrint(java.util.function.Consumer<java.lang.String> print)
-
Methods inherited from class org.apache.bookkeeper.tools.cli.helpers.BookieCommand
apply
-
Methods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, apply
-
Methods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
-
-
-
Constructor Detail
-
LedgerCommand
public LedgerCommand()
-
LedgerCommand
public LedgerCommand(LedgerIdFormatter ledgerIdFormatter)
-
-
Method Detail
-
setPrint
public void setPrint(java.util.function.Consumer<java.lang.String> print)
-
apply
public boolean apply(ServerConfiguration conf, LedgerCommand.LedgerFlags cmdFlags)
- Specified by:
apply
in classBookieCommand<LedgerCommand.LedgerFlags>
-
-