org.compass.gps.device.jdbc.snapshot
Class RAMJdbcSnapshotPersister

java.lang.Object
  extended by org.compass.gps.device.jdbc.snapshot.RAMJdbcSnapshotPersister
All Implemented Interfaces:
JdbcSnapshotPersister

public class RAMJdbcSnapshotPersister
extends Object
implements JdbcSnapshotPersister

A RAM (memory) based snapshot persister. The persister will store the data in memory for the whole device lifecycle (start to stop).

Author:
kimchy

Constructor Summary
RAMJdbcSnapshotPersister()
           
 
Method Summary
 JdbcSnapshot load()
          Loads the snapshot from memory.
 void save(JdbcSnapshot snapshot)
          Saves the snapshot to memory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RAMJdbcSnapshotPersister

public RAMJdbcSnapshotPersister()
Method Detail

load

public JdbcSnapshot load()
                  throws JdbcGpsDeviceException
Loads the snapshot from memory.

Specified by:
load in interface JdbcSnapshotPersister
Returns:
The jdbc snapshot
Throws:
JdbcGpsDeviceException

save

public void save(JdbcSnapshot snapshot)
          throws JdbcGpsDeviceException
Saves the snapshot to memory.

Specified by:
save in interface JdbcSnapshotPersister
Throws:
JdbcGpsDeviceException


Copyright (c) 2004-2009 The Compass Project.