BotWorker class used when starting clusters
Central storage map
Map of clusters by ID
Map of cluster ID to sequential failed restarts
Map of cluster group number to the number of times that group's members have connected
Eris client used to get the gateway information and to send requests when using the central request handler
IPC for the Admiral which functions like the worker IPC classes. Has some redundant functions which already exist on the Admiral class.
Maps of workers currently launching by ID
Path used when starting clusters
Map of services by name
Map of service name to sequential failed restarts
Services to create
Current stats
Sets or gets the default captureRejection value for all emitters.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Broadcast an event to all clusters and services. The event can be listened to with register
Name of the event
Force eris-fleet to fetch fresh stats
Promise with stats
Create a service
Unique ame of the service
Absolute path to the service file or your ServiceWorker class (extends BaseServiceWorker)
Reshards all clusters
Change the resharding options
Restarts all clusters
Whether to ignore the soft shutdown function
Restarts all services
Whether to ignore the soft shutdown function
Restarts a specific cluster
ID of the cluster to restart
Whether to ignore the soft shutdown function
Restarts a specific service
Name of the service
Whether to ignore the soft shutdown function
Shuts down a cluster
The ID of the cluster to shutdown
Whether to ignore the soft shutdown function
Shuts down a service
The name of the service
Whether to ignore the soft shutdown function
Shuts down everything and exits the master process
Whether to ignore the soft shutdown function
Updates the BotWorker used by eris-fleet. The new class will be used the next time clusters are restarted.
BotWorker class to update with
Generated using TypeDoc
The sharding manager.
Admiral#log Message to log. Supplies either a message or an ObjectLog.
Admiral#debug Debug message to log. Supplies either a message or an ObjectLog.
Admiral#warn Warning message to log. Supplies either a message or an ObjectLog.
Admiral#error Error to log. Supplies either a message or an ObjectLog.
Admiral#clusterReady Fires when a cluster is ready. Supplies Cluster Object.
Admiral#serviceReady Fires when a service is ready. Supplies Service Object.
Admiral#clusterShutdown Fires when a cluster is shutdown. Supplies Cluster Object.
Admiral#serviceShutdown Fires when a service is shutdown. Supplies Service Object.
Admiral#ready Fires when the queue is empty.
Admiral#stats Fires when stats are ready. Supplies Stats
Admiral#reshardingComplete Fires when resharding completes.
Admiral#shardReady Fires when a shard is ready. Supplies ShardUpdate.
Admiral#shardConnect Fires when a shard connects. Supplies ShardUpdate.
Admiral#shardDisconnect Fires when a shard disconnects. Supplies ShardUpdate.
Admiral#shardResume Fires when a shard resumes. Supplies ShardUpdate.