FSWriter

public class FSWriter extends PythonAdapter

Java wrapper for quick storing of signal data to CDB in database controller. See: fs_writer.py Warning: This class is meant to be used only in FireSignal database controller! Not elsewhere, even the nodes. Unexpected behaviour may result.

Author:pipek

Constructors

FSWriter

public FSWriter(CDBClient client, String nodeId, String hardwareId, String parameterId, long recordNumber, double time0, double sampleLength)

Methods

getFileKey

public String getFileKey()

Get the name of the dataset to write to.

getFilePath

public String getFilePath()

Get the full path where to write the file.

readSignalInfo

public void readSignalInfo()

1st step - read all information we need for file storage.

signalExists

public boolean signalExists()

Is the signal already stored in the database?

storeSignalAndFile

public void storeSignalAndFile()

2nd step - write all that is to be written to database. This step should be undertaken only if signal does not exist.