Class ListLedgersCommand
- 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<ListLedgersCommand.ListLedgersFlags>
-
- org.apache.bookkeeper.tools.cli.commands.bookie.ListLedgersCommand
-
public class ListLedgersCommand extends BookieCommand<ListLedgersCommand.ListLedgersFlags>
Command for list all ledgers on the cluster.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ListLedgersCommand.ListLedgersFlags
Flags for ListLedgers command.
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Constructor Description ListLedgersCommand()
ListLedgersCommand(ListLedgersCommand.ListLedgersFlags flags)
ListLedgersCommand(LedgerIdFormatter ledgerIdFormatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(ServerConfiguration conf, ListLedgersCommand.ListLedgersFlags cmdFlags)
boolean
handler(ServerConfiguration conf, ListLedgersCommand.ListLedgersFlags 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
-
-
-
-
Constructor Detail
-
ListLedgersCommand
public ListLedgersCommand()
-
ListLedgersCommand
public ListLedgersCommand(LedgerIdFormatter ledgerIdFormatter)
-
ListLedgersCommand
public ListLedgersCommand(ListLedgersCommand.ListLedgersFlags flags)
-
-
Method Detail
-
apply
public boolean apply(ServerConfiguration conf, ListLedgersCommand.ListLedgersFlags cmdFlags)
- Specified by:
apply
in classBookieCommand<ListLedgersCommand.ListLedgersFlags>
-
handler
public boolean handler(ServerConfiguration conf, ListLedgersCommand.ListLedgersFlags flags) throws java.net.UnknownHostException, MetadataException, java.util.concurrent.ExecutionException
- Throws:
java.net.UnknownHostException
MetadataException
java.util.concurrent.ExecutionException
-
-