add monitor,client to connection -- idMap
serverType
socket-io object
broadcast msg to monitor
module id/name
message
close master agent
get module
module id/name
getClientById
master listen to a port and handle register and request
notify all the monitors without callback
module id/name
notify a monitor{master node} by id without callback
module id/name
notify a monitor by server{host:port} without callback
module id/name
notify monitors by type without callback
serverType
module id/name
notify a client by id without callback
module id/name
notify slaves by id without callback
module id/name
remove monitor,client connection -- idMap
serverType
request monitor{master node} data from monitor
module id/name
request server data from monitor by serverInfo{host:port}
module id/name
send msg to client
socket-io object
request id
module id/name
message
send msg to monitor
socket-io object
request id
module id/name
message
set module
module id/name
module object
MasterAgent Constructor
MasterAgent
construct parameter opts.consoleService {Object} consoleService opts.id {String} server id opts.type {String} server type, 'master', 'connector', etc. opts.socket {Object} socket-io object opts.reqId {Number} reqId add by 1 opts.callbacks {Object} callbacks opts.state {Number} MasterAgent state
public