kieker.tools.logReplayer
Class AbstractLogReplayer
java.lang.Object
kieker.tools.logReplayer.AbstractLogReplayer
- Direct Known Subclasses:
- FilesystemLogReplayer, JMSLogReplayer
public abstract class AbstractLogReplayer
- extends java.lang.Object
Replays a monitoring log to a IMonitoringController
with a given Configuration
.
The AbstractLogReplayer
can filter by timestamp and replay in real-time.
- Since:
- 1.6
- Author:
- Andre van Hoorn
Constructor Summary |
AbstractLogReplayer(java.lang.String monitoringConfigurationFile,
boolean realtimeMode,
double realtimeAccelerationFactor,
boolean keepOriginalLoggingTimestamps,
int numRealtimeWorkerThreads,
long ignoreRecordsBeforeTimestamp,
long ignoreRecordsAfterTimestamp)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_TIMESTAMP
public static final long MAX_TIMESTAMP
- See Also:
- Constant Field Values
MIN_TIMESTAMP
public static final long MIN_TIMESTAMP
- See Also:
- Constant Field Values
AbstractLogReplayer
public AbstractLogReplayer(java.lang.String monitoringConfigurationFile,
boolean realtimeMode,
double realtimeAccelerationFactor,
boolean keepOriginalLoggingTimestamps,
int numRealtimeWorkerThreads,
long ignoreRecordsBeforeTimestamp,
long ignoreRecordsAfterTimestamp)
- Parameters:
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.
replay
public boolean replay()
- Replays the monitoring log terminates after the last record was passed to the configured
IMonitoringController
.
- Returns:
- true on success; false otherwise
readerOutputPortName
protected abstract java.lang.String readerOutputPortName()
- Implementing classes returns the name of the reader's output port which provides the
IMonitoringRecord
s from the monitoring log.
- Returns:
- The name of the reader's output port.
createReader
protected abstract AbstractReaderPlugin createReader(IAnalysisController analysisInstance)
- Implementing classes return the reader to be used for reading the monitoring log.
- Parameters:
analysisInstance
- The analysis controller which will be the parent of the reader.
- Returns:
- The reader which can be used to read the monitoring log.
Copyright 2015 Kieker Project, http://kieker-monitoring.net