X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=1767983b04add9aa7d5360d287e04c72716bb93a;hb=601deb7292c99dfe7b6ad43935759933f32adca1;hp=4ccbc41a5541f7b0ac7d649ac288ee0910d7b2fc;hpb=dd7dfcc292a646940f5f0263d24d8f5f528e8a51;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 4ccbc41a..1767983b 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,13 +1,13 @@ -DynamicClusterPool | poolifier - v2.6.37
+DynamicClusterPool | poolifier - v3.0.3
-
+
  • The search index is not available
  • poolifier - v3.0.3 +
    @@ -45,19 +45,19 @@ When the maximum number of workers is reached and workers are busy, an event is
    • DynamicClusterPool
    +
  • Defined in src/pools/cluster/dynamic.ts:16
  • - +

    Constructors

    - +
    • @@ -129,30 +136,35 @@ 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:28
  • 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.
    • @@ -167,7 +179,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:74
  • filePath: string
    @@ -176,7 +188,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:129
  • max: number
    @@ -185,7 +197,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • numberOfWorkers: number
    @@ -194,7 +206,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:128
  • opts: ClusterPoolOptions = {}
    @@ -203,11 +215,11 @@ 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>> = ...
    -

    The task execution response promise map.

    +

    The task execution response promise map:

    • key: The message id of each submitted task.
    • value: An object that contains the worker, the execution response promise resolve and reject callbacks.
    • @@ -217,7 +229,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:88
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -226,7 +238,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:94
  • workerNodes: IWorkerNode<Worker, Data>[] = []
    @@ -235,7 +247,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/abstract-pool.ts:71
  • Accessors

    @@ -250,7 +262,7 @@ When the maximum number of workers is reached and workers are busy, an event is
    +
  • Defined in src/pools/cluster/dynamic.ts:44
  • +
  • Defined in src/pools/abstract-pool.ts:659
  • +
  • Defined in src/pools/abstract-pool.ts:272
  • +
  • Defined in src/pools/abstract-pool.ts:485
  • +
  • Defined in src/pools/abstract-pool.ts:478
  • +
  • Defined in src/pools/abstract-pool.ts:430
  • +
  • Defined in src/pools/cluster/dynamic.ts:39
  • +
  • Defined in src/pools/abstract-pool.ts:447
  • +
  • Defined in src/pools/cluster/fixed.ts:135
  • Methods

    +
    + +
    + +

    Returns void

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

    Returns void

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

    Returns void

    -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:1011
  • +
  • Defined in src/pools/abstract-pool.ts:1258
  • +
  • Defined in src/pools/abstract-pool.ts:1214
  • +
  • Defined in src/pools/cluster/fixed.ts:125
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:948
  • + +

    Returns Promise<void>

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

    Returns void

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

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

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

    Returns undefined | WorkerInfo

    The worker information.

    + +
    +

    Returns WorkerInfo

    The worker information.

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

    Returns boolean

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

    +
  • Defined in src/pools/abstract-pool.ts:1648
  • +
  • Defined in src/pools/abstract-pool.ts:675
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
    +
    +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:109
  • +
  • Defined in src/pools/cluster/fixed.ts:101
  • +
    + +

    Returns Promise<void>

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Generated using TypeDoc

    -
    \ No newline at end of file +
    \ No newline at end of file