|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
util.StatusAccess
public class StatusAccess
A small class allowing command-line controled access to bound
RmiStatusProviding instances.
CommandLineParser| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
static String |
FOOT
A footer usage message. |
static Map<String,String> |
USE
|
static String |
ZEROSWITCHES
The zero-argument command line switches understood. |
| Constructor Summary | |
|---|---|
StatusAccess()
Constructs a new listener shifter. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Register and/or deregisters a listener from a given caster. |
boolean |
process()
Process the command line arguments, when parsing was already done. |
boolean |
process(String[] arg)
Processes the command line arguments. |
protected boolean |
processSwitches(Remote listener)
Process the command line switches found. |
| Methods inherited from class util.CommandLineParser |
|---|
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String ZEROSWITCHES
public static Map<String,String> USE
public static final String FOOT
| Constructor Detail |
|---|
public StatusAccess()
| Method Detail |
|---|
public boolean process(String[] arg)
throws ParseException
ListenerControlling. If this conversion is successful the
processSwitches(java.rmi.Remote) method is called.
ParseExceptionpublic boolean process()
protected boolean processSwitches(Remote listener)
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.
public static void main(String[] arg)
throws ParseException
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||