Class BookieShellCommand<CliFlagsT extends CliFlags>
- java.lang.Object
-
- org.apache.bookkeeper.tools.cli.helpers.BookieShellCommand<CliFlagsT>
-
- All Implemented Interfaces:
BookieShell.Command
public class BookieShellCommand<CliFlagsT extends CliFlags> extends java.lang.Object implements BookieShell.Command
This is a util class that converts new cli command to old shell command.
-
-
Field Summary
Fields Modifier and Type Field Description protected BKCommand<CliFlagsT>bkCmdprotected org.apache.commons.configuration2.CompositeConfigurationconfprotected java.lang.StringshellCmdName
-
Constructor Summary
Constructors Constructor Description BookieShellCommand(java.lang.String shellCmdName, BKCommand<CliFlagsT> bkCmd, org.apache.commons.configuration2.CompositeConfiguration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescription()voidprintUsage()intrunCmd(java.lang.String[] args)
-
-
-
Method Detail
-
runCmd
public int runCmd(java.lang.String[] args) throws java.lang.Exception- Specified by:
runCmdin interfaceBookieShell.Command- Throws:
java.lang.Exception
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceBookieShell.Command
-
printUsage
public void printUsage()
- Specified by:
printUsagein interfaceBookieShell.Command
-
-