Options
All
  • Public
  • Public/Protected
  • All
Menu

A comunica Constant Hylar RDFs Dereference Actor.

Hierarchy

  • ActorDereference
    • ActorDereferenceConstantHylarRdfs

Index

Constructors

constructor

Properties

Readonly beforeActors

beforeActors: Actor<IActionDereference, IActorTest, IActorDereferenceOutput>[]

Readonly bus

bus: Bus<Actor<IActionDereference, IActorTest, IActorDereferenceOutput>, IActionDereference, IActorTest, IActorDereferenceOutput>

Readonly name

name: string

Methods

deinitialize

  • deinitialize(): Promise<any>
  • Deinitialize this actor. This should be used for cleaning up things when the application is shut down, such as closing files and removing temporary files.

    Returns Promise<any>

    A promise that resolves when the actor has been deinitialized.

Protected dereferenceErrorHandler

  • dereferenceErrorHandler<N, M>(action: IActionDereference, error: unknown, output: N): Promise<N & { data: M }>
  • Handle the given error as a rejection or delegate it to the logger, depending on whether or not hard errors are enabled.

    Type parameters

    • N

    • M: Readable<M>

    Parameters

    • action: IActionDereference

      An action.

    • error: unknown

      An error that has occurred.

    • output: N

      Data to add to the output

    Returns Promise<N & { data: M }>

Protected getDefaultLogData

  • getDefaultLogData(context: IActionContext, data?: () => any): any
  • Parameters

    • context: IActionContext
    • Optional data: () => any
        • (): any
        • Returns any

    Returns any

Protected handleDereferenceErrors

  • handleDereferenceErrors(action: IActionDereference, error: unknown, headers?: Headers, requestTime?: number): Promise<IActorDereferenceOutput>
  • Handle the given error as a rejection or delegate it to the logger, depending on whether or not hard errors are enabled.

    Parameters

    • action: IActionDereference

      A dereference action.

    • error: unknown

      An error that has occurred.

    • Optional headers: Headers

      Optional HTTP headers to pass.

    • Optional requestTime: number

      The time it took to request the page in milliseconds.

    Returns Promise<IActorDereferenceOutput>

    A promise that rejects or resolves to an empty output.

initialize

  • initialize(): Promise<any>
  • Initialize this actor. This should be used for doing things that take a while, such as opening files.

    Returns Promise<any>

    A promise that resolves when the actor has been initialized.

Protected logDebug

  • logDebug(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

Protected logError

  • logError(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

Protected logFatal

  • logFatal(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

Protected logInfo

  • logInfo(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

Protected logTrace

  • logTrace(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

Protected logWarn

  • logWarn(context: IActionContext, message: string, data?: () => any): void
  • Parameters

    • context: IActionContext
    • message: string
    • Optional data: () => any
        • (): any
        • Returns any

    Returns void

run

  • run(action: IActionDereference): Promise<IActorDereferenceOutput>

runObservable

  • runObservable(action: IActionDereference): Promise<IActorDereferenceOutput>
  • Run the given action on this actor AND invokes the {@link Bus#onRun} method.

    Parameters

    • action: IActionDereference

      The action to run.

    Returns Promise<IActorDereferenceOutput>

    A promise that resolves to the run result.

test

  • test(action: IActionDereference): Promise<IActorTest>

Static getContextLogger

  • getContextLogger(context: IActionContext): undefined | Logger
  • Get the logger from the given context.

    Parameters

    • context: IActionContext

      An optional context.

    Returns undefined | Logger

    The logger or undefined.

Generated using TypeDoc