Class MasterWatcherModule
Constructors
constructor
-
Parameters
-
opts: object
-
consoleService: ConsoleService
Properties
service
service: ConsoleService
Static moduleId
module
Id: KEYWORDS = Constants.KEYWORDS.MASTER_WATCHER
Methods
masterHandler
- masterHandler(agent: MasterAgent, msg: any, cb: MasterCallback): void
-
Parameters
-
agent: MasterAgent
-
msg: any
-
cb: MasterCallback
Returns void
onServerAdd
- onServerAdd(record: any): void
onServerLeave
- onServerLeave(id: string, type: string): void
onServerReconnect
- onServerReconnect(record: any): void
start
- start(cb: function): void