|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hackystat.sensorshell.OfflineManager
public class OfflineManager
Provides a facility for: (a) persisting buffered SensorData instances locally when the SensorBase host is not available and (b) recovering them during a subsequent invocation of SensorShell.
Field Summary | |
---|---|
(package private) boolean |
hasOfflineData
Whether or not data has been stored offline. |
Constructor Summary | |
---|---|
OfflineManager(SingleSensorShell shell,
java.lang.String tool)
Creates an OfflineManager given the parent shell and the tool. |
Method Summary | |
---|---|
boolean |
hasOfflineData()
Returns true if this offline manager has successfully stored any data offline. |
void |
recover()
Attempts to resend any previously stored SensorDatas instances from their serialized files. |
void |
store(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorDatas sensorDatas)
Stores a SensorDatas instance to a serialized file in the offline directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean hasOfflineData
Constructor Detail |
---|
public OfflineManager(SingleSensorShell shell, java.lang.String tool)
shell
- The parent shell.tool
- The tool.Method Detail |
---|
public void store(org.hackystat.sensorbase.resource.sensordata.jaxb.SensorDatas sensorDatas)
sensorDatas
- The SensorDatas instance to be stored.public boolean hasOfflineData()
public void recover() throws SensorShellException
SensorShellException
- If problems occur sending the recovered data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |