|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openmuc.mux.dbprovider.slotsdb.FileObject
public class FileObject
Constructor Summary | |
---|---|
FileObject(java.io.File file)
|
|
FileObject(java.lang.String filename)
|
Method Summary | |
---|---|
void |
append(double value,
long timestamp,
byte flag)
|
void |
close()
Closes and Flushes underlying Input- and OutputStreams |
void |
createFileAndHeader(long startTimeStamp,
long stepIntervall)
creates the file, if it doesn't exist. |
void |
flush()
Flushes the underlying Data Streams. |
long |
getStartTimeStamp()
Return the Timestamp of the first stored Value in this File. |
long |
getStoringPeriod()
|
long |
getTimestampForLatestValue()
|
Value |
read(long timestamp)
|
java.util.List<Value> |
read(long start,
long end)
Returns a List of Value Objects containing the measured Values between provided start and end timestamp |
java.util.List<Value> |
readFully()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileObject(java.lang.String filename) throws java.io.IOException
java.io.IOException
public FileObject(java.io.File file) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public long getStartTimeStamp()
public long getStoringPeriod()
public void createFileAndHeader(long startTimeStamp, long stepIntervall) throws java.io.IOException
startTimeStamp
- for file header
java.io.IOException
public void append(double value, long timestamp, byte flag) throws java.io.IOException
java.io.IOException
public long getTimestampForLatestValue()
public Value read(long timestamp) throws java.io.IOException
java.io.IOException
public java.util.List<Value> read(long start, long end) throws java.io.IOException
start
- end
-
java.io.IOException
public java.util.List<Value> readFully() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |