Class Status

Hierarchy

  • StartStop
    • Status

Constructors

  • Parameters

    • __namedParameters: {
          fs?: FileSystem;
          logger?: Logger;
          statusLockPath: string;
          statusPath: string;
      }
      • Optional fs?: FileSystem
      • Optional logger?: Logger
      • statusLockPath: string
      • statusPath: string

    Returns Status

Properties

[initLock]: RWLockWriter
logger: Logger
statusLockFile: FileHandle
statusLockPath: string
statusPath: string
statusReplacer: ((key, value) => any) = ...

Type declaration

    • (key, value): any
    • Replacer used during encoding to JSON This is a function expression and not an arrow function expression because it needs to access the this inside the JSON.stringify in order to encode the NodeId before the toJSON of IdInternal is called

      Parameters

      • key: string
      • value: any

      Returns any

statusReviver: ((key, value) => any) = ...

Type declaration

    • (key, value): any
    • Reviver used during decoding from JSON

      Parameters

      • key: string
      • value: any

      Returns any

Accessors

  • get [eventHandled](): ReadonlyWeakSet<Event>
  • Returns ReadonlyWeakSet<Event>

  • get [eventHandlers](): ReadonlyMap<string, Set<EventHandlerInfo>>
  • Returns ReadonlyMap<string, Set<EventHandlerInfo>>

  • get [eventTarget](): EventTarget
  • Returns EventTarget

  • get [handleEventError](): ((evt) => void)
  • Returns ((evt) => void)

      • (evt): void
      • Parameters

        • evt: EventError

        Returns void

  • get [running](): boolean
  • Returns boolean

  • get [statusP](): Promise<Status>
  • Returns Promise<Status>

  • get [status](): Status
  • Returns Status

Methods

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | AddEventListenerOptions

    Returns void

  • Parameters

    • data: {
          pid: number;
          [key: string]: any;
      }
      • [key: string]: any
      • pid: number

    Returns Promise<void>

  • Parameters

    • event: Event

    Returns boolean

  • Parameters

    • data: {
          agentHost: string;
          agentPort: number;
          clientHost: string;
          clientPort: number;
          nodeId: NodeId;
          pid: number;
          [key: string]: any;
      }
      • [key: string]: any
      • agentHost: string
      • agentPort: number
      • clientHost: string
      • clientPort: number
      • nodeId: NodeId
      • pid: number

    Returns Promise<void>

  • Parameters

    • type: string
    • callback: null | EventListenerOrEventListenerObject
    • Optional options: boolean | EventListenerOptions

    Returns void

  • Parameters

    • data: {
          pid: number;
          [key: string]: any;
      }
      • [key: string]: any
      • pid: number

    Returns Promise<void>

  • Parameters

    • data: {
          [key: string]: any;
      }
      • [key: string]: any

    Returns Promise<void>

  • Parameters

    • data: Partial<{
          agentHost: string;
          agentPort: number;
          clientHost: string;
          clientPort: number;
          nodeId: NodeId;
          pid: number;
          [key: string]: any;
      }>

    Returns Promise<StatusInfo>

Generated using TypeDoc