X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=bbaa017a209d6da41004f3f321c25bbedf77f61e;hb=69f8ce0ab8ce1afcf350b21796496b8dcd2aaec1;hp=d0006825490796161e4ce0db9b8a44ebd8b38069;hpb=33c629765dcf8e17e2d3fa207a286b5d360fae78;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index d0006825..bbaa017a 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,11 +1,13 @@ DynamicClusterPool | poolifier
-
+
  • The search index is not available
  • poolifier +
    @@ -18,10 +20,6 @@

    This cluster pool creates new workers when the others are busy, up to the maximum number of workers. When the maximum number of workers is reached, an event is emitted. If you want to listen to this event, use the pool's emitter.

    -

    Template

    of data sent to the worker. This can only be serializable data.

    - -

    Template

    of response of execution. This can only be serializable data.

    -

    Author

    Christopher Quadflieg

    Since

    2.0.0

    @@ -30,9 +28,13 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Type Parameters

    • -

      Data = unknown

    • +

      Data = unknown

      +

      Type of data sent to the worker. This can only be serializable data.

      +
    • -

      Response = unknown

    +

    Response = unknown

    +

    Type of response of execution. This can only be serializable data.

    +

    Hierarchy

      @@ -40,7 +42,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
      • DynamicClusterPool
    +
  • Defined in src/pools/cluster/dynamic.ts:16
  • @@ -54,7 +56,7 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Properties

    emitter? filePath -max +max nextMessageId numberOfWorkers opts @@ -84,7 +86,6 @@ When the maximum number of workers is reached, an event is emitted. If you want getWorkerAverageTasksRunTime getWorkerIndex getWorkerRunningTasks -initWorkerTasksUsage internalExecute internalGetBusyStatus isMain @@ -133,31 +134,28 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Returns DynamicClusterPool<Data, Response>

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

    -
    emitter?: PoolEmitter
    +
    emitter?: PoolEmitter

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:40
  • filePath: string
    -
    - -
    max: number
    -
    -

    Inherit Doc

    +
    + +
    max: number
    +
  • Defined in src/pools/cluster/dynamic.ts:30
  • nextMessageId: number = 0
    @@ -165,19 +163,19 @@ When the maximum number of workers is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:58
  • numberOfWorkers: number
    +
  • Defined in src/pools/abstract-pool.ts:79
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
    @@ -190,7 +188,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:50
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    @@ -199,7 +197,7 @@ When the maximum number of workers is reached, an event is emitted. If you want
    +
  • Defined in src/pools/abstract-pool.ts:65
  • workers: Worker[] = []
    @@ -207,7 +205,7 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:31
  • workersTasksUsage: Map<Worker, TasksUsage> = ...
    @@ -215,7 +213,7 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Inherit Doc

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

    @@ -228,7 +226,7 @@ When the maximum number of workers is reached, an event is emitted. If you want

    Returns boolean

    +
  • Defined in src/pools/cluster/dynamic.ts:43
  • +
  • Defined in src/pools/abstract-pool.ts:151
  • +
  • Defined in src/pools/cluster/dynamic.ts:38
  • Methods

    @@ -275,7 +273,7 @@ Can be overridden.

    Returns void

    +
  • Defined in src/pools/abstract-pool.ts:260
  • +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
  • Defined in src/pools/abstract-pool.ts:249
  • +
  • Defined in src/pools/abstract-pool.ts:287
  • +
  • Defined in src/pools/abstract-pool.ts:341
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
  • Defined in src/pools/abstract-pool.ts:219
  • +
  • Defined in src/pools/cluster/fixed.ts:69
  • +
  • Defined in src/pools/abstract-pool.ts:205
  • +
  • Defined in src/pools/abstract-pool.ts:194
  • +
  • Defined in src/pools/abstract-pool.ts:166
  • +
  • Defined in src/pools/abstract-pool.ts:156
  • -
    - -
    +
  • Defined in src/pools/abstract-pool.ts:161
  • +
  • Defined in src/pools/abstract-pool.ts:312
  • +
  • Defined in src/pools/abstract-pool.ts:186
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • +
  • Defined in src/pools/cluster/fixed.ts:80
  • +
  • Defined in src/pools/abstract-pool.ts:274
  • +
  • Defined in src/pools/cluster/fixed.ts:75
  • +
  • Defined in src/pools/abstract-pool.ts:171
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
  • Defined in src/pools/abstract-pool.ts:365