pub struct ServiceOrchestrator { /* private fields */ }
Expand description

The ServiceOrchestrator manages initialization and shutdown of services.

Implementations

👎 Deprecated since 0.5.1:

please use ServiceOrchestratorBuilder instead

Create a new ServiceOrchestrator. This starts up 3 threads for relaying messages to and from services. Returns the ServiceOrchestrator and the threads JoinHandles

Initialize (create and start) a service according to the specified definition. The arguments provided must match those required to create the service.

Stop the specified service.

Purge the specified service state, based on its service implementation.

Shut down (stop and destroy) all services managed by this ServiceOrchestrator and single the ServiceOrchestrator to shutdown

List services managed by this ServiceOrchestrator; filters may be provided to only show services on specified circuit(s) and of given service type(s).

Create a service that has previously been stopped according to the specified definition. The arguments provided must match those required to create the service.

Trait Implementations

The ServiceOrchestrator exposes REST API resources provided by the ServiceFactory::get_rest_endpoints methods of its factories. Each factory defines the endpoints provided by the services it creates; the ServiceOrchestrator then exposes these endpoints under the /{service_type}/{circuit}/{service_id} route.

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

Returns the argument unchanged.

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

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

Calls U::from(self).

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

Convert self to an expression for Diesel’s query builder. Read more

Convert &self to an expression for Diesel’s query builder. Read more

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