Class BookieShell.MyCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.String cmdName  
      (package private) org.apache.commons.cli.Options opts  
    • 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)  
      • Methods inherited from class java.lang.Object

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

      • cmdName

        java.lang.String cmdName
      • opts

        org.apache.commons.cli.Options opts
    • Constructor Detail

      • MyCommand

        MyCommand​(java.lang.String cmdName)
    • 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
      • runCmd

        public int runCmd​(java.lang.String[] args)
                   throws java.lang.Exception
        Specified by:
        runCmd in interface BookieShell.Command
        Throws:
        java.lang.Exception