org.hackystat.sensorshell.command
Class AutoSendCommand

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

public class AutoSendCommand
extends Command

Implements the AutoSend facility, which automatically sends all SensorData to the Sensorbase at regular intervals as specified in the sensorshell.autosend.timeinterval property.

Author:
Philip Johnson

Field Summary
 
Fields inherited from class org.hackystat.sensorshell.command.Command
cr, email, host, password, properties, shell
 
Constructor Summary
AutoSendCommand(SingleSensorShell shell, SensorShellProperties properties)
          Creates the AutoSendCommand and starts a timer-based process running that wakes up and invokes send based upon the value of the SensorShellProperties autosend timeinterval.
 
Method Summary
 SensorShellException getException()
          Returns the exception that was thrown during autosend, or null if none was thrown.
 void quit()
          Cancels the timer if there is one.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSendCommand

public AutoSendCommand(SingleSensorShell shell,
                       SensorShellProperties properties)
Creates the AutoSendCommand and starts a timer-based process running that wakes up and invokes send based upon the value of the SensorShellProperties autosend timeinterval.

Parameters:
shell - The sensorshell.
properties - The sensorproperties.
Method Detail

quit

public void quit()
Cancels the timer if there is one.


getException

public SensorShellException getException()
Returns the exception that was thrown during autosend, or null if none was thrown.

Returns:
The exception if one was thrown previously, or null if none was thrown.