X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=9c8634f20a9bbcb03784f5938a8600901ef238d8;hb=baff6fa397ec7acc3a3d0f14bc143e1df4a5230e;hp=e63d126d2c2b366596a44eb1746346ae7e06383e;hpb=8481e318ad9225134cde44c1ccdbb2e9166aaf15;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index e63d126d..9c8634f2 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,13 +1,13 @@ -DynamicClusterPool | poolifier - v2.6.41
+DynamicClusterPool | poolifier - v3.0.1
-
+
  • The search index is not available
  • poolifier - v3.0.1 +
    @@ -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 +135,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 +178,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 +187,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 +196,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 +205,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 +214,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 +228,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 +237,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 +246,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 +261,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:662
  • +
  • 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:134
  • Methods

    +
    + +
    + +

    Returns void

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

    Returns void

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

    Returns void

    -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:1014
  • +
  • Defined in src/pools/abstract-pool.ts:1261
  • +
  • Defined in src/pools/abstract-pool.ts:1217
  • +
  • Defined in src/pools/cluster/fixed.ts:124
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:951
  • + +

    Returns Promise<void>

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

    Returns void

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

    Returns Promise<Response>

    Promise that will be fulfilled when the task is completed.

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

    Returns WorkerInfo

    The worker information.

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

    Returns boolean

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

    +
  • Defined in src/pools/abstract-pool.ts:1645
  • +
  • Defined in src/pools/abstract-pool.ts:678
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:58
  • +
    +
    +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:108
  • +
  • Defined in src/pools/cluster/fixed.ts:100
  • +
    + +

    Returns Promise<void>

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Returns void

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

    Generated using TypeDoc

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