X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FAbstractPool.html;h=92d46d153c26a6e332bce691985d560adac71ee5;hb=8974e0633f6c99528bf3590e7c76820b2c69d3e2;hp=5d9c47e5236bc1dd4415ad1ad6d983a6c47191be;hpb=2447ee8ce5d3db1253c7286482e5a54e84618ecf;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 5d9c47e5..92d46d15 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.6.24
+AbstractPool | poolifier - v2.6.40
@@ -49,7 +49,7 @@
IPool < Worker , Data , Response >
+
Defined in src/pools/abstract-pool.ts:57
@@ -63,10 +63,12 @@
Properties
@@ -162,22 +176,19 @@
numberOfWorkers : number
-
+
filePath : string
-
+
-
+
Returns AbstractPool < Worker , Data , Response >
+Defined in src/pools/abstract-pool.ts:113
Protected
Readonly
file Path
file Path : string
@@ -204,7 +217,15 @@
+Defined in src/pools/abstract-pool.ts:115
+
+Protected
Optional
Readonly
max
+max ?: number
+
+
Protected
Readonly
number Of Workers
number Of Workers : number
@@ -212,7 +233,7 @@
+Defined in src/pools/abstract-pool.ts:114
Protected
Readonly
opts
@@ -220,7 +241,7 @@
+Defined in src/pools/abstract-pool.ts:116
Protected
promise Response Map
@@ -233,7 +254,7 @@
+Defined in src/pools/abstract-pool.ts:76
Private
Readonly
start Timestamp
start Timestamp : number
@@ -241,7 +262,15 @@
+Defined in src/pools/abstract-pool.ts:104
+
+Private
started
+started : boolean
+
+
Private
Readonly
starting
starting : boolean
@@ -249,7 +278,7 @@
+Defined in src/pools/abstract-pool.ts:96
Protected
worker Choice Strategy Context
@@ -257,16 +286,16 @@
+Defined in src/pools/abstract-pool.ts:82
-Readonly
worker Nodes
+Readonly
Internal
worker Nodes
+Defined in src/pools/abstract-pool.ts:63
Protected
full
@@ -292,7 +321,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:687
+Defined in src/pools/abstract-pool.ts:348
-Protected
Abstract
max Size
+Protected
max Size
get maxSize( ) : number
@@ -315,9 +344,9 @@
Returns number
+Defined in src/pools/abstract-pool.ts:560
-Protected
Abstract
min Size
+Protected
min Size
get minSize( ) : number
@@ -326,7 +355,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:553
Private
ready
@@ -337,7 +366,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:505
Protected
Abstract
type
@@ -349,7 +378,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:543
+Defined in src/pools/abstract-pool.ts:522
Protected
Abstract
worker
@@ -372,7 +401,7 @@
Returns "thread" | "cluster"
+Defined in src/pools/abstract-pool.ts:548
Protected
after Task Execution Hook
@@ -411,17 +439,15 @@ Can be overridden.
workerNodeKey : number
-
+
message : MessageValue < Response , unknown >
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:886
Protected
after Worker Node Setup
@@ -436,12 +462,11 @@ Can be overridden.
workerNodeKey : number
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1160
Protected
before Task Execution Hook
@@ -456,17 +481,15 @@ Can be overridden.
workerNodeKey : number
-
+
task : Task < Data >
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:856
Private
build Tasks Queue Options
@@ -479,15 +502,31 @@ Can be overridden.
-
+
+Private
check And Emit Dynamic Worker Creation Events
-check And Emit Events ( ) : void
+check And Emit Dynamic Worker Creation Events ( ) : void
Returns void
+Defined in src/pools/abstract-pool.ts:1403
+
+Private
check And Emit Task Execution Events
+
+check And Emit Task Execution Events ( ) : void
+
+Returns void
+
+Private
check And Emit Task Queuing Events
+
+check And Emit Task Queuing Events ( ) : void
+
+Returns void
Protected
check Dynamic Pool Size
@@ -502,7 +541,7 @@ Can be overridden.
max : number
Returns void
+Defined in src/pools/abstract-pool.ts:185
Private
check File Path
@@ -515,7 +554,7 @@ Can be overridden.
filePath : string
Returns void
+Defined in src/pools/abstract-pool.ts:154
Private
check Message Worker Id
@@ -529,14 +568,13 @@ Can be overridden.
message : MessageValue < Response , unknown >
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:570
Private
check Number Of Workers
@@ -549,7 +587,7 @@ Can be overridden.
numberOfWorkers : number
Returns void
+Defined in src/pools/abstract-pool.ts:167
Private
check Pool Options
@@ -562,7 +600,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:211
Private
check Valid Tasks Queue Options
@@ -575,7 +613,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:293
Private
check Valid Worker Choice Strategy
@@ -588,7 +626,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:239
Private
check Valid Worker Choice Strategy Options
@@ -601,7 +639,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:249
Private
choose Worker Node
@@ -614,7 +652,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1013
Protected
create And Setup Dynamic Worker Node
@@ -626,7 +664,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1103
Protected
create And Setup Worker Node
@@ -638,7 +676,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1059
Protected
Abstract
create Worker
@@ -650,7 +688,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1052
Private
dequeue Task
@@ -663,7 +701,7 @@ Can be overridden.
workerNodeKey : number
Returns undefined | Task < Data >
+Defined in src/pools/abstract-pool.ts:1493
+Defined in src/pools/abstract-pool.ts:801
Protected
Abstract
destroy Worker Node
@@ -689,37 +727,34 @@ Can be overridden.
workerNodeKey : number
-
+
Returns Promise < void >
+Defined in src/pools/abstract-pool.ts:832
enable Tasks Queue
enable Tasks Queue ( enable , tasksQueueOptions ? ) : void
-
Returns void
+Defined in src/pools/abstract-pool.ts:641
Private
enqueue Task
@@ -734,7 +769,7 @@ Can be overridden.
task : Task < Data >
Returns number
+Defined in src/pools/abstract-pool.ts:1487
execute
@@ -748,24 +783,21 @@ Can be overridden.
Optional
data : Data
-
+Optional
Optional
name : string
-
+Optional
Optional
transferList : TransferListItem []
-
+Optional
Returns Promise < Response > Promise that will be fulfilled when the task is completed.
+Defined in src/pools/abstract-pool.ts:745
Private
execute Task
@@ -779,17 +811,15 @@ Can be overridden.
workerNodeKey : number
-
+
task : Task < Data >
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1481
Protected
flush Tasks Queue
@@ -802,7 +832,7 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1501
Private
flush Tasks Queues
@@ -810,11 +840,11 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1511
Protected
get Worker Info
-get Worker Info ( workerNodeKey ) : WorkerInfo
+get Worker Info ( workerNodeKey ) : undefined | WorkerInfo
@@ -824,13 +854,12 @@ Can be overridden.
workerNodeKey : number
-
-The worker information.
+
+The worker information.
+Defined in src/pools/abstract-pool.ts:1417
Private
get Worker Node Key By Worker
@@ -844,13 +873,12 @@ Can be overridden.
worker : Worker
-
+
Returns number The worker node key if found in the pool worker nodes, -1
otherwise.
+Defined in src/pools/abstract-pool.ts:589
Private
get Worker Node Key By Worker Id
@@ -864,13 +892,12 @@ Can be overridden.
workerId : number
-
+
Returns number The worker node key if the worker id is found in the pool worker nodes, -1
otherwise.
+Defined in src/pools/abstract-pool.ts:601
Private
handle Task Execution Response
@@ -883,7 +910,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1363
Private
handle Worker Ready Response
@@ -896,7 +923,35 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1349
+
+Private
has Back Pressure
+
+has Back Pressure ( ) : boolean
+
+Returns boolean
+
+has Worker Node Back Pressure
+
Protected
internal Busy
@@ -908,7 +963,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:703
Protected
Abstract
is Main
@@ -919,7 +974,20 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:847
+
Private
redistribute Queued Tasks
@@ -932,7 +1000,7 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1200
Protected
Abstract
register Worker Message Listener
@@ -951,13 +1019,11 @@ Can be overridden.
workerNodeKey : number
-
+
listener : ( ( message ) => void )
-
@@ -972,7 +1038,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1147
Private
remove Worker Node
@@ -986,12 +1052,26 @@ Can be overridden.
worker : Worker
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1450
+
+Protected
send Kill Message To Worker
+
+send Kill Message To Worker ( workerNodeKey , workerId ) : Promise < void >
+
+
+
Parameters
+
+
+workerNodeKey : number
+
+workerId : number
+Returns Promise < void >
Protected
Abstract
send Startup Message To Worker
@@ -1005,12 +1085,29 @@ Can be overridden.
workerNodeKey : number
+Returns void
+
+
+Private
send Statistics Message To Worker
+
+send Statistics Message To Worker ( workerNodeKey ) : void
+
+
-
+
+
Parameters
+
+
+workerNodeKey : number
+
Returns void
+Defined in src/pools/abstract-pool.ts:1187
Protected
Abstract
send To Worker
@@ -1024,61 +1121,51 @@ Can be overridden.
workerNodeKey : number
-
+
-
+
Optional
transferList : TransferListItem []
-
+Optional
Returns void
-
-Private
send Worker Statistics Message To Worker
-
-send Worker Statistics Message To Worker ( workerNodeKey ) : void
-
-
-
-
Parameters
-
-
-workerNodeKey : number
-
-
-Returns void
-
+Defined in src/pools/abstract-pool.ts:1041
set Tasks Queue Options
set Tasks Queue Options ( tasksQueueOptions ) : void
-
Returns void
+Defined in src/pools/abstract-pool.ts:653
+
+Private
set Tasks Queue Size
+
+set Tasks Queue Size ( size ) : void
+
+
+Returns void
set Worker Choice Strategy
@@ -1092,18 +1179,16 @@ Can be overridden.
workerChoiceStrategy : "ROUND_ROBIN" | "LEAST_USED" | "LEAST_BUSY" | "LEAST_ELU" | "FAIR_SHARE" | "WEIGHTED_ROUND_ROBIN" | "INTERLEAVED_WEIGHTED_ROUND_ROBIN"
-
+
-
+Optional
Returns void
+Defined in src/pools/abstract-pool.ts:608
set Worker Choice Strategy Options
@@ -1117,13 +1202,12 @@ Can be overridden.
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:627
Protected
setup Hook
@@ -1135,7 +1219,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:840
Private
shall Create Dynamic Worker
@@ -1147,7 +1231,39 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1030
+
+Private
shall Execute Task
+
+shall Execute Task ( workerNodeKey ) : boolean
+
+
+Returns boolean
+
+Private
shall Update Task Function Worker Usage
+
Private
start Pool
@@ -1155,7 +1271,20 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:335
+
+Private
task Stealing On Empty Queue
+
+task Stealing On Empty Queue ( workerId ) : void
+
+
+Returns void
Private
tasks Queue Size
@@ -1168,7 +1297,20 @@ Can be overridden.
workerNodeKey : number
Returns number
+Defined in src/pools/abstract-pool.ts:1497
+
+Private
tasks Stealing On Back Pressure
+
+tasks Stealing On Back Pressure ( workerId ) : void
+
+
+Returns void
Private
update Elu Worker Usage
@@ -1183,7 +1325,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:973
Private
update Run Time Worker Usage
@@ -1198,7 +1340,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:946
Private
update Task Statistics Worker Usage
@@ -1213,7 +1355,22 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:928
+
+Private
update Task Stolen Statistics Worker Usage
+
+update Task Stolen Statistics Worker Usage ( workerNodeKey , taskName ) : void
+
+
+
Parameters
+
+
+workerNodeKey : number
+
+taskName : string
+Returns void
Private
update Wait Time Worker Usage
@@ -1228,7 +1385,7 @@ Can be overridden.
task : Task < Data >
Returns void
+Defined in src/pools/abstract-pool.ts:960
Protected
worker Listener
@@ -1255,7 +1412,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1329
+Generated using TypeDoc
\ No newline at end of file
Number of workers that this pool should manage.
-