Interface Tool

All Known Implementing Classes:
BookieShell

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

    Modifier and Type
    Method
    Description
    int
    run(String[] args)
    Exectue the command with given arguments.
    void
    setConf(org.apache.commons.configuration2.CompositeConfiguration conf)
    Passe a configuration object to the tool.
  • Method Details

    • run

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

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