X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FAbstractPool.html;h=92d46d153c26a6e332bce691985d560adac71ee5;hb=b4c2a50df77a5f3110d228436ce9f3008cbd8297;hp=00d68b3d181866d60a64610ffe52a9cd7260643a;hpb=3f25036f6dab9916ac40916ca1dc5358ec1f88ba;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 00d68b3d..92d46d15 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.6.33
+AbstractPool | poolifier - v2.6.40
@@ -49,7 +49,7 @@
IPool < Worker , Data , Response >
+
Defined in src/pools/abstract-pool.ts:57
@@ -174,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
@@ -218,7 +217,7 @@
+Defined in src/pools/abstract-pool.ts:115
Protected
Optional
Readonly
max
max ?: number
@@ -226,7 +225,7 @@
+Defined in src/pools/abstract-pool.ts:91
Protected
Readonly
number Of Workers
number Of Workers : number
@@ -234,7 +233,7 @@
+Defined in src/pools/abstract-pool.ts:114
Protected
Readonly
opts
@@ -242,7 +241,7 @@
+Defined in src/pools/abstract-pool.ts:116
Protected
promise Response Map
@@ -255,7 +254,7 @@
+Defined in src/pools/abstract-pool.ts:76
Private
Readonly
start Timestamp
start Timestamp : number
@@ -263,7 +262,7 @@
+Defined in src/pools/abstract-pool.ts:104
Private
started
started : boolean
@@ -271,7 +270,7 @@
+Defined in src/pools/abstract-pool.ts:100
Private
Readonly
starting
starting : boolean
@@ -279,7 +278,7 @@
+Defined in src/pools/abstract-pool.ts:96
Protected
worker Choice Strategy Context
@@ -287,7 +286,7 @@
+Defined in src/pools/abstract-pool.ts:82
Readonly
Internal
worker Nodes
@@ -296,7 +295,7 @@
+Defined in src/pools/abstract-pool.ts:63
Protected
full
@@ -322,7 +321,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:687
+Defined in src/pools/abstract-pool.ts:348
Protected
max Size
@@ -345,7 +344,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:560
Protected
min Size
@@ -356,7 +355,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:553
Private
ready
@@ -367,7 +366,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:505
Protected
Abstract
type
@@ -379,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
@@ -402,7 +401,7 @@
Returns "thread" | "cluster"
+Defined in src/pools/abstract-pool.ts:548
Protected
after Task Execution Hook
@@ -441,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
@@ -466,12 +462,11 @@ Can be overridden.
workerNodeKey : number
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1160
Protected
before Task Execution Hook
@@ -486,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
@@ -509,7 +502,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:670
Private
check And Emit Dynamic Worker Creation Events
@@ -517,7 +510,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1403
Private
check And Emit Task Execution Events
@@ -525,7 +518,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1391
Private
check And Emit Task Queuing Events
@@ -533,7 +526,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1397
Protected
check Dynamic Pool Size
@@ -548,7 +541,7 @@ Can be overridden.
max : number
Returns void
+Defined in src/pools/abstract-pool.ts:185
Private
check File Path
@@ -561,7 +554,7 @@ Can be overridden.
filePath : string
Returns void
+Defined in src/pools/abstract-pool.ts:154
Private
check Message Worker Id
@@ -575,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
@@ -595,7 +587,7 @@ Can be overridden.
numberOfWorkers : number
Returns void
+Defined in src/pools/abstract-pool.ts:167
Private
check Pool Options
@@ -608,7 +600,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:211
Private
check Valid Tasks Queue Options
@@ -618,10 +610,10 @@ Can be overridden.
Parameters
+
Returns void
+Defined in src/pools/abstract-pool.ts:293
Private
check Valid Worker Choice Strategy
@@ -634,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
@@ -647,7 +639,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:249
Private
choose Worker Node
@@ -660,7 +652,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1013
Protected
create And Setup Dynamic Worker Node
@@ -672,7 +664,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1103
Protected
create And Setup Worker Node
@@ -684,7 +676,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1059
Protected
Abstract
create Worker
@@ -696,7 +688,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1052
Private
dequeue Task
@@ -709,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
@@ -735,12 +727,11 @@ Can be overridden.
workerNodeKey : number
-
+
Returns Promise < void >
+Defined in src/pools/abstract-pool.ts:832
enable Tasks Queue
@@ -754,18 +745,16 @@ Can be overridden.
enable : boolean
-
+
-
+Optional
Returns void
+Defined in src/pools/abstract-pool.ts:641
Private
enqueue Task
@@ -780,7 +769,7 @@ Can be overridden.
task : Task < Data >
Returns number
+Defined in src/pools/abstract-pool.ts:1487
execute
@@ -794,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
@@ -825,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
@@ -848,7 +832,7 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1501
Private
flush Tasks Queues
@@ -856,7 +840,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1511
Protected
get Worker Info
@@ -870,13 +854,12 @@ Can be overridden.
workerNodeKey : number
-
+
The worker information.
+Defined in src/pools/abstract-pool.ts:1417
Private
get Worker Node Key By Worker
@@ -890,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
@@ -910,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
@@ -929,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
@@ -942,7 +923,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1349
Private
has Back Pressure
@@ -950,7 +931,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:1466
has Worker Node Back Pressure
@@ -964,14 +945,13 @@ Can be overridden.
workerNodeKey : number
-
+
Returns boolean true
if the worker node has back pressure, false
otherwise.
+Defined in src/pools/abstract-pool.ts:1459
Protected
internal Busy
@@ -983,7 +963,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:703
Protected
Abstract
is Main
@@ -994,7 +974,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:847
+Defined in src/pools/abstract-pool.ts:724
Private
redistribute Queued Tasks
@@ -1020,7 +1000,7 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1200
Protected
Abstract
register Worker Message Listener
@@ -1039,13 +1019,11 @@ Can be overridden.
workerNodeKey : number
-
+
listener : ( ( message ) => void )
-
@@ -1060,7 +1038,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1147
Private
remove Worker Node
@@ -1074,12 +1052,11 @@ Can be overridden.
worker : Worker
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1450
Protected
send Kill Message To Worker
@@ -1094,7 +1071,7 @@ Can be overridden.
workerId : number
Returns Promise < void >
+Defined in src/pools/abstract-pool.ts:811
Protected
Abstract
send Startup Message To Worker
@@ -1108,12 +1085,11 @@ Can be overridden.
workerNodeKey : number
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1180
Private
send Statistics Message To Worker
@@ -1127,12 +1103,11 @@ Can be overridden.
workerNodeKey : number
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:1187
Protected
Abstract
send To Worker
@@ -1146,35 +1121,19 @@ Can be overridden.
workerNodeKey : number
-
+
-
+
Optional
transferList : TransferListItem []
-
+Optional
Returns void
-
-Private
set Tasks Queue Max Size
-
-set Tasks Queue Max Size ( size ) : void
-
-
-Returns void
+Defined in src/pools/abstract-pool.ts:1041
set Tasks Queue Options
@@ -1188,13 +1147,25 @@ Can be overridden.
-
+
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
@@ -1208,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
@@ -1233,13 +1202,12 @@ Can be overridden.
-
+
Returns void
+Defined in src/pools/abstract-pool.ts:627
Protected
setup Hook
@@ -1251,7 +1219,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:840
Private
shall Create Dynamic Worker
@@ -1263,7 +1231,20 @@ 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
@@ -1277,13 +1258,12 @@ Can be overridden.
workerNodeKey : number
-
+
Returns boolean true
if the worker node shall update its task function worker usage, false
otherwise.
+Defined in src/pools/abstract-pool.ts:919
Private
start Pool
@@ -1291,7 +1271,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:335
Private
task Stealing On Empty Queue
@@ -1304,7 +1284,7 @@ Can be overridden.
workerId : number
Returns void
+Defined in src/pools/abstract-pool.ts:1250
Private
tasks Queue Size
@@ -1317,7 +1297,7 @@ Can be overridden.
workerNodeKey : number
Returns number
+Defined in src/pools/abstract-pool.ts:1497
Private
tasks Stealing On Back Pressure
@@ -1330,7 +1310,7 @@ Can be overridden.
workerId : number
Returns void
+Defined in src/pools/abstract-pool.ts:1286
Private
update Elu Worker Usage
@@ -1345,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
@@ -1360,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
@@ -1375,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
@@ -1390,7 +1385,7 @@ Can be overridden.
task : Task < Data >
Returns void
+Defined in src/pools/abstract-pool.ts:960
Protected
worker Listener
@@ -1417,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.
-