public class MongoDBTraceStream extends TraceHandlerCollection implements TraceStream
Constructor and Description |
---|
MongoDBTraceStream(MongoDBTraceProperties properties) |
Modifier and Type | Method and Description |
---|---|
com.tomtom.speedtools.tracer.mongo.MongoDBTraceFetcher |
getFetcher()
Return the trace fetcher, in case you wish to walk through events in your own code.
|
org.joda.time.DateTime |
moveTo(org.joda.time.DateTime time)
Rewinds the stream to given moment in time.
|
org.joda.time.DateTime |
moveToEnd()
Fast-forwards to the end of the stream.
|
org.joda.time.DateTime |
moveToStart()
Fast-rewinds to the start of the stream.
|
void |
playbackTo(org.joda.time.DateTime until)
Process remaining events up until given time.
|
void |
playbackToEnd()
Process all remaining events.
|
addTraceHandler, handleTrace, handleTraces, removeAllTraceHandlers, removeTraceHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTraceHandler, removeTraceHandler
@Inject public MongoDBTraceStream(@Nonnull MongoDBTraceProperties properties) throws UnknownHostException
UnknownHostException
@Nullable public org.joda.time.DateTime moveTo(@Nonnull org.joda.time.DateTime time)
TraceStream
moveTo
in interface TraceStream
time
- Time to move to.@Nullable public org.joda.time.DateTime moveToStart()
TraceStream
moveToStart
in interface TraceStream
@Nullable public org.joda.time.DateTime moveToEnd()
TraceStream
moveToEnd
in interface TraceStream
public void playbackTo(@Nonnull org.joda.time.DateTime until)
TraceStream
playbackTo
in interface TraceStream
until
- Time until when to process events, exclusive.public void playbackToEnd()
TraceStream
playbackToEnd
in interface TraceStream
@Nonnull public com.tomtom.speedtools.tracer.mongo.MongoDBTraceFetcher getFetcher()
Copyright © 2018 TomTom International BV. All rights reserved.