Package com.redwood.scheduler.api.tool
Class Main
- java.lang.Object
-
- com.redwood.scheduler.api.tool.Main
-
public class Main extends Object
Command line entry points.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Long
intMain(String[] args, OutputStream stdout, OutputStream stderr)
Entry point from command line, this method does not call System.exit(), but returns a return code.static void
usage(OutputHandler stdout)
-
-
-
Method Detail
-
intMain
public static Long intMain(String[] args, OutputStream stdout, OutputStream stderr) throws EventRaiseException, LoginException, IOException
Entry point from command line, this method does not call System.exit(), but returns a return code.- Parameters:
args
- command line arguments.stdout
- standard output.stderr
- standard error.- Returns:
- 0 for success, other codes otherwise.
- Throws:
EventRaiseException
- event not raisedLoginException
- unable to loginIOException
- could not open files
-
usage
public static void usage(OutputHandler stdout) throws IOException
- Throws:
IOException
-
-