A component is any part of the system that has a own identity and can be monitored for error handling. The only requirement is to emit an error event when something goes wrong, to have a name and unique component identifier.

Hierarchy

  • Transform
    • Engine

Implements

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new instance of the datapoint filter stream

    Parameters

    • name: string

      name of the transform

    • Optionaloptions: EngineOptions

      engine options

    Returns Engine

Properties

componentId: string = ...

Provider unique identifier for trace purposes

name: string

name of the transform

Accessors

Methods

  • Perform the filter strategy depending of the job type

    Parameters

    • job: OpenJobHandler

      publication job object

    • encoding: string

      encoding of the job

    • callback: (error?: Crash, chunk?: any) => void

      callback to return the job

    Returns void

  • Close the stream and release resources

    Returns void

  • Emitted when it is appropriate to resume writing data to the stream

    Parameters

    • event: "drain"
    • listener: () => void

    Returns this

  • Emitted when stream.resume() is called and readableFlowing is not true

    Parameters

    • event: "resume"
    • listener: () => void

    Returns this

  • Emitted when there is data available to be read from the stream

    Parameters

    • event: "readable"
    • listener: () => void

    Returns this

  • Emitted when stream.pause() is called and readableFlowing is not false

    Parameters

    • event: "pause"
    • listener: () => void

    Returns this

  • Due to the implementation of consumer classes, this event will never emitted

    Parameters

    • event: "error"
    • listener: (error: Crash | Error) => void

    Returns this

  • Emitted when there is no more data to be consumed from the stream

    Parameters

    • event: "end"
    • listener: () => void

    Returns this

  • Emitted whenever the stream is relinquishing ownership of a chunk of data to a consumer

    Parameters

    • event: "data"
    • listener: (chunk: any) => void

    Returns this

  • Emitted when the stream have been closed

    Parameters

    • event: "close"
    • listener: () => void

    Returns this

  • Emitted on every state change

    Parameters

    • event: "status"
    • listener: (providerState: "pass" | "fail" | "warn") => void

    Returns this

  • Emitted when the stream is finished

    Parameters

    • event: "finish"
    • listener: () => void

    Returns this

  • Emitted when the stream is piped with a readable stream

    Parameters

    • event: "pipe"
    • listener: (source: Readable) => void

    Returns this

  • Emitted when the stream is piped with a readable stream

    Parameters

    • event: "unpipe"
    • listener: (source: Readable) => void

    Returns this

  • Emitted when the inactivity time exceeds the limit

    Parameters

    • event: "hold"
    • listener: () => void

    Returns this

  • Start the stream

    Returns void

  • Stop the stream

    Returns void