X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=f52bd444f7e096f06c75c0598f0f43c0e575ce1a;hb=c914a50e9996ca3f869c130974bff87b117f70f5;hp=88503f4b01c351be97f5300d28499c699e150755;hpb=fddf9cc424b3ace38fd414899c666c76a03c3aff;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 88503f4b..f52bd444 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,4 +1,4 @@ -FixedClusterPool | poolifier
+FixedClusterPool | poolifier - v2.6.9
  • Preparing search index...
  • -
  • The search index is not available
poolifier
+
  • The search index is not available
  • poolifier - v2.6.9
    @@ -17,8 +17,6 @@

    Class FixedClusterPool<Data, Response>

    A cluster pool with a fixed number of workers.

    -

    It is possible to perform tasks in sync or asynchronous mode as you prefer.

    -

    This pool selects the workers in a round robin fashion.

    Author

    Christopher Quadflieg

    @@ -30,12 +28,12 @@
    • Data = unknown

      -

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

      +

      Type of data sent to the worker. This can only be structured-cloneable data.

    • Response = unknown

      -

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

      +

      Type of execution response. This can only be structured-cloneable data.

    @@ -47,7 +45,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:33
  • @@ -74,15 +72,19 @@ info maxSize minSize +ready +starting type +utilization worker

    Methods

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

    @@ -146,8 +147,9 @@

    Emitter on which events can be listened to.

    Events that can currently be listened to:

      -
    • 'full': Emitted when the pool is dynamic and full.
    • -
    • 'busy': Emitted when the pool is busy.
    • +
    • 'full': Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.
    • +
    • 'ready': Emitted when the number of workers created in the pool has reached the maximum 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.
    • 'error': Emitted when an uncaught error occurs.
    • 'taskError': Emitted when an error occurs while executing a task.
    @@ -155,7 +157,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:58
  • filePath: string
    @@ -164,7 +166,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:96
  • numberOfWorkers: number
    @@ -173,7 +175,7 @@
    +
  • Defined in src/pools/abstract-pool.ts:95
  • @@ -182,7 +184,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:47
  • promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    @@ -196,26 +198,25 @@
    +
  • Defined in src/pools/abstract-pool.ts:68
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>

    Worker choice strategy context referencing a worker choice algorithm implementation.

    -

    Default to a round robin algorithm.

    +
  • Defined in src/pools/abstract-pool.ts:76
  • -
    workerNodes: WorkerNode<Worker, Data>[] = []
    +
    workerNodes: IWorkerNode<Worker, Data>[] = []

    Pool worker nodes.

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

    @@ -230,7 +231,7 @@
    +
  • Defined in src/pools/cluster/fixed.ts:102
  • +
  • Defined in src/pools/abstract-pool.ts:543
  • +
  • Defined in src/pools/abstract-pool.ts:262
  • +
  • Defined in src/pools/cluster/fixed.ts:97
  • +
  • Defined in src/pools/cluster/fixed.ts:92
  • +
    + +
    +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:82
  • +
    + +
    +
  • Defined in src/pools/cluster/fixed.ts:87
  • Methods

    @@ -324,7 +356,7 @@ Can be overridden.

  • -
    message: MessageValue<Response, Worker | MessagePort>
    +
    message: MessageValue<Response, unknown>

    The received message.

  • @@ -332,14 +364,14 @@ Can be overridden.

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

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes.

        -

        Can be used to update the maxListeners or binding the main-worker<->worker connection if not bind by default.

        +

        Function that can be hooked up when a worker has been newly created and moved to the pool worker nodes. +Can be overridden.

        Parameters

        @@ -351,13 +383,13 @@ Can be overridden.

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:891
  • Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:647
  • +
    + +
    +
    +
    +
  • Defined in src/pools/abstract-pool.ts:974
  • +
  • Defined in src/pools/abstract-pool.ts:908
  • +
  • Defined in src/pools/cluster/fixed.ts:77
  • +
  • Defined in src/pools/abstract-pool.ts:602
  • +
  • Defined in src/pools/cluster/fixed.ts:63
  • +
  • Defined in src/pools/abstract-pool.ts:508
  • +
  • Defined in src/pools/abstract-pool.ts:568
  • +
  • Defined in src/pools/abstract-pool.ts:559
  • -
    - -
    +
  • Defined in src/pools/cluster/fixed.ts:58
  • @@ -583,7 +599,7 @@ Can be overridden.

    +
  • Defined in src/pools/cluster/fixed.ts:72
  • +
  • Defined in src/pools/abstract-pool.ts:520
  • +
  • Defined in src/pools/abstract-pool.ts:478
  • +
  • Defined in src/pools/abstract-pool.ts:497
  • +
  • Defined in src/pools/cluster/fixed.ts:53
  • Returns void

    The listener function to execute when a message is received from a worker.

    +
  • Defined in src/pools/abstract-pool.ts:1001
  • +
  • WorkerTypes
  • +
  • availableParallelism
  • Generated using TypeDoc

    \ No newline at end of file