|
Kieker 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.monitoring.writer.database.SyncDbWriter
public final class SyncDbWriter
Stores monitoring data into a database. Warning! This class is an academic prototype and not intended for usage in any critical system. The insertMonitoringData methods should be thread-save (also in combination with experimentId changes), so that they may be used by multiple threads at the same time. We have tested this in various applications, in combination with the standard MySQL Connector/J database driver. We experienced that the monitoring it is not a major bottleneck if not too many measurement points are used (e.g., 30/second). However, there is additional performance tuning possible. For instance, by collecting multiple database commands before sending it to the database, or by implementing "statistical profiling", which stores only samples instead of all executions.
Constructor Summary | |
---|---|
SyncDbWriter()
|
|
SyncDbWriter(String dbDriverClassname,
String dbConnectionAddress,
String dbTableName,
boolean setInitialExperimentIdBasedOnLastId)
|
Method Summary | |
---|---|
String |
getInfoString()
Returns a human-readable information string about the writer's configuration and state. |
Vector<AbstractWorkerThread> |
getWorkers()
Returns a vector of workers, or null if none. |
boolean |
init(String initString)
Initialize instance from passed initialization string which is typically a list of separated parameter/values pairs. |
boolean |
newMonitoringRecord(IMonitoringRecord monitoringRecord)
This method is used to store monitoring data into the database or file system. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SyncDbWriter()
public SyncDbWriter(String dbDriverClassname, String dbConnectionAddress, String dbTableName, boolean setInitialExperimentIdBasedOnLastId)
Method Detail |
---|
public boolean init(String initString)
IMonitoringLogWriter
init
in interface IMonitoringLogWriter
initString
- the initialization string
public boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
newMonitoringRecord
in interface IMonitoringRecordReceiver
monitoringRecord
- the record.
public Vector<AbstractWorkerThread> getWorkers()
IMonitoringLogWriter
getWorkers
in interface IMonitoringLogWriter
public String getInfoString()
IMonitoringLogWriter
getInfoString
in interface IMonitoringLogWriter
|
Kieker 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |