|
Kieker 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kieker.tools.logReplayer.RealtimeReplayDistributor
public class RealtimeReplayDistributor
IMonitoringRecordConsumerPlugin that distributes the log records to the worker thread for "real time" replays.
Field Summary | |
---|---|
int |
numWorkers
|
Constructor Summary | |
---|---|
RealtimeReplayDistributor(int numWorkers,
IMonitoringRecordConsumerPlugin cons,
CountDownLatch terminationLatch)
Constructs a RealtimeReplayDistributor. |
Method Summary | |
---|---|
void |
decreaseActive()
|
boolean |
execute()
Initiates the start of a component. |
long |
getOffset()
|
Collection<Class<? extends IMonitoringRecord>> |
getRecordTypeSubscriptionList()
Simply return null to get records of all types. |
long |
getStartTime()
|
boolean |
newMonitoringRecord(IMonitoringRecord monitoringRecord)
Called for each new record. |
void |
terminate(boolean error)
Initiates a termination of the component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int numWorkers
Constructor Detail |
---|
public RealtimeReplayDistributor(int numWorkers, IMonitoringRecordConsumerPlugin cons, CountDownLatch terminationLatch)
numWorkers
- number of worker threads processing the internal record buffercons
- the consumerterminationLatch
- will be decremented after the last record was replayedMethod Detail |
---|
public boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
IMonitoringRecordReceiver
newMonitoringRecord
in interface IMonitoringRecordReceiver
monitoringRecord
- the record.
public boolean execute()
IAnalysisPlugin
execute
in interface IAnalysisPlugin
public Collection<Class<? extends IMonitoringRecord>> getRecordTypeSubscriptionList()
IMonitoringRecordConsumerPlugin
getRecordTypeSubscriptionList
in interface IMonitoringRecordConsumerPlugin
public final long getOffset()
public final long getStartTime()
public void terminate(boolean error)
IAnalysisPlugin
terminate
in interface IAnalysisPlugin
error
- true iff an error occured.public void decreaseActive()
|
Kieker 1.3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |