org.ow2.jasmine.probe.shell
Class JasmineProbeCommand

java.lang.Object
  extended by 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

Constructor Summary
JasmineProbeCommand()
           
 
Method Summary
abstract  String getName()
           
 JasmineProbeCommandParams getParams()
           
protected  boolean parseOptions(String line, PrintStream out, PrintStream err)
          Called by all the commands that have parameters
protected  Map<String,String> parseProperties(Collection<org.ow2.jasmine.probe.JasminePropertyInfo> propsInfo, JasmineProbeCommandParams params)
          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
 void setParams(JasmineProbeCommandParams params)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JasmineProbeCommand

public JasmineProbeCommand()
Method Detail

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 description
params - contains the command parameters
Returns:
the resulting properties map
Throws:
org.ow2.jasmine.probe.JasmineProbeException


Copyright © 2011 OW2 Consortium. All Rights Reserved.