Package org.apache.bookkeeper.bookie
Class BookieShell.MyCommand
- java.lang.Object
-
- org.apache.bookkeeper.bookie.BookieShell.MyCommand
-
- All Implemented Interfaces:
BookieShell.Command
- Direct Known Subclasses:
BookieShell.AutoRecoveryCmd
,BookieShell.BookieFormatCmd
,BookieShell.BookieInfoCmd
,BookieShell.BookieSanityTestCmd
,BookieShell.CheckDbLedgersIndexCmd
,BookieShell.ClusterInfoCmd
,BookieShell.ConvertToDbStorageCmd
,BookieShell.ConvertToInterleavedStorageCmd
,BookieShell.DecommissionBookieCmd
,BookieShell.DeleteLedgerCmd
,BookieShell.EndpointInfoCmd
,BookieShell.ForceAuditorChecksCmd
,BookieShell.HelpCmd
,BookieShell.InitBookieCmd
,BookieShell.InitNewCluster
,BookieShell.LastMarkCmd
,BookieShell.LedgerCmd
,BookieShell.LedgerMetadataCmd
,BookieShell.ListActiveLedgersCmd
,BookieShell.ListBookiesCmd
,BookieShell.ListDiskFilesCmd
,BookieShell.ListLedgersCmd
,BookieShell.ListUnderreplicatedCmd
,BookieShell.LocalConsistencyCheck
,BookieShell.LostBookieRecoveryDelayCmd
,BookieShell.MetaFormatCmd
,BookieShell.NukeExistingCluster
,BookieShell.QueryAutoRecoveryStatusCmd
,BookieShell.ReadJournalCmd
,BookieShell.ReadLedgerEntriesCmd
,BookieShell.ReadLogCmd
,BookieShell.ReadLogMetadataCmd
,BookieShell.RebuildDbLedgerLocationsIndexCmd
,BookieShell.RebuildDbLedgersIndexCmd
,BookieShell.RecoverCmd
,BookieShell.RegenerateInterleavedStorageIndexFile
,BookieShell.SimpleTestCmd
,BookieShell.TriggerAuditCmd
,BookieShell.UpdateBookieInLedgerCmd
,BookieShell.UpdateCookieCmd
,BookieShell.UpdateLedgerCmd
,BookieShell.WhatIsInstanceId
,BookieShell.WhoIsAuditorCmd
- Enclosing class:
- BookieShell
abstract class BookieShell.MyCommand extends java.lang.Object implements BookieShell.Command
-
-
Constructor Summary
Constructors Constructor Description MyCommand(java.lang.String cmdName)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
(package private) abstract java.lang.String
getDescription()
(package private) abstract org.apache.commons.cli.Options
getOptions()
(package private) abstract java.lang.String
getUsage()
void
printUsage()
int
runCmd(java.lang.String[] args)
(package private) abstract int
runCmd(org.apache.commons.cli.CommandLine cmdLine)
-
-
-
Method Detail
-
getOptions
abstract org.apache.commons.cli.Options getOptions()
-
getDescription
abstract java.lang.String getDescription()
-
getUsage
abstract java.lang.String getUsage()
-
runCmd
abstract int runCmd(org.apache.commons.cli.CommandLine cmdLine) throws java.lang.Exception
- Throws:
java.lang.Exception
-
description
public java.lang.String description()
- Specified by:
description
in interfaceBookieShell.Command
-
runCmd
public int runCmd(java.lang.String[] args) throws java.lang.Exception
- Specified by:
runCmd
in interfaceBookieShell.Command
- Throws:
java.lang.Exception
-
printUsage
public void printUsage()
- Specified by:
printUsage
in interfaceBookieShell.Command
-
-