Struct coord::Timestamper[][src]

pub struct Timestamper {
    rt_sources: HashMap<GlobalId, RtTimestampConsumer>,
    tx: UnboundedSender<Message>,
    rx: Receiver<TimestampMessage>,
    timestamp_frequency: Duration,
    metrics: Metrics,
}

Fields

rt_sources: HashMap<GlobalId, RtTimestampConsumer>

Current list of up to date sources that use a real time consistency model

tx: UnboundedSender<Message>

Channel through which timestamp data updates are communicated through the coordinator

rx: Receiver<TimestampMessage>

Channel through which to timestamp metadata updates are received from the coordinator (to add or remove the timestamping of a source)

timestamp_frequency: Duration

Frequency at which thread should run

metrics: Metrics

Metrics that the timestamper reports.

Implementations

Run the update function in a loop at the specified frequency. Acquires timestamps using either the Kafka topic ground truth

Updates list of timestamp sources based on coordinator information. If using using the real-time timestamping logic, then maintain a list of Kafka consumers that poll topics to check how much data has been generated. If using the Kafka source timestamping logic, then keep a mapping of (name,id) to translate user- defined timestamps to GlobalIds

Creates a RT connector TODO(rkhaitan): this function burns my eyes

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more