Class ReadLogMetadataCommand
- 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<ReadLogMetadataCommand.ReadLogMetadataFlags>
-
- org.apache.bookkeeper.tools.cli.commands.bookie.ReadLogMetadataCommand
-
public class ReadLogMetadataCommand extends BookieCommand<ReadLogMetadataCommand.ReadLogMetadataFlags>
Command to print metadata of entry log.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadLogMetadataCommand.ReadLogMetadataFlags
Flags for read log metadata command.
-
Field Summary
Fields Modifier and Type Field Description (package private) EntryLogger
entryLogger
(package private) static org.slf4j.Logger
LOG
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Constructor Description ReadLogMetadataCommand()
ReadLogMetadataCommand(LedgerIdFormatter ledgerIdFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags cmdFlags)
boolean
readLogMetadata(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags flags)
-
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
-
LOG
static final org.slf4j.Logger LOG
-
entryLogger
EntryLogger entryLogger
-
-
Constructor Detail
-
ReadLogMetadataCommand
public ReadLogMetadataCommand()
-
ReadLogMetadataCommand
public ReadLogMetadataCommand(LedgerIdFormatter ledgerIdFormatter)
-
-
Method Detail
-
apply
public boolean apply(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags cmdFlags)
- Specified by:
apply
in classBookieCommand<ReadLogMetadataCommand.ReadLogMetadataFlags>
-
readLogMetadata
public boolean readLogMetadata(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags flags) throws java.io.IOException
- Throws:
java.io.IOException
-
-