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>
bkCmd
protected org.apache.commons.configuration.CompositeConfiguration
conf
protected java.lang.String
shellCmdName
-
Constructor Summary
Constructors Constructor Description BookieShellCommand(java.lang.String shellCmdName, BKCommand<CliFlagsT> bkCmd, org.apache.commons.configuration.CompositeConfiguration conf)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
void
printUsage()
int
runCmd(java.lang.String[] args)
-
-
-
Method Detail
-
runCmd
public int runCmd(java.lang.String[] args) throws java.lang.Exception
- Specified by:
runCmd
in interfaceBookieShell.Command
- Throws:
java.lang.Exception
-
description
public java.lang.String description()
- Specified by:
description
in interfaceBookieShell.Command
-
printUsage
public void printUsage()
- Specified by:
printUsage
in interfaceBookieShell.Command
-
-