X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FAbstractPool.html;h=48d436c8a7e1ce36227e088badf7c1e00fb46e9f;hb=8cc4ea811611b8ad77c7b0379911afe497f2e7e4;hp=5d9c47e5236bc1dd4415ad1ad6d983a6c47191be;hpb=2447ee8ce5d3db1253c7286482e5a54e84618ecf;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 5d9c47e5..48d436c8 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.6.24
+AbstractPool | poolifier - v2.6.28
@@ -49,7 +49,7 @@
- IPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:56
@@ -119,12 +120,14 @@
handleWorkerReadyResponse
internalBusy
isMain
+
listTaskFunctions
redistributeQueuedTasks
registerWorkerMessageListener
removeWorkerNode
+
sendKillMessageToWorker
sendStartupMessageToWorker
+
sendStatisticsMessageToWorker
sendToWorker
-
sendWorkerStatisticsMessageToWorker
setTasksQueueOptions
setWorkerChoiceStrategy
setWorkerChoiceStrategyOptions
@@ -177,7 +180,7 @@
Returns AbstractPool<Worker, Data, Response>
+
Defined in src/pools/abstract-pool.ts:107
Protected
Readonly
numberOfWorkers
numberOfWorkers: number
@@ -212,7 +216,7 @@
+Defined in src/pools/abstract-pool.ts:108
Protected
Readonly
opts
@@ -220,7 +224,7 @@
+Defined in src/pools/abstract-pool.ts:110
Protected
promiseResponseMap
@@ -233,7 +237,7 @@
+Defined in src/pools/abstract-pool.ts:75
Private
Readonly
startTimestamp
startTimestamp: number
@@ -241,7 +245,7 @@
+Defined in src/pools/abstract-pool.ts:94
Private
Readonly
starting
starting: boolean
@@ -249,7 +253,15 @@
+Defined in src/pools/abstract-pool.ts:90
+
+Private
taskFunctions
+taskFunctions: string[]
+
+
Protected
workerChoiceStrategyContext
@@ -257,7 +269,7 @@
+Defined in src/pools/abstract-pool.ts:81
Readonly
workerNodes
@@ -266,7 +278,7 @@
+Defined in src/pools/abstract-pool.ts:62
Protected
full
@@ -292,7 +304,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:615
+Defined in src/pools/abstract-pool.ts:308
Protected
Abstract
maxSize
@@ -315,7 +327,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:504
Protected
Abstract
minSize
@@ -326,7 +338,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:499
Private
ready
@@ -337,7 +349,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:451
Protected
Abstract
type
@@ -349,7 +361,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:489
+Defined in src/pools/abstract-pool.ts:468
Protected
Abstract
worker
@@ -372,7 +384,7 @@
Returns "thread" | "cluster"
+Defined in src/pools/abstract-pool.ts:494
Protected
afterTaskExecutionHook
@@ -421,7 +433,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:795
Protected
afterWorkerNodeSetup
@@ -441,7 +453,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1028
Protected
beforeTaskExecutionHook
@@ -466,7 +478,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:774
Private
buildTasksQueueOptions
@@ -479,7 +491,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:602
Private
checkAndEmitEvents
@@ -487,7 +499,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1168
Protected
checkDynamicPoolSize
@@ -502,7 +514,7 @@ Can be overridden.
max: number
Returns void
+Defined in src/pools/abstract-pool.ts:180
Private
checkFilePath
@@ -515,7 +527,7 @@ Can be overridden.
filePath: string
Returns void
+Defined in src/pools/abstract-pool.ts:149
Private
checkMessageWorkerId
+Defined in src/pools/abstract-pool.ts:512
Private
checkNumberOfWorkers
@@ -549,7 +561,7 @@ Can be overridden.
numberOfWorkers: number
Returns void
+Defined in src/pools/abstract-pool.ts:162
Private
checkPoolOptions
@@ -562,7 +574,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:206
Private
checkValidTasksQueueOptions
@@ -575,7 +587,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:271
Private
checkValidWorkerChoiceStrategy
@@ -588,7 +600,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:233
Private
checkValidWorkerChoiceStrategyOptions
@@ -601,7 +613,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:243
Private
chooseWorkerNode
@@ -614,7 +626,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:889
Protected
createAndSetupDynamicWorkerNode
@@ -626,7 +638,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:975
Protected
createAndSetupWorkerNode
@@ -638,7 +650,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:935
Protected
Abstract
createWorker
@@ -650,7 +662,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:928
Private
dequeueTask
@@ -663,7 +675,7 @@ Can be overridden.
workerNodeKey: number
Returns undefined | Task<Data>
+Defined in src/pools/abstract-pool.ts:1238
+Defined in src/pools/abstract-pool.ts:720
Protected
Abstract
destroyWorkerNode
@@ -694,7 +706,7 @@ Can be overridden.
Returns Promise<void>
+Defined in src/pools/abstract-pool.ts:750
+Defined in src/pools/abstract-pool.ts:580
Private
enqueueTask
@@ -734,7 +746,7 @@ Can be overridden.
task: Task<Data>
Returns number
+Defined in src/pools/abstract-pool.ts:1234
+Defined in src/pools/abstract-pool.ts:661
Private
executeTask
@@ -789,7 +801,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1229
Protected
flushTasksQueue
@@ -802,7 +814,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1246
Private
flushTasksQueues
@@ -810,7 +822,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:1256
Protected
getWorkerInfo
@@ -830,7 +842,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1185
Private
getWorkerNodeKeyByWorker
@@ -850,7 +862,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:531
Private
getWorkerNodeKeyByWorkerId
@@ -870,7 +882,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:543
Private
handleTaskExecutionResponse
@@ -883,7 +895,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1139
Private
handleWorkerReadyResponse
@@ -896,7 +908,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:1127
Protected
internalBusy
@@ -908,7 +920,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:631
Protected
Abstract
isMain
@@ -919,7 +931,20 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:765
+
Private
redistributeQueuedTasks
@@ -932,7 +957,7 @@ Can be overridden.
workerNodeKey: number
Returns void
+Defined in src/pools/abstract-pool.ts:1062
Protected
Abstract
registerWorkerMessageListener
@@ -972,7 +997,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1015
Private
removeWorkerNode
@@ -991,7 +1016,22 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1215
+
+Protected
sendKillMessageToWorker
+
+- sendKillMessageToWorker(workerNodeKey, workerId): Promise<void>
+-
+
+
Parameters
+
+-
+
workerNodeKey: number
+-
+
workerId: number
+Returns Promise<void>
Protected
Abstract
sendStartupMessageToWorker
@@ -1010,7 +1050,26 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1042
+
+Private
sendStatisticsMessageToWorker
+
+- sendStatisticsMessageToWorker(workerNodeKey): void
+-
+
+
+
Parameters
+
+-
+
workerNodeKey: number
+
+
+Returns void
+
Protected
Abstract
sendToWorker
@@ -1039,26 +1098,7 @@ Can be overridden.
Returns void
-
-Private
sendWorkerStatisticsMessageToWorker
-
-- sendWorkerStatisticsMessageToWorker(workerNodeKey): void
--
-
-
-
Parameters
-
--
-
workerNodeKey: number
-
-
-Returns void
-
+Defined in src/pools/abstract-pool.ts:917
+Defined in src/pools/abstract-pool.ts:592
+Defined in src/pools/abstract-pool.ts:550
setWorkerChoiceStrategyOptions
+Defined in src/pools/abstract-pool.ts:569
Protected
setupHook
@@ -1135,7 +1175,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:758
Private
shallCreateDynamicWorker
@@ -1147,7 +1187,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:906
Private
startPool
@@ -1155,7 +1195,7 @@ Can be overridden.
-
Returns void
+Defined in src/pools/abstract-pool.ts:295
Private
tasksQueueSize
@@ -1168,7 +1208,7 @@ Can be overridden.
workerNodeKey: number
Returns number
+Defined in src/pools/abstract-pool.ts:1242
Private
updateEluWorkerUsage
@@ -1183,7 +1223,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:850
Private
updateRunTimeWorkerUsage
@@ -1198,7 +1238,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:824
Private
updateTaskStatisticsWorkerUsage
@@ -1213,7 +1253,7 @@ Can be overridden.
message: MessageValue<Response, unknown>
Returns void
+Defined in src/pools/abstract-pool.ts:811
Private
updateWaitTimeWorkerUsage
@@ -1228,7 +1268,7 @@ Can be overridden.
task: Task<Data>
Returns void
+Defined in src/pools/abstract-pool.ts:836
Protected
workerListener
@@ -1255,7 +1295,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1111
Emitter on which events can be listened to.
Events that can currently be listened to:
-
+
+- '
@@ -196,7 +200,7 @@ +'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.'full'
: Emitted when the pool is dynamic and the number of workers created has reached the maximum size expected.destroy
': Emitted when the pool is destroyed.'error'
: Emitted when an uncaught error occurs.'taskError'
: Emitted when an error occurs while executing a task.Protected
Readonly
file