Class Discovery

Hierarchy

  • CreateDestroyStartStop
    • Discovery

Constructors

Properties

[initLock]: RWLockWriter
db: DB
discoverVertexHandler: TaskHandler = ...
discoverVertexHandlerId: TaskHandlerId = ...
discoverVertexTimeout: number
gestaltGraph: GestaltGraph
identitiesManager: IdentitiesManager
keyRing: KeyRing
logger: Logger
nodeManager: NodeManager
taskManager: TaskManager
visitedVertices: Set<GestaltIdEncoded> = ...

Accessors

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

  • 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

    • event: Event

    Returns boolean

  • Helper function to retrieve the IdentityInfo of an identity on a provider. All claims in the returned IdentityInfo are verified by the node it claims to link to. Returns undefined if no identity info to be retrieved (either no provider or identity data found).

    Parameters

    Returns Promise<undefined | IdentityData>

  • Simple check for whether there are existing discovery tasks. Returns the number of tasks to avoid boolean blindness.

    Returns Promise<number>

  • Queues an identity for discovery. Internally calls pushKeyToDiscoveryQueue.

    Parameters

    Returns Promise<void>

  • Queues a node for discovery. Internally calls pushKeyToDiscoveryQueue.

    Parameters

    Returns Promise<void>

  • Parameters

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

    Returns void

  • Creates a task that to discover a vertex. Will not create a new task if an existing task for the vertex exists.

    Parameters

    • vertex: GestaltId
    • Optional tran: DBTransaction

    Returns any

  • Parameters

    • __namedParameters: {
          fresh?: boolean;
      } = {}
      • Optional fresh?: boolean

    Returns Promise<void>

  • Will resolve once all existing discovery tasks have finished. Returns the number of existing tasks that were awaited.

    Returns Promise<number>

Generated using TypeDoc