public abstract class AbstractLogReplayer
extends java.lang.Object
IMonitoringController with a given Configuration.
The AbstractLogReplayer can filter by timestamp and replay in real-time.| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_TIMESTAMP |
static long |
MIN_TIMESTAMP |
| Constructor and Description |
|---|
AbstractLogReplayer(java.lang.String monitoringConfigurationFile,
boolean realtimeMode,
double realtimeAccelerationFactor,
boolean keepOriginalLoggingTimestamps,
int numRealtimeWorkerThreads,
long ignoreRecordsBeforeTimestamp,
long ignoreRecordsAfterTimestamp) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractReaderPlugin |
createReader(IAnalysisController analysisInstance)
Implementing classes return the reader to be used for reading the monitoring log.
|
protected abstract java.lang.String |
readerOutputPortName()
Implementing classes returns the name of the reader's output port which provides the
IMonitoringRecords from the monitoring log. |
boolean |
replay()
Replays the monitoring log terminates after the last record was passed to the configured
IMonitoringController. |
public static final long MAX_TIMESTAMP
public static final long MIN_TIMESTAMP
public AbstractLogReplayer(java.lang.String monitoringConfigurationFile,
boolean realtimeMode,
double realtimeAccelerationFactor,
boolean keepOriginalLoggingTimestamps,
int numRealtimeWorkerThreads,
long ignoreRecordsBeforeTimestamp,
long ignoreRecordsAfterTimestamp)
monitoringConfigurationFile - The name of the monitoring.properties file.realtimeMode - Determines whether to use real time mode or not.realtimeAccelerationFactor - Determines whether to accelerate (value > 1.0) or slow down (<1.0) the replay in realtime mode by the given factor.
Choose a value of 1.0 for "real" realtime mode (i.e., no acceleration/slow down)keepOriginalLoggingTimestamps - Determines whether the original logging timestamps will be used of whether the timestamps will be modified.numRealtimeWorkerThreads - Determines how many realtime worker threads should be used.ignoreRecordsBeforeTimestamp - The lower limit for the time stamps of the records.ignoreRecordsAfterTimestamp - The upper limit for the time stamps of the records.public boolean replay()
IMonitoringController.protected abstract java.lang.String readerOutputPortName()
IMonitoringRecords from the monitoring log.protected abstract AbstractReaderPlugin createReader(IAnalysisController analysisInstance)
analysisInstance - The analysis controller which will be the parent of the reader.Copyright 2017 Kieker Project, http://kieker-monitoring.net