new Transports.Base(options)
transports/base.js, line 6
Create an instance of the Protocol
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
The options passed in to the instance
|
Methods
-
getInstance(options, callback)
transports/base.js, line 41 -
Create a new worker instance and register it with the manager and scheduler.
Name Type Description optionsobject Options
Name Type Description schedulerScheduler Optional scheduler to register worker with, if not supplied then class options.scheduler will be used.
callbackfunction Callback to be called once worker is created and registered.
-
registerInstance(instance, scheduler)
transports/base.js, line 23 -
Register a worker instance with the manager and scheduler
Name Type Description instanceobject The instance to register
schedulerScheduler Optional scheduler to register worker with, if not supplied then class options.scheduler will be used.