Utils check array
Utils check boolean
Utils check function
Utils check number
Utils check object
Utils check string
Utils check bean
object
true|false
Utils check float
true|false
Factory method to create mailbox
remote server info {id:"", host:"", port:""}
construct parameters opts.origin {Object} delegated object opts.proxyCB {Function} proxy invoke callback opts.service {String} deletgated service name opts.attach {Object} attach parameter pass to proxyCB
proxy instance
RPC client factory method.
client init parameter. opts.context: mail box init parameter, opts.router: (optional) rpc message route function, route(routeParam, msg, cb), opts.mailBoxFactory: (optional) mail box factory instance.
client instance.
create and init gateway
, connector:conFactory(optional), router:routeFunction(optional)}
default mailbox factory
single server instance info, {id, host, port, ...}
construct parameters
mailbox instancef
Mail station factory function.
construct paramters opts.servers {Object} global server info map. {serverType: [{id, host, port, ...}, ...]} opts.mailboxFactory {Function} mailbox factory function
mail station instance
Create rpc server.
construct parameters opts.port {Number|String} rpc server listen port opts.paths {Array} remote service code paths, [{namespace, path}, ...] opts.context {Object} context for remote service opts.acceptorFactory {Object} (optionals)acceptorFactory(opts, cb)
rpc server instance
Create mail station.
construct parameters.
Calculate route info and return an appropriate server id.
session object for current rpc request
rpc message. {serverType, service, method, args, opts}
context of client
Do before or after filter
Failback rpc failure process. This will try the same server with sendInterval option and retries option.
error code number.
current rpc tracer.
rpc remote target server id.
rpc message.
rpc client options.
user rpc callback.
Failfast rpc failure process. This will ignore error in rpc client.
error code number.
current rpc tracer.
rpc remote target server id.
rpc message.
rpc client options.
user rpc callback.
Failover rpc failure process. This will try other servers with option retries.
error code number.
current rpc tracer.
rpc remote target server id.
rpc message.
rpc client options.
user rpc callback.
Failsafe rpc failure process.
error code number.
current rpc tracer.
rpc remote target server id.
rpc message.
rpc client options.
user rpc callback.
Generate prxoy for function type field
delegated service name
delegated method name
origin object
proxy callback function
function proxy
Generate proxies for remote servers.
current client instance.
proxy reocrd info. {namespace, serverType, path}
mailbox init context parameter
Calculate remote target server id for rpc client.
current client instance.
remote server type.
mailbox init context parameter.
return rpc remote target server id.
Add proxy into array.
rpc proxies
rpc namespace sys/user
rpc remote server type
rpc proxy
Utils check is not null
true|false
Utils check type
high order function
列出ES6的一个Class实例上的所有方法,但不包括父类的
Generate prxoy for function type field
current client instance.
delegated service name.
delegated method name.
rpc invoke arguments.
attach parameter pass to proxyCB.
true means rpc route to specified remote server.
Utils args to array
arguments
array
Client states