Class Main


  • public class Main
    extends Object
    • Constructor Detail

      • Main

        protected Main​(String[] args)
                throws org.apache.commons.cli.ParseException
        Construct Main application instance.

        Note: Constructor is protected because other projects such as Commons VFS can extend this for some reasons (e.g, unit testing against Jackrabbit WebDAV).

        Throws:
        org.apache.commons.cli.ParseException
    • Method Detail

      • run

        public void run()
                 throws Exception
        Run this Main application.

        Note: this is public because this can be used by other projects in unit tests. e.g, Commons-VFS.

        Throws:
        Exception - if any exception occurs
      • shutdown

        public void shutdown()
        Shutdown this Main application.

        Note: this is public because this can be used by other projects in unit tests for graceful shutdown. e.g, Commons-VFS. If this is not invoked properly, some unexpected exceptions may occur on shutdown hook due to an unexpected, invalid state for org.apache.lucene.index.IndexFileDeleter for instance.