Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SequencerService

Index

Methods

  • Sends command to the sequencer to call the diagnostic mode handler of the sequencer's script

    Parameters

    • startTime: Date

      time at which the diagnostic mode will take effect

    • hint: string

      String to support diagnostic data mode

    Returns Promise<DiagnosticModeResponse>

    DiagnosticModeResponse as Promise

  • isAvailable(): Promise<boolean>
  • isOnline(): Promise<boolean>
  • queryFinal(runId: string, timeoutInSeconds: number): Promise<SubmitResponse>
  • Queries the response of the sequence of given id and returns the final SubmitResponse If sequence is not finished it waits till the given timeout

    Parameters

    • runId: string

      runId of the sequence

    • timeoutInSeconds: number

      timeout within which result is expected.

    Returns Promise<SubmitResponse>

    SubmitResponse as Promise

  • Submit the given sequence to the sequencer and waits until sequence execution completed and returns the final SubmitResponse

    Parameters

    • sequence: Sequence

      sequence to run on the sequencer

    • timeoutInSeconds: number

      timeout within which result is expected.

    Returns Promise<SubmitResponse>

    SubmitResponse as Promise

  • Subscribes to the changes in state of sequencer which includes SequencerState (i.e Idle, Loaded, etc) and current StepList. The callback will be called with new SequencerStateResponse on state change and returns a subscription to unsubscribe.

    Returns (onStateChange: (sequencerStateResponse: SequencerStateResponse) => void, onError?: (error: ServiceError) => void, onClose?: () => void) => Subscription

    Subscription

      • Subscribes to the changes in state of sequencer which includes SequencerState (i.e Idle, Loaded, etc) and current StepList. The callback will be called with new SequencerStateResponse on state change and returns a subscription to unsubscribe.

        Parameters

        • onStateChange: (sequencerStateResponse: SequencerStateResponse) => void

          the function which gets called on each state change

        • Optional onError: (error: ServiceError) => void

          a optional error callback which gets called on receiving error. it can be Parsing error or a Runtime error [for ex. Gateway exception]

        • Optional onClose: () => void

          a optional close callback which gets called when the connection is closed.

            • (): void
            • Returns void

        Returns Subscription

        Subscription

Generated using TypeDoc