public interface IWriterController extends IMonitoringRecordReceiver
Modifier and Type | Method and Description |
---|---|
boolean |
newMonitoringRecord(IMonitoringRecord record)
Called for each new record to write it out to the pre-configured target (e.g., file system, database, or messaging queue).
|
void |
waitForTermination(long timeoutInMs)
Waits for the termination of the monitoring controller.
|
boolean newMonitoringRecord(IMonitoringRecord record)
Called for each new record to write it out to the pre-configured target (e.g., file system, database, or messaging queue). This method could invoke the given
record
's methods declared in IMonitoringRecord
and thus alter its loggingTimestamp
property.
Notice, that this method should not throw an exception, but indicate an error by the return value false.
newMonitoringRecord
in interface IMonitoringRecordReceiver
record
- the record.void waitForTermination(long timeoutInMs) throws java.lang.InterruptedException
MonitoringController.terminateMonitoring()
.timeoutInMs
- timeout in milliseconds to wait (a timeout of 0 means to wait forever)java.lang.InterruptedException
- if the calling thread was interrupted while waiting for the terminationCopyright 2017 Kieker Project, http://kieker-monitoring.net