X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=docs%2Fclasses%2FDynamicClusterPool.html;h=583cf496c2f65a0075168252beef88dddd672a07;hb=0770fe626b2bb3212a1d73fa4764973ac92e241a;hp=108485539dfc24a44e7c1ad95fee7451016fd9fd;hpb=200aca02adb41311beb654c24970049a50df5474;p=poolifier.git diff --git a/docs/classes/DynamicClusterPool.html b/docs/classes/DynamicClusterPool.html index 10848553..583cf496 100644 --- a/docs/classes/DynamicClusterPool.html +++ b/docs/classes/DynamicClusterPool.html @@ -6,7 +6,7 @@
Optional
Readonly
emitterReadonly
filePath to the worker-file.
+Inherited from FixedClusterPool.filePath
Protected
Readonly
maxProtected
nextId of the next message.
+Private
Readonly
maxMaximum number of workers that can be created by this pool.
Inherited 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
promiseThe promise map.
+Protected
promiseThe promise response map.
key
: This is the message Id of each submitted task.value
: An object that contains the worker, the resolve function and the reject function.key
: The message id of each submitted task.value
: An object that contains the worker, the promise resolve and reject callbacks.When we receive a message from the worker we get a map entry and resolve/reject the promise based on the message.
+When we receive a message from the worker we get a map entry with the promise resolve/reject bound to the message.
Inherited from FixedClusterPool.promiseMap
+Inherited from FixedClusterPool.promiseResponseMap
Protected
workerInherited from FixedClusterPool.workerChoiceStrategyContext
Readonly
workers{@inheritDoc}
+Inherited from FixedClusterPool.workers
Readonly
workersInherited from FixedClusterPool.workersTasksUsage
-{@inheritDoc}
+Overrides FixedClusterPool.busy
{@inheritDoc}
+Overrides FixedClusterPool.full
+Private
numberNumber of tasks concurrently running.
+Inherited from FixedClusterPool.numberOfRunningTasks
{@inheritDoc}
+Overrides FixedClusterPool.type
Protected
afterProtected
afterHook executed after the worker task promise resolution. Can be overridden.
@@ -263,24 +261,24 @@ Can be overridden.The received message.
+The worker.
The Promise response.
+The received message.
Inherited from FixedClusterPool.afterPromiseWorkerResponseHook
+Inherited from FixedClusterPool.afterPromiseResponseHook
Protected
after{@inheritDoc}
+Inherited from FixedClusterPool.afterWorkerSetup
Protected
beforeProtected
beforeHook executed before the worker task promise resolution. Can be overridden.
@@ -302,27 +300,27 @@ Can be overridden.The worker.
+The worker key.
Inherited from FixedClusterPool.beforePromiseWorkerResponseHook
+Inherited from FixedClusterPool.beforePromiseResponseHook
Protected
chooseChooses a worker for the next task.
The default implementation uses a round robin algorithm to distribute the load.
-Worker.
+[worker key, worker].
Inherited 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
Inherited from FixedClusterPool.findFreeWorker
-Inherited from FixedClusterPool.getWorkerAverageTasksRunTime
-{@inheritDoc}
+Inherited from FixedClusterPool.getWorkerIndex
-Inherited from FixedClusterPool.getWorkerRunningTasks
+Inherited from FixedClusterPool.findFreeWorkerKey
Protected
internalProtected
internalInherited from FixedClusterPool.internalExecute
-Protected
internalInherited from FixedClusterPool.internalGetBusyStatus
+Inherited from FixedClusterPool.internalBusy
Protected
is{@inheritDoc}
+Inherited from FixedClusterPool.isMain
{@inheritDoc}
+Inherited from FixedClusterPool.registerWorkerMessageListener
Protected
removeInherited 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
Inherit Doc