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

  • EventEmitter
    • AdapterWrapper

Implements

Constructors

Accessors

  • get componentId(): string
  • Component identifier

    Returns string

  • get name(): string
  • Component name

    Returns string

  • get status(): "pass" | "fail" | "warn"
  • Overall component status

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

Methods

  • Close the OpenC2 Adapter to the underlayer transport system

    Returns Promise<void>

  • Connect the OpenC2 Adapter to the underlayer transport system

    Returns Promise<void>

  • Disconnect the OpenC2 Adapter to the underlayer transport system

    Returns Promise<void>