X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=f9dfcb3931ff6e9456eb709d474b12fb2b9b622d;hb=a4a88903255bd661b57480ce9b07dd2f2962f069;hp=03d19a9dd2acdc222457bf34298b95ed01996a6b;hpb=c64c17b070cb338e7301c38643bb529be8fa0fc3;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 03d19a9d..f9dfcb39 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,13 +1,13 @@ -FixedClusterPool | poolifier - v2.6.32
+FixedClusterPool | poolifier - v3.0.5
-
+
  • The search index is not available
  • poolifier - v3.0.5 +
    @@ -45,19 +45,19 @@ +
  • Defined in src/pools/cluster/fixed.ts:33
  • - +

    Constructors

    - +
    +
  • Defined in src/pools/cluster/fixed.ts:44
  • Properties

    - -
    emitter?: PoolEmitter
    -

    Emitter on which events can be listened to.

    + +
    emitter?: EventEmitterAsyncResource
    +

    Event emitter integrated with async resource on which events can be listened to. +The async tracking tooling identifier is poolifier:<PoolType>-<WorkerType>-pool.

    Events that can currently be listened to:

    • 'ready': Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.
    • -
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing at least one task.
    • +
    • 'busy': Emitted when the number of workers created in the pool has reached the maximum size expected and are executing concurrently their tasks quota.
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • -
    • 'destroy': Emitted when the pool is destroyed.
    • +
    • 'destroy': Emitted when the pool is destroyed.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    • 'backPressure': Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size >= maximum queue size).
    • @@ -166,7 +174,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:75
  • filePath: string
    @@ -175,7 +183,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:130
  • max?: number
    @@ -184,7 +192,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:80
  • numberOfWorkers: number
    @@ -193,7 +201,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:129
  • @@ -202,11 +210,11 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    -

    The task execution response promise map.

    +

    The task execution response promise map:

    +
  • Defined in src/pools/abstract-pool.ts:89
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -225,7 +233,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -234,7 +242,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:72
  • Accessors

    @@ -249,7 +257,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:140
  • +
  • Defined in src/pools/abstract-pool.ts:660
  • +
  • Defined in src/pools/abstract-pool.ts:273
  • +
  • Defined in src/pools/abstract-pool.ts:486
  • +
  • Defined in src/pools/abstract-pool.ts:479
  • +
  • Defined in src/pools/abstract-pool.ts:431
  • +
  • Defined in src/pools/cluster/fixed.ts:130
  • +
  • Defined in src/pools/abstract-pool.ts:448
  • +
  • Defined in src/pools/cluster/fixed.ts:135
  • Methods

    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:1043
  • +
  • Defined in src/pools/abstract-pool.ts:1356
  • -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:1013
  • +
  • Defined in src/pools/abstract-pool.ts:1260
  • +
  • Defined in src/pools/abstract-pool.ts:1216
  • +
  • Defined in src/pools/cluster/fixed.ts:125
  • +
    + +
      + +
    • +

      Deregisters a listener callback on the worker given its worker node key.

      +
      +
      +

      Type Parameters

      +
        +
      • +

        Message

      +
      +

      Parameters

      +
        +
      • +
        workerNodeKey: number
        +

        The worker node key.

        +
        +
      • +
      • +
        listener: ((message) => void)
        +

        The message listener callback.

        +
        +
        +
          +
        • +
            +
          • (message): void
          • +
          • +
            +

            Parameters

            +
            +

            Returns void

      +

      Returns void

      +
    +
  • Defined in src/pools/abstract-pool.ts:949
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:564
  • +
  • Defined in src/pools/abstract-pool.ts:879
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:1696
    • - +
    • Gets the worker information given its worker node key.

      @@ -596,12 +674,33 @@ Can be overridden.

      The worker node key.

    -

    Returns undefined | WorkerInfo

    The worker information.

    +

    Returns WorkerInfo

    The worker information.

    +
  • Defined in src/pools/abstract-pool.ts:1608
  • +
    + +
      + +
    • +

      Whether the specified task function exists in this pool.

      +
      +
      +

      Parameters

      +
        +
      • +
        name: string
        +

        The name of the task function.

        +
        +
      +

      Returns boolean

      true if the task function exists, false otherwise.

      + +
    +
  • Defined in src/pools/abstract-pool.ts:1654
  • +
  • Defined in src/pools/abstract-pool.ts:676
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
    +
    +
    + +
      + +
    • +

      Registers once a listener callback on the worker given its worker node key.

      +
      +
      +

      Type Parameters

      +
        +
      • +

        Message

      +
      +

      Parameters

      +
        +
      • +
        workerNodeKey: number
        +

        The worker node key.

        +
        +
      • +
      • +
        listener: ((message) => void)
        +

        The message listener callback.

        +
        +
        +
          +
        • +
            +
          • (message): void
          • +
          • +
            +

            Parameters

            +
            +

            Returns void

      +

      Returns void

      +
    +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/cluster/fixed.ts:101
  • +
    + +
      + +
    • +

      Removes a task function from this pool.

      +
      +
      +

      Parameters

      +
        +
      • +
        name: string
        +

        The name of the task function.

        +
        +
      +

      Returns Promise<boolean>

      true if the task function was removed, false otherwise.

      + +
      - +
    • Parameters

      • -
        workerNodeKey: number
      • -
      • -
        workerId: number
      +
      workerNodeKey: number

    Returns Promise<void>

    +
  • Defined in src/pools/abstract-pool.ts:960
  • +
  • Defined in src/pools/cluster/fixed.ts:94
  • +
  • Defined in src/pools/cluster/fixed.ts:83
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:578
  • +
  • Defined in src/pools/abstract-pool.ts:531
  • +
  • Defined in src/pools/abstract-pool.ts:550
  • -
    - -
    +
    + +
    +
    + + +

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:1518
  • +
    -

    Generated using TypeDoc

    -
    \ No newline at end of file +

    Generated using TypeDoc

    +
    \ No newline at end of file