org.apache.qpid.example
Class OptionParser
java.lang.Object
org.apache.qpid.example.OptionParser
- Direct Known Subclasses:
- Drain, Spout
public class OptionParser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BROKER
static final OptionParser.Option BROKER
HELP
static final OptionParser.Option HELP
TIMEOUT
static final OptionParser.Option TIMEOUT
CON_OPTIONS
static final OptionParser.Option CON_OPTIONS
BROKER_OPTIONS
static final OptionParser.Option BROKER_OPTIONS
optMap
protected Map<String,Object> optMap
optDefs
protected static final List<OptionParser.Option> optDefs
usage
protected String usage
desc
protected String desc
address
protected String address
OptionParser
public OptionParser(String[] args,
String usage,
String desc)
isHelp
public boolean isHelp()
printHelp
public void printHelp()
containsOp
protected boolean containsOp(OptionParser.Option op)
getOp
protected String getOp(OptionParser.Option op)
createConnection
protected Connection createConnection()
throws Exception
- Throws:
Exception
Licensed to the Apache Software Foundation