|
Kieker 1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectkieker.tools.logReplayer.RealtimeReplayDistributor
public class RealtimeReplayDistributor
IMonitoringRecordConsumerPlugin that distributes the log records to the worker thread for "real time" replays.
| Constructor Summary | |
|---|---|
RealtimeReplayDistributor(int numWorkers,
IMonitoringRecordConsumerPlugin cons,
CountDownLatch terminationLatch)
Constructs a RealtimeReplayDistributor. |
|
| Method Summary | |
|---|---|
void |
decreaseActive()
|
boolean |
execute()
Initiates the start of a component. |
int |
getNumWorkers()
|
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 |
| 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 replayed| Method Detail |
|---|
public boolean newMonitoringRecord(IMonitoringRecord monitoringRecord)
IMonitoringRecordReceiver
newMonitoringRecord in interface IMonitoringRecordReceivermonitoringRecord - the record.
public boolean execute()
IAnalysisPlugin
execute in interface IAnalysisPluginpublic Collection<Class<? extends IMonitoringRecord>> getRecordTypeSubscriptionList()
IMonitoringRecordConsumerPlugin
getRecordTypeSubscriptionList in interface IMonitoringRecordConsumerPluginpublic final long getOffset()
public final long getStartTime()
public void terminate(boolean error)
IAnalysisPlugin
terminate in interface IAnalysisPluginerror - true iff an error occured.public void decreaseActive()
public int getNumWorkers()
|
Kieker 1.4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||