}
public static synchronized boolean saveSnapshot(DataStore datastore, File file)
{
//create a sorted properties for all datapoints
SortedProperties snapshot = new SortedProperties();
datastore.getDataTable().createSnapshot(snapshot);
//maybe should check if the file exist and what todo if it is
//TODO
//save it into the file
try
{
snapshot.store(new FileOutputStream(file.getAbsolutePath()), null);
}
catch (IOException ioe)
{
logger_.error("Can not create snapshot file: " + file.getAbsolutePath());
logger_.error("Exception: " + ioe.getMessage());