Interface Tool

  • All Known Implementing Classes:
    BookieShell

    public interface Tool
    A tool interface that supports handling of generic command-line options.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int run​(java.lang.String[] args)
      Exectue the command with given arguments.
      void setConf​(org.apache.commons.configuration.CompositeConfiguration conf)
      Passe a configuration object to the tool.
    • Method Detail

      • run

        int run​(java.lang.String[] args)
         throws java.lang.Exception
        Exectue the command with given arguments.
        Parameters:
        args - command specific arguments
        Returns:
        exit code.
        Throws:
        java.lang.Exception
      • setConf

        void setConf​(org.apache.commons.configuration.CompositeConfiguration conf)
              throws java.lang.Exception
        Passe a configuration object to the tool.
        Parameters:
        conf - configuration object
        Throws:
        java.lang.Exception