X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fclasses%2FFixedClusterPool.html;h=66464ceca64563474f540816f2da42b3e0a1384e;hb=797996a92f40d5779cd31314b59462e41d529989;hp=9a7ec8cb3244fac5aec2ec0a9b7a0fe03cb69ba1;hpb=c0b0686de0f8c5483b20b94fac97d2b8175c0556;p=poolifier.git diff --git a/docs/classes/FixedClusterPool.html b/docs/classes/FixedClusterPool.html index 9a7ec8cb..66464cec 100644 --- a/docs/classes/FixedClusterPool.html +++ b/docs/classes/FixedClusterPool.html @@ -1,11 +1,13 @@
It is possible to perform tasks in sync or asynchronous mode as you prefer.
This pool selects the workers in a round robin fashion.
-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 @@Type of response of execution. This can only be serializable data.
+Constructs a new poolifier fixed cluster pool.
Path to an implementation of a ClusterWorker
file, which can be relative or absolute.
Optional
opts: ClusterPoolOptions = {}Options for this fixed cluster pool.
Optional
Readonly
emitterReadonly
filePath to the worker-file.
+Inherited from AbstractPool.filePath
Optional
Readonly
maxInherited from AbstractPool.max
-Protected
nextInherited from AbstractPool.nextMessageId
Readonly
numberNumber of workers that this pool should manage.
+Inherited from AbstractPool.numberOfWorkers
Readonly
optsOptions for this fixed cluster pool.
+Inherited from AbstractPool.opts
Protected
promiseInherited from AbstractPool.promiseMap
Readonly
tasksInherited from AbstractPool.tasks
-Protected
workerInherited from AbstractPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
+Inherited from AbstractPool.workers
Readonly
workers{@inheritDoc}
+Inherited from AbstractPool.workersTasksUsage
+{@inheritDoc}
+Overrides AbstractPool.busy
{@inheritDoc}
+Inherited from AbstractPool.numberOfRunningTasks
{@inheritDoc}
+Overrides AbstractPool.type
Protected
afterHook executed after the worker task promise resolution. +Can be overridden.
+The received message.
+The Promise response.
+Inherited from AbstractPool.afterPromiseWorkerResponseHook
+Protected
after{@inheritDoc}
+Overrides AbstractPool.afterWorkerSetup
Protected
beforeHook executed before the worker task promise resolution. +Can be overridden.
+The worker.
+Inherited from AbstractPool.beforePromiseWorkerResponseHook
+Protected
chooseChoose a worker for the next task.
+Chooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
Worker.
@@ -278,7 +319,7 @@Inherited from AbstractPool.chooseWorker
Protected
createInherited from AbstractPool.createAndSetupWorker
Protected
create{@inheritDoc}
+Overrides AbstractPool.createWorker
Protected
decreaseDecrease the number of tasks that the given worker has applied.
-Worker whose tasks are decreased.
-Inherited from AbstractPool.decreaseWorkersTasks
-{@inheritDoc}
+Inherited from AbstractPool.destroy
{@inheritDoc}
+Overrides AbstractPool.destroyWorker
{@inheritDoc}
+Inherited from AbstractPool.execute
{@inheritDoc}
+Inherited from AbstractPool.findFreeWorker
{@inheritDoc}
+Inherited from AbstractPool.getWorkerAverageTasksRunTime
+{@inheritDoc}
+Inherited from AbstractPool.getWorkerIndex
{@inheritDoc}
+Inherited from AbstractPool.getWorkerRunningTasks
Protected
increaseIncrease the number of tasks that the given worker has applied.
-Worker whose tasks are increased.
-Inherited from AbstractPool.increaseWorkersTask
-Protected
internalInherited from AbstractPool.internalExecute
-Protected
internalInherited from AbstractPool.internalGetBusyStatus
Protected
is{@inheritDoc}
+Overrides AbstractPool.isMain
{@inheritDoc}
+Overrides AbstractPool.registerWorkerMessageListener
Protected
removeWorker that will be removed.
+The worker that will be removed.
Inherited from AbstractPool.removeWorker
Protected
send{@inheritDoc}
+Overrides AbstractPool.sendToWorker
{@inheritDoc}
+Inherited from AbstractPool.setWorkerChoiceStrategy
Protected
setup{@inheritDoc}
+Overrides AbstractPool.setupHook
Protected
workerInherited from AbstractPool.workerListener
Type of data sent to the worker. This can only be serializable data.
+