X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=inline;f=docs%2Fclasses%2FAbstractPool.html;h=5e92789021fa4414e60df74c0dfe581a710f39ce;hb=eedbbd20d7c77c4b62c129ebfa4a4c4a06d5d06a;hp=30969c24eba5305e5ab3a9f7431500638caca2a7;hpb=dbf662afd2c11c4d18c4e648f90d392528a715f8;p=poolifier.git
diff --git a/docs/classes/AbstractPool.html b/docs/classes/AbstractPool.html
index 30969c24..5e927890 100644
--- a/docs/classes/AbstractPool.html
+++ b/docs/classes/AbstractPool.html
@@ -1,4 +1,4 @@
-
AbstractPool | poolifier - v2.7.0
+AbstractPool | poolifier - v2.7.3
@@ -49,7 +49,7 @@
IPool < Worker , Data , Response >
+
Defined in src/pools/abstract-pool.ts:64
@@ -97,13 +97,9 @@
check And Emit Dynamic Worker Creation Events
check And Emit Task Execution Events
check And Emit Task Queuing Events
-check Dynamic Pool Size
-check File Path
check Message Worker Id
check Number Of Workers
check Pool Options
-check Valid Tasks Queue Options
-check Valid Worker Choice Strategy
check Valid Worker Choice Strategy Options
choose Worker Node
create And Setup Dynamic Worker Node
@@ -111,6 +107,7 @@
create Worker
delete Task Function Worker Usages
dequeue Task
+deregister Worker Message Listener
destroy
destroy Worker Node
enable Tasks Queue
@@ -127,10 +124,12 @@
has Back Pressure
has Task Function
has Worker Node Back Pressure
+initialize Event Emitter
internal Busy
is Main
list Task Function Names
redistribute Queued Tasks
+register Once Worker Message Listener
register Worker Message Listener
remove Task Function
remove Worker Node
@@ -203,13 +202,14 @@
Returns AbstractPool < Worker , Data , Response >
+
Defined in src/pools/abstract-pool.ts:126
Protected
Readonly
number Of Workers
number Of Workers : number
@@ -248,7 +248,7 @@
+
Defined in src/pools/abstract-pool.ts:127
Protected
Readonly
opts
@@ -256,7 +256,7 @@
+Defined in src/pools/abstract-pool.ts:129
Protected
promise Response Map
@@ -269,7 +269,7 @@
+Defined in src/pools/abstract-pool.ts:82
Private
Readonly
start Timestamp
start Timestamp : number
@@ -277,7 +277,7 @@
+Defined in src/pools/abstract-pool.ts:117
Private
started
started : boolean
@@ -285,7 +285,7 @@
+Defined in src/pools/abstract-pool.ts:109
Private
starting
starting : boolean
@@ -293,7 +293,7 @@
+Defined in src/pools/abstract-pool.ts:113
Private
Readonly
task Functions
@@ -305,7 +305,7 @@
+Defined in src/pools/abstract-pool.ts:104
Protected
worker Choice Strategy Context
@@ -313,7 +313,7 @@
+Defined in src/pools/abstract-pool.ts:88
Readonly
Internal
worker Nodes
@@ -322,7 +322,7 @@
+Defined in src/pools/abstract-pool.ts:70
Protected
full
@@ -348,7 +348,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:651
+Defined in src/pools/abstract-pool.ts:271
Protected
max Size
@@ -371,7 +371,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:484
Protected
min Size
@@ -382,7 +382,7 @@
Returns number
+Defined in src/pools/abstract-pool.ts:477
Private
ready
@@ -393,7 +393,7 @@
Returns boolean
+Defined in src/pools/abstract-pool.ts:429
Protected
Abstract
type
@@ -405,7 +405,7 @@
Returns "fixed" | "dynamic"
+Defined in src/pools/abstract-pool.ts:467
+Defined in src/pools/abstract-pool.ts:446
Protected
Abstract
worker
@@ -428,7 +428,7 @@
Returns "thread" | "cluster"
+Defined in src/pools/abstract-pool.ts:472
+Defined in src/pools/abstract-pool.ts:1596
Protected
after Task Execution Hook
@@ -508,7 +508,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1035
Protected
after Worker Node Setup
@@ -528,7 +528,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1346
Protected
before Task Execution Hook
@@ -553,7 +553,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1005
Private
build Tasks Queue Options
@@ -566,7 +566,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:600
Private
check And Emit Dynamic Worker Creation Events
@@ -574,7 +574,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1571
Private
check And Emit Task Execution Events
@@ -582,7 +582,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1559
Private
check And Emit Task Queuing Events
@@ -590,35 +590,7 @@ Can be overridden.
Returns void
-
-Protected
check Dynamic Pool Size
-
-check Dynamic Pool Size ( min , max ) : void
-
-
-
Parameters
-
-
-min : number
-
-max : number
-Returns void
-
-Private
check File Path
-
-check File Path ( filePath ) : void
-
-
-Returns void
+Defined in src/pools/abstract-pool.ts:1565
Private
check Message Worker Id
+Defined in src/pools/abstract-pool.ts:494
Private
check Number Of Workers
@@ -652,7 +624,7 @@ Can be overridden.
numberOfWorkers : number
Returns void
+Defined in src/pools/abstract-pool.ts:170
Private
check Pool Options
@@ -665,33 +637,7 @@ Can be overridden.
Returns void
-
-Private
check Valid Tasks Queue Options
-
-check Valid Tasks Queue Options ( tasksQueueOptions ) : void
-
-
-Returns void
-
-Private
check Valid Worker Choice Strategy
-
-check Valid Worker Choice Strategy ( workerChoiceStrategy ) : void
-
-
-
Parameters
-
-
-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:188
Private
check Valid Worker Choice Strategy Options
@@ -704,7 +650,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:217
Private
choose Worker Node
@@ -717,7 +663,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1162
Protected
create And Setup Dynamic Worker Node
@@ -729,7 +675,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1252
Protected
create And Setup Worker Node
@@ -741,7 +687,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1208
Protected
Abstract
create Worker
@@ -753,7 +699,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1201
Private
delete Task Function Worker Usages
@@ -766,7 +712,7 @@ Can be overridden.
name : string
Returns void
+Defined in src/pools/abstract-pool.ts:855
Private
dequeue Task
@@ -779,7 +725,47 @@ Can be overridden.
workerNodeKey : number
Returns undefined | Task < Data >
+Defined in src/pools/abstract-pool.ts:1661
+
+Protected
Abstract
deregister Worker Message Listener
+
+deregister Worker Message Listener < Message > ( workerNodeKey , listener ) : void
+
+
+
+
+
Parameters
+
+
+workerNodeKey : number
+
+
+
+listener : ( ( message ) => void )
+
+
+
+
+
+( message ) : void
+
+
+Returns void
+Returns void
+
+Defined in src/pools/abstract-pool.ts:940
Protected
Abstract
destroy Worker Node
@@ -810,7 +796,7 @@ Can be overridden.
Returns Promise < void >
+Defined in src/pools/abstract-pool.ts:981
+Defined in src/pools/abstract-pool.ts:565
Private
enqueue Task
@@ -850,7 +836,7 @@ Can be overridden.
task : Task < Data >
Returns number
+Defined in src/pools/abstract-pool.ts:1655
+Defined in src/pools/abstract-pool.ts:870
Private
execute Task
@@ -905,7 +891,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1649
Protected
flush Tasks Queue
@@ -918,7 +904,7 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1669
Private
flush Tasks Queues
@@ -926,7 +912,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1679
Protected
get Worker Info
@@ -946,7 +932,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1585
Private
get Worker Node Key By Worker
@@ -966,7 +952,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:513
Private
get Worker Node Key By Worker Id
@@ -986,7 +972,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:525
Private
handle Task Execution Response
@@ -999,7 +985,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1531
Private
handle Worker Ready Response
@@ -1012,7 +998,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1515
Private
has Back Pressure
@@ -1020,7 +1006,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:1634
+Defined in src/pools/abstract-pool.ts:783
has Worker Node Back Pressure
+Defined in src/pools/abstract-pool.ts:1627
+
+Private
initialize Event Emitter
+
+initialize Event Emitter ( ) : void
+
+Returns void
Protected
internal Busy
@@ -1074,7 +1068,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:667
Protected
Abstract
is Main
@@ -1085,7 +1079,7 @@ Can be overridden.
Returns boolean
+Defined in src/pools/abstract-pool.ts:996
+Defined in src/pools/abstract-pool.ts:835
Private
redistribute Queued Tasks
@@ -1111,7 +1105,47 @@ Can be overridden.
workerNodeKey : number
Returns void
+Defined in src/pools/abstract-pool.ts:1389
+
+Protected
Abstract
register Once Worker Message Listener
+
+register Once Worker Message Listener < Message > ( workerNodeKey , listener ) : void
+
+
+
+
+
Parameters
+
+
+workerNodeKey : number
+
+
+
+listener : ( ( message ) => void )
+
+
+
+
+
+( message ) : void
+
+
+Returns void
+Returns void
+
Protected
Abstract
register Worker Message Listener
@@ -1151,7 +1185,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1307
+Defined in src/pools/abstract-pool.ts:819
Private
remove Worker Node
@@ -1191,7 +1225,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1618
Protected
send Kill Message To Worker
@@ -1204,7 +1238,7 @@ Can be overridden.
workerNodeKey : number
Returns Promise < void >
+Defined in src/pools/abstract-pool.ts:953
Protected
Abstract
send Startup Message To Worker
@@ -1223,7 +1257,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1370
Private
send Statistics Message To Worker
@@ -1242,7 +1276,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1377
Private
send Task Function Operation To Worker
@@ -1257,7 +1291,7 @@ Can be overridden.
Returns Promise < boolean >
+Defined in src/pools/abstract-pool.ts:686
Private
send Task Function Operation To Workers
@@ -1270,7 +1304,7 @@ Can be overridden.
Returns Promise < boolean >
+Defined in src/pools/abstract-pool.ts:727
Protected
Abstract
send To Worker
@@ -1299,7 +1333,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:1190
+Defined in src/pools/abstract-pool.ts:848
Private
set Task Stealing
@@ -1328,7 +1362,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:620
+Defined in src/pools/abstract-pool.ts:579
Private
set Tasks Queue Size
@@ -1361,7 +1395,7 @@ Can be overridden.
size : number
Returns void
+Defined in src/pools/abstract-pool.ts:614
Private
set Tasks Stealing On Back Pressure
@@ -1369,7 +1403,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:633
+Defined in src/pools/abstract-pool.ts:532
set Worker Choice Strategy Options
+Defined in src/pools/abstract-pool.ts:551
Protected
setup Hook
@@ -1426,7 +1460,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:989
Private
shall Create Dynamic Worker
@@ -1438,7 +1472,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1179
Private
shall Execute Task
@@ -1451,7 +1485,7 @@ Can be overridden.
workerNodeKey : number
Returns boolean
+Defined in src/pools/abstract-pool.ts:861
Private
shall Update Task Function Worker Usage
@@ -1471,7 +1505,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1068
+Defined in src/pools/abstract-pool.ts:924
Private
task Stealing On Empty Queue
@@ -1496,7 +1530,7 @@ Can be overridden.
workerId : number
Returns void
+Defined in src/pools/abstract-pool.ts:1429
Private
tasks Queue Size
@@ -1509,7 +1543,7 @@ Can be overridden.
workerNodeKey : number
Returns number
+Defined in src/pools/abstract-pool.ts:1665
Private
tasks Stealing On Back Pressure
@@ -1522,7 +1556,7 @@ Can be overridden.
workerId : number
Returns void
+Defined in src/pools/abstract-pool.ts:1457
Private
unset Task Stealing
@@ -1530,7 +1564,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:627
Private
unset Tasks Stealing On Back Pressure
@@ -1538,7 +1572,7 @@ Can be overridden.
Returns void
+Defined in src/pools/abstract-pool.ts:640
Private
update Elu Worker Usage
@@ -1553,7 +1587,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1122
Private
update Run Time Worker Usage
@@ -1568,7 +1602,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1095
Private
update Task Statistics Worker Usage
@@ -1583,7 +1617,7 @@ Can be overridden.
message : MessageValue < Response , unknown >
Returns void
+Defined in src/pools/abstract-pool.ts:1077
Private
update Task Stolen Statistics Worker Usage
@@ -1598,7 +1632,7 @@ Can be overridden.
taskName : string
Returns void
+Defined in src/pools/abstract-pool.ts:1410
Private
update Wait Time Worker Usage
@@ -1613,7 +1647,7 @@ Can be overridden.
task : Task < Data >
Returns void
+Defined in src/pools/abstract-pool.ts:1109
Protected
worker Listener
@@ -1640,7 +1674,7 @@ Can be overridden.
+Defined in src/pools/abstract-pool.ts:1497
Emitter on which events can be listened to.
+
+Optional
emitterEvent emitter integrated with async resource on which events can be listened to. +The async tracking tooling identifier is
poolifier:<PoolType>-<WorkerType>-pool
.Events that can currently be listened to:
'ready'
: Emitted when the number of workers created in the pool has reached the minimum size expected and are ready.Protected
Readonly
fileProtected
Optional
Readonly
max