X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FDynamicClusterPool.html;h=0a537f5fc23a9f2b64d36ae71c21a33bb122d696;hb=797996a92f40d5779cd31314b59462e41d529989;hp=051f7ce50d1267c4d8f903d1404441fa329dbba0;hpb=fec1c97860619dd6356803fee392205474010d5b;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 051f7ce5..0a537f5f 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -1,11 +1,13 @@
This cluster pool creates new workers when the others are busy, up to the maximum number of workers.
When the maximum number of workers is reached, an event is emitted. If you want to listen to this event, use the pool's emitter
.
of data sent to the worker. This can only be serializable data.
- -of response of execution. This can only be serializable data.
-2.0.0
@@ -30,9 +28,13 @@ When the maximum number of workers is reached, an event is emitted. If you wantType of response of execution. This can only be serializable data.
+Constructs a new poolifier dynamic cluster pool.
Path to an implementation of a ClusterWorker
file, which can be relative or absolute.
Optional
opts: ClusterPoolOptions = {}Options for this dynamic cluster pool.
Optional
Readonly
emitterReadonly
filePath to the worker-file.
+Inherited from FixedClusterPool.filePath
Readonly
maxProtected
Readonly
maxInherited from FixedClusterPool.max
+Maximum number of workers that can be created by this pool.
+Protected
nextInherited from FixedClusterPool.nextMessageId
Readonly
numberNumber of workers that this pool should manage.
+Inherited from FixedClusterPool.numberOfWorkers
Readonly
optsOptions for this fixed cluster pool.
+Inherited from FixedClusterPool.opts
Protected
promiseInherited from FixedClusterPool.promiseMap
Protected
workerInherited from FixedClusterPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
+Inherited from FixedClusterPool.workers
Readonly
workers{@inheritDoc}
+Inherited from FixedClusterPool.workersTasksUsage
{@inheritDoc}
+Overrides FixedClusterPool.busy
{@inheritDoc}
+Inherited from FixedClusterPool.numberOfRunningTasks
{@inheritDoc}
+Overrides FixedClusterPool.type
Inherited from FixedClusterPool.afterPromiseWorkerResponseHook
Protected
after{@inheritDoc}
+Inherited from FixedClusterPool.afterWorkerSetup
Protected
beforeInherited from FixedClusterPool.beforePromiseWorkerResponseHook
Protected
chooseInherited from FixedClusterPool.chooseWorker
Protected
createInherited from FixedClusterPool.createAndSetupWorker
Protected
create{@inheritDoc}
+Inherited from FixedClusterPool.createWorker
{@inheritDoc}
+Inherited from FixedClusterPool.destroy
{@inheritDoc}
+Inherited from FixedClusterPool.destroyWorker
{@inheritDoc}
+Inherited from FixedClusterPool.execute
{@inheritDoc}
+Inherited from FixedClusterPool.findFreeWorker
{@inheritDoc}
+Inherited from FixedClusterPool.getWorkerAverageTasksRunTime
{@inheritDoc}
+Inherited from FixedClusterPool.getWorkerIndex
{@inheritDoc}
+Inherited from FixedClusterPool.getWorkerRunningTasks
Initializes tasks usage statistics.
-The worker.
-Inherited from FixedClusterPool.initWorkerTasksUsage
-Protected
internalInherited from FixedClusterPool.internalExecute
-Protected
internalInherited from FixedClusterPool.internalGetBusyStatus
Protected
is{@inheritDoc}
+Inherited from FixedClusterPool.isMain
{@inheritDoc}
+Inherited from FixedClusterPool.registerWorkerMessageListener
Protected
removeWorker that will be removed.
+The worker that will be removed.
Inherited from FixedClusterPool.removeWorker
Protected
send{@inheritDoc}
+Inherited from FixedClusterPool.sendToWorker
{@inheritDoc}
+Inherited from FixedClusterPool.setWorkerChoiceStrategy
Protected
setup{@inheritDoc}
+Inherited from FixedClusterPool.setupHook
Protected
workerInherited from FixedClusterPool.workerListener
Type of data sent to the worker. This can only be serializable data.
+