org.hackystat.sensor.xmldata.option
Class MultiShellOption

java.lang.Object
  extended by org.hackystat.sensor.xmldata.option.AbstractOption
      extended by org.hackystat.sensor.xmldata.option.MultiShellOption
All Implemented Interfaces:
Option

public class MultiShellOption
extends AbstractOption

The -multishell option is deprecated and scheduled for removal. The XmlSensor will use whatever setting is present in the SensorShellProperties file. The options that is used to notify the data sending Options that a MultiSensorShell instance should be used instead of a single-threaded SensorShell.

Author:
aito

Field Summary
static java.lang.String OPTION_NAME
          This option's name, which is "-multishell".
 
Constructor Summary
MultiShellOption(XmlDataController controller, java.util.List<java.lang.String> parameters)
          Static factory method that creates an option with the specified controller and parameters.
 
Method Summary
 boolean isValid()
          Returns true if the list of parameters contains no parameters.
 void process()
          Processes this option by setting the multi-shell option to true.
 
Methods inherited from class org.hackystat.sensor.xmldata.option.AbstractOption
execute, getController, getName, getParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPTION_NAME

public static final java.lang.String OPTION_NAME
This option's name, which is "-multishell".

See Also:
Constant Field Values
Constructor Detail

MultiShellOption

public MultiShellOption(XmlDataController controller,
                        java.util.List<java.lang.String> parameters)
Static factory method that creates an option with the specified controller and parameters. The name of this option is set to "-multishell".

Parameters:
controller - the specified controller.
parameters - the specified parameters.
Method Detail

process

public void process()
Processes this option by setting the multi-shell option to true.

Specified by:
process in interface Option
Overrides:
process in class AbstractOption

isValid

public boolean isValid()
Returns true if the list of parameters contains no parameters.

Specified by:
isValid in interface Option
Specified by:
isValid in class AbstractOption
Returns:
true if this option has no parameters, false if not.