Provider state interface

interface State {
    state: "error" | "running" | "stopped";
    fail(error: Error | Crash): Promise<void>;
    start(): Promise<void>;
    stop(): Promise<void>;
}

Properties

Methods

Properties

state: "error" | "running" | "stopped"

Actual provider state

Methods

  • Go to error state: waiting for new state o auto-fix de the problems

    Parameters

    • error: Error | Crash

      incoming error from provider

    Returns Promise<void>

  • Initialize the process: internal jobs, external dependencies connections ...

    Returns Promise<void>

  • Stop the process: internal jobs, external dependencies connections ...

    Returns Promise<void>