Struct mz_compute::compute_state::ActiveComputeState
source · pub struct ActiveComputeState<'a, A: Allocate> {
pub timely_worker: &'a mut TimelyWorker<A>,
pub compute_state: &'a mut ComputeState,
pub response_tx: &'a mut UnboundedSender<ComputeResponse>,
}
Expand description
A wrapper around ComputeState with a live timely worker and response channel.
Fields§
§timely_worker: &'a mut TimelyWorker<A>
The underlying Timely worker.
compute_state: &'a mut ComputeState
The compute state itself.
response_tx: &'a mut UnboundedSender<ComputeResponse>
The channel over which frontier information is reported.
Implementations§
source§impl<'a, A: Allocate> ActiveComputeState<'a, A>
impl<'a, A: Allocate> ActiveComputeState<'a, A>
sourcepub fn handle_compute_command(&mut self, cmd: ComputeCommand)
pub fn handle_compute_command(&mut self, cmd: ComputeCommand)
Entrypoint for applying a compute command.
sourcepub fn initialize_logging(&mut self, config: &LoggingConfig)
pub fn initialize_logging(&mut self, config: &LoggingConfig)
Initializes timely dataflow logging and publishes as a view.
sourcepub fn shutdown_logging(&mut self)
pub fn shutdown_logging(&mut self)
Disables timely dataflow logging.
This does not unpublish views and is only useful to terminate logging streams to ensure that clusterd can terminate cleanly.
sourcepub fn report_compute_frontiers(&mut self)
pub fn report_compute_frontiers(&mut self)
Send progress information to the coordinator.
sourcepub fn report_dropped_collections(&mut self)
pub fn report_dropped_collections(&mut self)
Report dropped collections to the controller.
sourcepub fn process_peeks(&mut self)
pub fn process_peeks(&mut self)
Scan pending peeks and attempt to retire each.
sourcepub fn process_subscribes(&mut self)
pub fn process_subscribes(&mut self)
Scan the shared subscribe response buffer, and forward results along.
Auto Trait Implementations§
impl<'a, A> !RefUnwindSafe for ActiveComputeState<'a, A>
impl<'a, A> !Send for ActiveComputeState<'a, A>
impl<'a, A> !Sync for ActiveComputeState<'a, A>
impl<'a, A> Unpin for ActiveComputeState<'a, A>
impl<'a, A> !UnwindSafe for ActiveComputeState<'a, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.