X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Finterfaces%2FIWorkerChoiceStrategy.html;h=ce4505d30df6d0a6d875dedf823d880953e61da4;hb=b51d859692c3830760721f06bdb2c909c1d5d9a7;hp=02107c979aa5e03c184f82f22b5d443223934680;hpb=953288ed6e2b952fb17b6fb0ebc4188ce813d53b;p=poolifier.git diff --git a/docs/interfaces/IWorkerChoiceStrategy.html b/docs/interfaces/IWorkerChoiceStrategy.html index 02107c97..ce4505d3 100644 --- a/docs/interfaces/IWorkerChoiceStrategy.html +++ b/docs/interfaces/IWorkerChoiceStrategy.html @@ -1,258 +1,25 @@ -IWorkerChoiceStrategy | poolifier - v2.6.31
-
- -
-
-
-
- -

Interface IWorkerChoiceStrategyInternal

-
-

Worker choice strategy interface.

-
-
-
-

Hierarchy

-
    -
  • IWorkerChoiceStrategy
-
-
-
- -
-
-

Properties

-
choose +IWorkerChoiceStrategy | poolifier - v3.0.5

Interface IWorkerChoiceStrategyInternal

Worker choice strategy interface.

+

Hierarchy

  • IWorkerChoiceStrategy
-
-

Properties

-
- -
choose: (() => undefined | number)
-
-

Type declaration

-
    -
  • -
      -
    • (): undefined | number
    • -
    • -

      Chooses a worker node in the pool and returns its key. -If the worker node is not eligible, undefined is returned.

      -
      -

      Returns undefined | number

      The worker node key or undefined.

      - -
-
- -
remove: ((workerNodeKey) => boolean)
-
-

Type declaration

-
    -
  • -
      -
    • (workerNodeKey): boolean
    • -
    • -

      Removes the worker node key from strategy internals.

      -
      -
      -

      Parameters

      -
        -
      • -
        workerNodeKey: number
        -

        The worker node key.

        -
        -
      -

      Returns boolean

      true if the worker node key is removed, false otherwise.

      - -
-
- -
reset: (() => boolean)
-
-

Type declaration

-
    -
  • -
      -
    • (): boolean
    • -
    • -

      Resets strategy internals.

      -
      -

      Returns boolean

      true if the reset is successful, false otherwise.

      - -
-
- -
setOptions: ((opts) => void)
-
-

Type declaration

-
    -
  • -
      -
    • (opts): void
    • -
    • -

      Sets the worker choice strategy options.

      -
      -
      -

      Parameters

      -
      -

      Returns void

      -
-
- -
strategyPolicy: StrategyPolicy
-

Strategy policy.

-
-
-
- -
taskStatisticsRequirements: TaskStatisticsRequirements
-

Tasks statistics requirements.

-
-
-
- -
update: ((workerNodeKey) => boolean)
-
-

Type declaration

-
    -
  • -
      -
    • (workerNodeKey): boolean
    • -
    • -

      Updates the worker node key strategy internals.

      -
      -
      -

      Parameters

      -
        -
      • -
        workerNodeKey: number
      -

      Returns boolean

      true if the update is successful, false otherwise.

      - -
-
-
-

Generated using TypeDoc

-
\ No newline at end of file +

Properties

choose: (() => undefined | number)

Type declaration

    • (): undefined | number
    • Chooses a worker node in the pool and returns its key. +If no worker nodes are not eligible, undefined is returned. +If undefined is returned, the caller retry.

      +

      Returns undefined | number

      The worker node key or undefined.

      +
remove: ((workerNodeKey) => boolean)

Type declaration

    • (workerNodeKey): boolean
    • Removes the worker node key from strategy internals.

      +

      Parameters

      • workerNodeKey: number

        The worker node key.

        +

      Returns boolean

      true if the worker node key is removed, false otherwise.

      +
reset: (() => boolean)

Type declaration

    • (): boolean
    • Resets strategy internals.

      +

      Returns boolean

      true if the reset is successful, false otherwise.

      +
setOptions: ((opts) => void)

Type declaration

    • (opts): void
    • Sets the worker choice strategy options.

      +

      Parameters

      Returns void

strategyPolicy: StrategyPolicy

Strategy policy.

+
taskStatisticsRequirements: TaskStatisticsRequirements

Tasks statistics requirements.

+
update: ((workerNodeKey) => boolean)

Type declaration

    • (workerNodeKey): boolean
    • Updates the worker node key strategy internals. +This is called after a task has been executed on a worker node.

      +

      Parameters

      • workerNodeKey: number

      Returns boolean

      true if the update is successful, false otherwise.

      +

Generated using TypeDoc

\ No newline at end of file