Class BookieShellCommand<CliFlagsT extends CliFlags>

  • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • shellCmdName

        protected final java.lang.String shellCmdName
      • conf

        protected final org.apache.commons.configuration.CompositeConfiguration conf
    • Constructor Detail

      • BookieShellCommand

        public BookieShellCommand​(java.lang.String shellCmdName,
                                  BKCommand<CliFlagsT> bkCmd,
                                  org.apache.commons.configuration.CompositeConfiguration conf)