org.hackystat.sensorshell.command
Class QuitCommand

java.lang.Object
  extended by org.hackystat.sensorshell.command.Command
      extended by org.hackystat.sensorshell.command.QuitCommand

public class QuitCommand
extends Command

Implements the Quit command, which sends any buffered data and closes the loggers.

Author:
Philip Johnson

Field Summary
 
Fields inherited from class org.hackystat.sensorshell.command.Command
cr, email, host, password, properties, shell
 
Constructor Summary
QuitCommand(SingleSensorShell shell, SensorShellProperties properties, SensorDataCommand sensorDataCommand, AutoSendCommand autoSendCommand)
          Creates the QuitCommand.
 
Method Summary
 void quit()
          Quits the shell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuitCommand

public QuitCommand(SingleSensorShell shell,
                   SensorShellProperties properties,
                   SensorDataCommand sensorDataCommand,
                   AutoSendCommand autoSendCommand)
Creates the QuitCommand.

Parameters:
shell - The sensorshell.
properties - The sensorproperties.
sensorDataCommand - The SensorDataCommand.
autoSendCommand - The AutoSendCommand.
Method Detail

quit

public void quit()
          throws SensorShellException
Quits the shell. Sends all data and closes the loggers.

Throws:
SensorShellException - if an exception occurred during an autosend event.