public class SchedulerAccess extends CommandLineParser
SchedulerControlling
interface, in particular it allows adding and removing targets as well as
updating of certain properties.CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
static String |
FOOT
A footer usage message.
|
static String |
ONESWITCHES
The command line switches understood by this access class, one arg.
|
static String |
TWOSWITCHES
The command line switches understood by this access class, two arg.
|
static Map<String,String> |
USE
The usage map.
|
static String |
ZEROSWITCHES
The command line switches understood by this class with no arg.
|
HELPSWITCHES| Constructor and Description |
|---|
SchedulerAccess()
Constructs a new camera access instance.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] arg)
Parses the command line arguments and procceed with transfering to a
registry-bound target list.
|
private static void |
printList(List<?> l)
Prints the list, item by item on a line.
|
private Remote |
processOn()
Process the command line arguments, when parsing was already done.
|
protected boolean |
processSwitches(SchedulerControlling master)
Process the command line switches found.
|
addHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usagepublic static final String ZEROSWITCHES
public static final String ONESWITCHES
public static final String TWOSWITCHES
public static final String FOOT
public SchedulerAccess()
private Remote processOn()
protected boolean processSwitches(SchedulerControlling master) throws ParseException, TransformerException, InitException
ListenerControlling and one of the switches defined in
ONESWITCHES is given, the appropriate method of the listener
control is called. Note that the command line must be parsed before
calling this method.InitExceptionParseExceptionTransformerExceptionprivate static final void printList(List<?> l)