X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=e284081d41b554f1c5f50b0e094a3d88e762306c;hb=323daa7f98fd16385379e4b6e8def0a9a3f140c8;hp=0ccad3578199b61ef5dbf320ddeb39b9165bbf88;hpb=7daf8b1ee6ee28ba8c39c63067cf7071f8638177;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 0ccad357..e284081d 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,4 +1,4 @@ -DynamicClusterPool | poolifier - v2.6.30
+DynamicClusterPool | poolifier - v2.6.36
  • Preparing search index...
  • -
  • The search index is not available
poolifier - v2.6.30
+
  • The search index is not available
  • poolifier - v2.6.36
    @@ -45,7 +45,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    • DynamicClusterPool
    +
  • Defined in src/pools/cluster/dynamic.ts:15
  • @@ -129,28 +129,24 @@ When the maximum number of workers is reached and workers are busy, an event is
  • min: number

    Minimum number of workers which are always active.

    -
    -
  • +
  • max: number

    Maximum number of workers that can be created by this pool.

    -
    -
  • +
  • filePath: string

    Path to an implementation of a ClusterWorker file, which can be relative or absolute.

    -
    -
  • +
  • opts: ClusterPoolOptions = {}

    Options for this dynamic cluster pool.

    -
    -
  • +

    Returns DynamicClusterPool<Data, Response>

    +
  • Defined in src/pools/cluster/dynamic.ts:27
  • Properties

    @@ -162,16 +158,16 @@ When the maximum number of workers is reached and workers are busy, an event is
  • '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.
  • '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 >= pool maximum size^2).
  • +
  • 'backPressure': Emitted when all worker nodes have back pressure (i.e. their tasks queue is full: queue size >= maximum queue size).
  • +
  • Defined in src/pools/abstract-pool.ts:67
  • filePath: string
    @@ -180,7 +176,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:116
  • max: number
    @@ -189,7 +185,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:29
  • numberOfWorkers: number
    @@ -198,7 +194,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:115
  • @@ -207,7 +203,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Response>> = ...
    @@ -221,7 +217,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:77
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -230,7 +226,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:83
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -239,7 +235,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:64
  • Accessors

    @@ -254,7 +250,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/abstract-pool.ts:688
  • +
  • Defined in src/pools/abstract-pool.ts:349
  • +
  • Defined in src/pools/abstract-pool.ts:561
  • +
  • Defined in src/pools/abstract-pool.ts:554
  • +
  • Defined in src/pools/abstract-pool.ts:506
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • +
  • Defined in src/pools/abstract-pool.ts:523
  • +
  • Defined in src/pools/cluster/fixed.ts:115
  • Methods

    @@ -370,18 +366,16 @@ Can be overridden.

  • workerNodeKey: number

    The worker node key.

    -
    -
  • +
  • message: MessageValue<Response, unknown>

    The received message.

    -
    -
  • +

    Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:851
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/abstract-pool.ts:1098
  • +
  • Defined in src/pools/abstract-pool.ts:1054
  • +
  • Defined in src/pools/cluster/fixed.ts:105
  • +
  • Defined in src/pools/abstract-pool.ts:796
  • +

    Returns Promise<void>

    +
  • Defined in src/pools/cluster/fixed.ts:63
  • Returns void

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

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

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

    Returns WorkerInfo

    The worker information.

    + +

    Returns undefined | WorkerInfo

    The worker information.

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

    Returns boolean

    true if the worker node has back pressure, false otherwise.

    +
  • Defined in src/pools/abstract-pool.ts:1466
  • +
  • Defined in src/pools/abstract-pool.ts:704
  • +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
  • Defined in src/pools/abstract-pool.ts:725
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/abstract-pool.ts:806
  • +

    Returns void

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

    Returns void

    +
  • Defined in src/pools/cluster/fixed.ts:81
  • Returns void

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

    Returns void

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

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:628
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
  • Defined in src/pools/abstract-pool.ts:1335
  • -

    Generated using TypeDoc

    +

    Generated using TypeDoc

    \ No newline at end of file