|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutil.CommandLineParser
stella.util.ClusterAccess
public class ClusterAccess
A tiny helper class that dumps the value of the stated parameter to the command line.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class util.CommandLineParser |
|---|
CommandLineParser.Test |
| Field Summary | |
|---|---|
private static String |
FOOT
The footer message. |
static String |
ONESWITCHES
The recognized switches with one argument. |
static String |
TWOSWITCHES
The recognized switches with one argument. |
private static Map |
USE
The usage map. |
static String |
ZEROSWITCHES
The recognized switches with zero argument. |
| Constructor Summary | |
|---|---|
ClusterAccess()
Constructs a new parameter cluster dump instance. |
|
| Method Summary | |
|---|---|
static void |
main(String[] arg)
Performs a look-up operation on the binding name stated on the command line. |
boolean |
process(String[] arg)
Processes the command line arguments. |
| 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 TWOSWITCHES
public static final String ONESWITCHES
public static final String ZEROSWITCHES
private static final Map USE
private static final String FOOT
| Constructor Detail |
|---|
public ClusterAccess()
| Method Detail |
|---|
public boolean process(String[] arg)
throws ParseException
RmiParameterClustering instance (i.e. a single unmatched
command parameter). This name is resolved into a reference to the
parameter cluster to query. The both command-line switches understood
either dump the entire set of parameter names to System.out (switch
'-d') or query the value of a single parameter (switch '-q').
ParseException
public static void main(String[] arg)
throws ParseException
RmiParameterClustering instance either a single
value is queried or the names of all parameters hosted are
dumped to the command line.
ParseException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||