A resource is extended component that represent the access to an external/internal resource, besides the error handling and identity, it has a start, stop and close methods to manage the resource lifecycle. It also has a checks property to define the checks that will be performed over the resource to achieve the resulted status. The most typical example of a resource are the Provider that allow to access to external databases, message brokers, etc.

Hierarchy (View Summary)

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

componentId: string = ...

Component identification

Accessors

  • get checks(): Checks<any>
  • Component checks

    Returns Checks<any>

  • get name(): string
  • Component name

    Returns string

  • get status(): "pass" | "fail" | "warn"
  • Adapter health status

    Returns "pass" | "fail" | "warn"

Methods

  • Disconnect the OpenC2 Adapter to the underlayer transport system

    Returns Promise<void>

  • Disconnect the OpenC2 Adapter from the underlayer transport system

    Returns Promise<void>