org.ow2.jasmine.probe.shell
Class JasmineProbeCommand
java.lang.Object
org.ow2.jasmine.probe.shell.JasmineProbeCommand
- Direct Known Subclasses:
- IndicatorListCommand, IndicatorListShowCommand, IndicatorShowCommand, OuterListCommand, OuterListShowCommand, OuterRemoveCommand, OuterShowCommand, ProbeCreateCommand, ProbeListCommand, ProbeListShowCommand, ProbeRemoveCommand, ProbeShowCommand, ProbeStartCommand, ProbeStopCommand, TargetListCommand, TargetListShowCommand, TargetShowCommand
public abstract class JasmineProbeCommand
- extends Object
Common code for all JasmineProbe Commands.
Contains ProbeManager reference and command line parsing.
- Author:
- danesa
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JasmineProbeCommand
public JasmineProbeCommand()
getName
public abstract String getName()
setParams
public void setParams(JasmineProbeCommandParams params)
getParams
public JasmineProbeCommandParams getParams()
parseOptions
protected boolean parseOptions(String line,
PrintStream out,
PrintStream err)
- Called by all the commands that have parameters
- Parameters:
line - out - err -
- Returns:
parseProperties
protected Map<String,String> parseProperties(Collection<org.ow2.jasmine.probe.JasminePropertyInfo> propsInfo,
JasmineProbeCommandParams params)
throws org.ow2.jasmine.probe.JasmineProbeException
- Construct a properties Map, where the keys are property names provided by propsInfo and the values of the
properties should be read from the command parameters
- Parameters:
propsInfo - contains the properties descriptionparams - contains the command parameters
- Returns:
- the resulting properties map
- Throws:
org.ow2.jasmine.probe.JasmineProbeException
Copyright © 2011 OW2 Consortium. All Rights Reserved.