- return Props.create(RpcManager.class, schemaContext, rpcProvisionRegistry, rpcServices, config);
- }
-
- private void createRpcActors() {
- LOG.debug("Create rpc registry and broker actors");
-
- rpcRegistry = getContext().actorOf(RpcRegistry.props(config)
- .withMailbox(config.getMailBoxName()), config.getRpcRegistryName());
-
- rpcBroker = getContext().actorOf(RpcBroker.props(rpcServices)
- .withMailbox(config.getMailBoxName()), config.getRpcBrokerName());
-
- final RpcRegistry.Messages.SetLocalRouter localRouter = new RpcRegistry.Messages.SetLocalRouter(rpcBroker);
- rpcRegistry.tell(localRouter, self());
+ Preconditions.checkNotNull(config, "RemoteRpcProviderConfig can not be null!");
+ return Props.create(RpcManager.class, rpcProvisionRegistry, rpcServices, config);