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 ClassesModifier and TypeClassDescriptionstatic classFlags for read log metadata command. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) EntryLogger(package private) static final org.slf4j.LoggerFields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags cmdFlags) booleanMethods inherited from class org.apache.bookkeeper.tools.cli.helpers.BookieCommand
applyMethods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, applyMethods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
Field Details
-
LOG
static final org.slf4j.Logger LOG -
entryLogger
EntryLogger entryLogger
-
-
Constructor Details
-
ReadLogMetadataCommand
public ReadLogMetadataCommand() -
ReadLogMetadataCommand
-
-
Method Details
-
apply
public boolean apply(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags cmdFlags) - Specified by:
applyin classBookieCommand<ReadLogMetadataCommand.ReadLogMetadataFlags>
-
readLogMetadata
public boolean readLogMetadata(ServerConfiguration conf, ReadLogMetadataCommand.ReadLogMetadataFlags flags) throws IOException - Throws:
IOException
-