|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.edu.agh.cast.data.logging.FileRawDataLogger
public class FileRawDataLogger
An observer which logs events to file.
| Constructor Summary | |
|---|---|
FileRawDataLogger()
|
|
| Method Summary | |
|---|---|
void |
finish(String projectLocation,
String dataSetId)
Writes the content of the buffer into the log file logFilePath. |
static String |
generateLogFilePath(String projectLocation,
String dataSetId)
Generates a path to a log file for the current project location and data set id. |
void |
initialize(String importedFilePath,
String templateName)
Logs the start of the import operation into the buffer. |
static boolean |
logFileExists(String projectLocation,
String dateSetId)
Checks whether a log file for the current project location and data set id already exists. |
void |
notifyRemoved(DataRow row)
Notifies when row is removed. |
void |
notifyRestored(DataRow row)
Notifies when row is restored. |
void |
notifyValueChanged(DataRow row,
String oldValue,
String newValue)
Notifies when new value is set in specified row. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileRawDataLogger()
| Method Detail |
|---|
public void finish(String projectLocation,
String dataSetId)
buffer into the log file logFilePath.
projectLocation - the location of the projectdataSetId - the id of the data set
public void initialize(String importedFilePath,
String templateName)
buffer.
importedFilePath - the path to the imported filetemplateName - the template name used by the import operationpublic void notifyRemoved(DataRow row)
notifyRemoved in interface IRawDataObserverrow - row which is removedIRawDataObserver.notifyRemoved(pl.edu.agh.cast.rawdata.DataRow)public void notifyRestored(DataRow row)
notifyRestored in interface IRawDataObserverrow - row which is restoredIRawDataObserver.notifyRestored(pl.edu.agh.cast.rawdata.DataRow)
public void notifyValueChanged(DataRow row,
String oldValue,
String newValue)
notifyValueChanged in interface IRawDataObserverrow - row which is editedoldValue - old valuenewValue - new valueIRawDataObserver.notifyValueChanged(pl.edu.agh.cast.rawdata.DataRow,
java.lang.String, java.lang.String)
public static boolean logFileExists(String projectLocation,
String dateSetId)
projectLocation - the location of the projectdateSetId - the id of the data set
true if the logger file exists; false otherwise
public static String generateLogFilePath(String projectLocation,
String dataSetId)
projectLocation - the location of the projectdataSetId - the is of the data set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||