public static final class WeatherStation.Manage extends CommandLineParser
CommandLineParser.Template, CommandLineParser.Test| Modifier and Type | Field and Description |
|---|---|
(package private) static WeatherStation.Manage |
access
The access instance of this class.
|
private static String |
DEFBINDNAME
The default bindname used for rmi-access to the weather station.
|
(package private) static String |
DUMP
The switch for dumping all sensor names to system.out.
|
(package private) static String |
FOOT
A footer message.
|
(package private) static String |
SWITCHES
The switches for removing and adding a sensor.
|
(package private) static Map<String,String> |
USE
The detailed user of the switches.
|
HELPSWITCHES| Modifier | Constructor and Description |
|---|---|
protected |
Manage()
Constructs the command line parser instance used with this class.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] arg)
The entry point for the adding/removing sensors from the weather
station.
|
(package private) boolean |
process(String[] arg)
Processes the command line.
|
addHelpSwitches, getArguments, getCallerName, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasHelpSwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usageprivate static final String DEFBINDNAME
static WeatherStation.Manage access
static final String SWITCHES
static final String DUMP
static final String FOOT
protected Manage()
boolean process(String[] arg) throws ParseException
DEFBINDNAME. Note that removing a sensor from the weather
station does not kill the sensor itself, so it will continue
to spread data, until its binding is invalidated (i.e. replaced).ParseExceptionpublic static void main(String[] arg) throws ParseException
ParseException