public class Main extends Object
Modifier | Constructor and Description |
---|---|
protected |
Main(String[] args)
Construct Main application instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
main(String[] args) |
void |
run()
Run this Main application.
|
void |
shutdown()
Shutdown this Main application.
|
protected Main(String[] args) throws org.apache.commons.cli.ParseException
Note: Constructor is protected because other projects such as Commons VFS can extend this for some reasons (e.g, unit testing against Jackrabbit WebDAV).
org.apache.commons.cli.ParseException
public void run() throws Exception
Note: this is public because this can be used by other projects in unit tests. e.g, Commons-VFS.
Exception
- if any exception occurspublic void shutdown()
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.
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.