Class SyntheticFlowTimestampPolicy
- java.lang.Object
-
- org.opennms.nephron.testing.flowgen.SyntheticFlowTimestampPolicy
-
- Direct Known Subclasses:
SyntheticFlowTimestampPolicy.WithLimitedDelay
public abstract class SyntheticFlowTimestampPolicy extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSyntheticFlowTimestampPolicy.WithLimitedDelayInspired byCustomTimestampPolicyWithLimitedDelay
-
Constructor Summary
Constructors Constructor Description SyntheticFlowTimestampPolicy()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract org.joda.time.InstantgetCheckpointInstant()Returns the time instant that is stored inFlowReader.CheckpointMarkinstances.abstract org.joda.time.InstantgetTimestampForFlow(org.opennms.netmgt.flows.persistence.model.FlowDocument fd)Side effecting method that returns the timestamp for a flow document.abstract org.joda.time.InstantgetWatermark()Returns the estimation of the current watermark.
-
-
-
Method Detail
-
getTimestampForFlow
public abstract org.joda.time.Instant getTimestampForFlow(org.opennms.netmgt.flows.persistence.model.FlowDocument fd)
Side effecting method that returns the timestamp for a flow document. A timestamp policy may track the observed flow documents in order to update its watermark estimation.
-
getWatermark
public abstract org.joda.time.Instant getWatermark()
Returns the estimation of the current watermark.
-
getCheckpointInstant
public abstract org.joda.time.Instant getCheckpointInstant()
Returns the time instant that is stored inFlowReader.CheckpointMarkinstances. Different timestamp policies may return different time instances, e.g. the current watermark or the maximum observed flow timestamp.
-
-