org.openmuc.mux.dbprovider.slotsdb
Class FileObjectProxy

java.lang.Object
  extended by org.openmuc.mux.dbprovider.slotsdb.FileObjectProxy

public class FileObjectProxy
extends java.lang.Object


Constructor Summary
FileObjectProxy(java.lang.String rootNodePath)
          Creates an instance of a FileObjectProxy
The rootNodePath (output folder) usually is specified in JVM flag: org.openmuc.mux.dbprovider.slotsdb.dbfolder
 
Method Summary
 void appendValue(java.lang.String label, double value, long timestamp, byte state, long storingPeriod)
          Appends a new Value to Slots Database.
 void flush()
          Flushes all Datastreams from all FileObjectLists and FileObjects
 Value read(java.lang.String label, long timestamp)
           
 java.util.List<Value> read(java.lang.String label, long start, long end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileObjectProxy

public FileObjectProxy(java.lang.String rootNodePath)
Creates an instance of a FileObjectProxy
The rootNodePath (output folder) usually is specified in JVM flag: org.openmuc.mux.dbprovider.slotsdb.dbfolder

Method Detail

appendValue

public void appendValue(java.lang.String label,
                        double value,
                        long timestamp,
                        byte state,
                        long storingPeriod)
                 throws java.io.IOException
Appends a new Value to Slots Database.

Parameters:
label -
value -
timestamp -
state -
storingPeriod -
Throws:
java.io.IOException

read

public Value read(java.lang.String label,
                  long timestamp)
           throws java.io.IOException
Throws:
java.io.IOException

read

public java.util.List<Value> read(java.lang.String label,
                                  long start,
                                  long end)
                           throws java.io.IOException
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flushes all Datastreams from all FileObjectLists and FileObjects

Throws:
java.io.IOException