public class CLIMediaManager extends AbstractLauncher
This is a command line launcher that is used to managed a media directory. It reads the configuration file to work out which sources, stores and actions are to be used with media directory. Then the actions are performed on the media directory.
It has the following usage:
usage: mm-manager [-c
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
The entry point
|
protected boolean |
processOptions(java.lang.String[] args,
org.apache.commons.cli.CommandLine cmd)
Used to check the CLI options are valid
|
protected boolean |
run()
This does the actual work of the tool.
|
getController, parseLongOption, processOptionsInternal, setConfig
addOption, checkSubCommand, displayHelp, doExit, fatal, fatal, getName, getOptions, getStderr, getStdout, handleBadSubCommandOption, info, init, launch, printOptions, printUsage, shouldDisplayHelp, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName
public static void main(java.lang.String[] args)
It has the following usage:
usage: mm-manager [-c
args
- The argumentsprotected boolean run()
run
in class BaseLauncher
protected boolean processOptions(java.lang.String[] args, org.apache.commons.cli.CommandLine cmd)
processOptions
in class AbstractLauncher
cmd
- The CLI options