Class ReadLedgerCommand
- 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<ReadLedgerCommand.ReadLedgerFlags>
-
- org.apache.bookkeeper.tools.cli.commands.bookie.ReadLedgerCommand
-
public class ReadLedgerCommand extends BookieCommand<ReadLedgerCommand.ReadLedgerFlags>
Command to read ledger entries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadLedgerCommand.ReadLedgerFlags
Flags for read ledger command.
-
Field Summary
Fields Modifier and Type Field Description (package private) EntryFormatter
entryFormatter
(package private) LedgerIdFormatter
ledgerIdFormatter
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Constructor Description ReadLedgerCommand()
ReadLedgerCommand(EntryFormatter entryFormatter, LedgerIdFormatter ledgerIdFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(ServerConfiguration conf, ReadLedgerCommand.ReadLedgerFlags cmdFlags)
-
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
-
-
-
-
Field Detail
-
entryFormatter
EntryFormatter entryFormatter
-
ledgerIdFormatter
LedgerIdFormatter ledgerIdFormatter
-
-
Constructor Detail
-
ReadLedgerCommand
public ReadLedgerCommand()
-
ReadLedgerCommand
public ReadLedgerCommand(EntryFormatter entryFormatter, LedgerIdFormatter ledgerIdFormatter)
-
-
Method Detail
-
apply
public boolean apply(ServerConfiguration conf, ReadLedgerCommand.ReadLedgerFlags cmdFlags)
- Specified by:
apply
in classBookieCommand<ReadLedgerCommand.ReadLedgerFlags>
-
-