pub struct TransactionManager {
    txn_id_counter: AtomicUsize,
    epic_completion_handle_map: DashMap<EcbId, Arc<EpicCompletionHandle>>,
    task_fwd_fn: Box<dyn Fn(SpawnedTask, Option<HostId>) + Send + Sync>,
    tasks_fwd_to_fn: Box<dyn Fn(Vec<SpawnedTask>, Option<HostId>) + Send + Sync>,
    task_completion_fwd_fn: Box<dyn Fn(TaskCompletionNotification) + Send + Sync>,
    async_rt_manager: Arc<AsyncRuntimeManager>,
}

Fields§

§txn_id_counter: AtomicUsize§epic_completion_handle_map: DashMap<EcbId, Arc<EpicCompletionHandle>>§task_fwd_fn: Box<dyn Fn(SpawnedTask, Option<HostId>) + Send + Sync>§tasks_fwd_to_fn: Box<dyn Fn(Vec<SpawnedTask>, Option<HostId>) + Send + Sync>§task_completion_fwd_fn: Box<dyn Fn(TaskCompletionNotification) + Send + Sync>§async_rt_manager: Arc<AsyncRuntimeManager>

Implementations§

source§

impl TransactionManager

source

fn new( async_rt_manager: Arc<AsyncRuntimeManager>, _location_manager: AsyncArc<LocationManager> ) -> Self

source

pub fn get_transaction_manager( maybe_rt_manager: Option<Arc<AsyncRuntimeManager>>, maybe_location_manager: Option<AsyncArc<LocationManager>> ) -> &'static TransactionManager

source

pub fn get_transaction_manager_mut( maybe_rt_manager: Option<Arc<AsyncRuntimeManager>>, maybe_location_manager: Option<AsyncArc<LocationManager>> ) -> &'static mut TransactionManager

source

pub fn set_task_fwd_fn( &mut self, task_fwd_fn: Box<dyn Fn(SpawnedTask, Option<HostId>) + Send + Sync> )

source

pub fn set_tasks_fwd_to_fn( &mut self, tasks_fwd_to_fn: Box<dyn Fn(Vec<SpawnedTask>, Option<HostId>) + Send + Sync> )

source

pub fn set_task_completion_fwd_fn( &mut self, task_completion_fwd_fn: Box<dyn Fn(TaskCompletionNotification) + Send + Sync> )

source

pub async fn execute_nando( &self, activation_intent: NandoActivationIntent, await_epic_result: bool, with_plan: Option<String> ) -> Result<(Vec<ActivationOutput>, Vec<(ObjectId, ObjectVersion)>), String>

source

pub async fn execute_spawned_task( &self, spawned_task: SpawnedTask ) -> Result<(Vec<ActivationOutput>, Vec<(ObjectId, ObjectVersion)>), String>

source

pub fn store_spawned_task(&self, spawned_task: SpawnedTask)

source

pub async fn whomstone_object( &self, object_id: ObjectId ) -> Result<ObjectVersion, String>

source

pub fn mark_epic_completed( &self, root_ecb_id: EcbId, completion_timestamp: Option<Instant> )

source

pub async fn get_epic_result_and_status( &self, ecb_id: EcbId ) -> Result<(Option<NandoResult>, TaskStatus), String>

source

pub fn forward_task_completion( &self, task_completion_notification: TaskCompletionNotification )

source

pub fn schedule_parkable_entry(&self, entry: ControlRegistryEntry)

source

pub async fn handle_task_completion( &self, completed_task: EcbId, tasks_to_notify: Vec<(DownstreamTaskDependency, Option<NandoResult>)> ) -> Vec<ControlRegistryEntry>

source

pub fn forward_spawned_task(&self, spawned_task: SpawnedTask)

source

pub fn forward_spawned_tasks(&self, spawned_tasks: &Vec<SpawnedTask>)

source

pub fn forward_spawned_task_to( &self, spawned_task: SpawnedTask, host_id: HostId )

source

pub fn forward_spawned_tasks_to( &self, spawned_tasks: Vec<SpawnedTask>, host_id: HostId )

source

pub fn publish_objects( &self, objects_to_publish: Vec<(ObjectId, ObjectVersion)> )

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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