X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FFixedClusterPool.html;h=e1d8f60f59a2a08efcdf7e52ddbe801da25de458;hb=1b0aa06b3ab5cf8ae8bd135087143165889901cc;hp=fe962139bfb6f81fa119ac3053a8f35d98a8b2e8;hpb=6f0e7f0609e779dbf314d3f1a31660e7d369f591;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index fe962139..e1d8f60f 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -6,7 +6,7 @@ poolifier +
  • The search index is not available
  • poolifier
    @@ -44,7 +44,7 @@ +
  • Defined in src/pools/cluster/fixed.ts:39
  • @@ -58,43 +58,44 @@

    Properties

    Accessors

    Methods

    -
    @@ -131,7 +132,7 @@

    Returns FixedClusterPool<Data, Response>

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

    @@ -141,71 +142,61 @@

    Inherit Doc

    +
  • Defined in src/pools/abstract-pool.ts:33
  • -
    filePath: string
    -
    - -
    nextMessageId: number = 0
    -

    Id of the next message.

    +
    filePath: string
    +

    Path to the worker-file.

    +
  • Defined in src/pools/abstract-pool.ts:68
  • -
    numberOfWorkers: number
    +
  • Defined in src/pools/abstract-pool.ts:67
  • -
    opts: ClusterPoolOptions = {}
    -
    - -
    promiseMap: Map<number, PromiseWorkerResponseWrapper<Worker, Response>> = ...
    -

    The promise map.

    +
  • Defined in src/pools/cluster/fixed.ts:53
  • +
    + +
    promiseResponseMap: Map<string, PromiseResponseWrapper<Worker, Response>> = ...
    +

    The promise response map.

    -

    When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.

    +

    When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.

    +
  • Defined in src/pools/abstract-pool.ts:43
  • workerChoiceStrategyContext: WorkerChoiceStrategyContext<Worker, Data, Response>
    -

    Worker choice strategy instance implementing the worker choice algorithm.

    -

    Default to a strategy implementing a round robin algorithm.

    +

    Worker choice strategy context referencing a worker choice algorithm implementation.

    +

    Default to a round robin algorithm.

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

    Inherit Doc

    -
    - -
    workersTasksUsage: Map<Worker, TasksUsage> = ...
    -
    -

    Inherit Doc

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

    @@ -218,18 +209,40 @@

    Returns boolean

    -
    - -
    +
    + +
    +
    + +
    +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:156
  • +
  • Defined in src/pools/cluster/fixed.ts:99
  • Methods

    -
    - +
    +
      - +
    • Hook executed after the worker task promise resolution. Can be overridden.

      @@ -255,17 +268,17 @@ Can be overridden.

      Parameters

      • -
        message: MessageValue<Response, unknown>
        -

        The received message.

        +
        worker: Worker
        +

        The worker.

      • -
        promise: PromiseWorkerResponseWrapper<Worker, Response>
        -

        The Promise response.

        +
        message: MessageValue<Response, unknown>
        +

        The received message.

      Returns void

    +
  • Defined in src/pools/abstract-pool.ts:307
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:93
  • +
    +
    -
    - +
  • Defined in src/pools/abstract-pool.ts:296
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:340
  • +
  • Defined in src/pools/abstract-pool.ts:406
  • +
  • Defined in src/pools/cluster/fixed.ts:88
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:259
  • -
    - -
    +
    + +
    -
    - - +

    Returns void

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

    Returns Promise<Response>

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

    Returns void

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

    Returns void

    -
    - +
  • Defined in src/pools/abstract-pool.ts:572
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:221
  • +
  • Defined in src/pools/cluster/fixed.ts:64
  • -
    - +
  • Defined in src/pools/cluster/fixed.ts:80
  • +
    +
    +
  • Defined in src/pools/abstract-pool.ts:545
  • +
  • Defined in src/pools/cluster/fixed.ts:75
  • Returns void

    +
  • Defined in src/pools/abstract-pool.ts:189
  • +
  • Defined in src/pools/cluster/fixed.ts:59
  • +
    + +
    +
  • Defined in src/pools/abstract-pool.ts:429
  • Generated using TypeDoc