X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractPool.html;h=d7c1a3d61996c22fecaacad3ea76b8e772c1402f;hb=36df5bd40369d98d6ccb60400e66dce1aa980d54;hp=e8cc3a662e487f686efd3050b14055fb144b025a;hpb=2624da4d8f724e8bc0b655cddfc6ba5ae9a4d053;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index e8cc3a66..d7c1a3d6 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier
+AbstractPool | poolifier - v2.6.15
@@ -49,7 +49,7 @@
- IPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:54
@@ -77,19 +78,22 @@
info
maxSize
minSize
-
runTime
+
ready
type
utilization
worker
+Defined in src/pools/abstract-pool.ts:106
Protected
promiseResponseMap
@@ -229,7 +232,7 @@
+Defined in src/pools/abstract-pool.ts:73
Private
Readonly
startTimestamp
startTimestamp: number
@@ -237,7 +240,15 @@
+Defined in src/pools/abstract-pool.ts:94
+
+Private
Readonly
starting
+starting: boolean
+
+
Protected
workerChoiceStrategyContext
@@ -245,16 +256,16 @@
+Defined in src/pools/abstract-pool.ts:81
+Defined in src/pools/abstract-pool.ts:60
Protected
full
@@ -280,7 +291,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:586
+Defined in src/pools/abstract-pool.ts:289
Protected
Abstract
maxSize
@@ -303,7 +314,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:478
Protected
Abstract
minSize
@@ -314,19 +325,15 @@
Returns number
-
+
+Defined in src/pools/abstract-pool.ts:425
Protected
Abstract
type
@@ -338,7 +345,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:463
+Defined in src/pools/abstract-pool.ts:442
Protected
Abstract
worker
@@ -361,9 +368,29 @@
Returns "cluster" | "thread"
+Defined in src/pools/abstract-pool.ts:468
Methods
+
+Private
addWorkerNode
+
+- addWorkerNode(worker): number
+-
+
+
+
Returns number
The worker nodes length.
+
+
Protected
afterTaskExecutionHook
@@ -388,7 +415,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:712
Protected
afterWorkerSetup
@@ -408,7 +435,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1020
Protected
beforeTaskExecutionHook
@@ -433,7 +460,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:691
Private
buildTasksQueueOptions
@@ -446,7 +473,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:573
Private
checkAndEmitEvents
@@ -454,7 +481,22 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1118
+
+Protected
checkDynamicPoolSize
+
+- checkDynamicPoolSize(min, max): void
+-
+
+
Parameters
+
+-
+
min: number
+-
+
max: number
+Returns void
Private
checkFilePath
@@ -467,7 +509,28 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:150
+
+Private
checkMessageWorkerId
+
+- checkMessageWorkerId(message): void
+-
+
+
+
Returns void
+
Private
checkNumberOfWorkers
@@ -480,7 +543,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:163
Private
checkPoolOptions
@@ -493,7 +556,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:199
Private
checkValidTasksQueueOptions
@@ -506,7 +569,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:264
Private
checkValidWorkerChoiceStrategy
@@ -519,7 +582,7 @@ Can be overridden.
workerChoiceStrategy: "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
Returns void
+Defined in src/pools/abstract-pool.ts:226
Private
checkValidWorkerChoiceStrategyOptions
@@ -532,7 +595,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:236
Private
chooseWorkerNode
@@ -545,7 +608,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:889
Protected
createAndSetupDynamicWorker
@@ -557,7 +620,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:972
Protected
createAndSetupWorker
@@ -569,7 +632,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:933
Protected
Abstract
createWorker
@@ -581,7 +644,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:926
Private
dequeueTask
@@ -594,7 +657,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task<Data>
+Defined in src/pools/abstract-pool.ts:1181
+Defined in src/pools/abstract-pool.ts:646
Protected
Abstract
destroyWorker
@@ -625,7 +688,7 @@ Can be overridden.
Returns void | Promise<void>
+Defined in src/pools/abstract-pool.ts:667
+Defined in src/pools/abstract-pool.ts:551
Private
enqueueTask
@@ -665,7 +728,7 @@ Can be overridden.
task: Task<Data>
Returns number
+Defined in src/pools/abstract-pool.ts:1177
+Defined in src/pools/abstract-pool.ts:611
Private
executeTask
- executeTask(workerNodeKey, task): void
-
+
Parameters
-
workerNodeKey: number
-
-
task: Task<Data>
-Returns void
+Returns void
+
+Defined in src/pools/abstract-pool.ts:1172
Private
flushTasksQueue
@@ -719,7 +788,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1189
Private
flushTasksQueues
@@ -727,7 +796,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1199
Private
getWorkerById
@@ -747,27 +816,26 @@ Can be overridden.
-
+
+Private
getWorkerInfo
-- getWorkerId(worker): undefined | number
+- getWorkerInfo(workerNodeKey): WorkerInfo
-
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1036
Private
registerWorkerMessageListener
@@ -909,7 +957,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1007
Private
removeWorkerNode
@@ -928,7 +976,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1158
Protected
Abstract
sendToWorker
@@ -952,7 +1000,20 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:916
+
+Private
sendWorkerStartupMessage
+
+- sendWorkerStartupMessage(worker): void
+-
+
+
Returns void
+Defined in src/pools/abstract-pool.ts:563
+Defined in src/pools/abstract-pool.ts:521
setWorkerChoiceStrategyOptions
-
-Private
setWorkerNodeTasksUsage
-
-- setWorkerNodeTasksUsage(workerNode, workerUsage): void
--
-
-
-
Parameters
-
--
-
workerNode: WorkerNode<Worker, Data>
-
-
--
-
-
-
-Returns void
-
+Defined in src/pools/abstract-pool.ts:540
Private
setWorkerStatistics
@@ -1054,7 +1091,7 @@ Can be overridden.
worker: Worker
Returns void
+Defined in src/pools/abstract-pool.ts:1205
Protected
setupHook
@@ -1066,7 +1103,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:675
Private
shallCreateDynamicWorker
@@ -1078,20 +1115,7 @@ Can be overridden.
-
-Private
tasksMaxQueueSize
-
-- tasksMaxQueueSize(workerNodeKey): number
--
-
-
Returns number
+Defined in src/pools/abstract-pool.ts:906
Private
tasksQueueSize
@@ -1104,7 +1128,7 @@ Can be overridden.
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:1185
Private
updateEluWorkerUsage
@@ -1119,7 +1143,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:818
Private
updateRunTimeWorkerUsage
@@ -1134,7 +1158,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:742
Private
updateTaskStatisticsWorkerUsage
@@ -1149,7 +1173,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:729
Private
updateWaitTimeWorkerUsage
@@ -1164,7 +1188,7 @@ Can be overridden.
task: Task<Data>
Returns void
+Defined in src/pools/abstract-pool.ts:780
Protected
workerListener
@@ -1191,7 +1215,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1071
Emitter on which events can be listened to.
Events that can currently be listened to:
-
-
+
+
+
@@ -192,7 +195,7 @@ +'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 minimum 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.Protected
Readonly
file