protected RpcService createRpcService ( AkkaRpcServiceConfiguration akkaRpcServiceConfig , boolean remoteEnabled , String bindAddress ) { final Config akkaConfig ; if ( remoteEnabled ) { akkaConfig = AkkaUtils . getAkkaConfig ( akkaRpcServiceConfig . getConfiguration ( ) , bindAddress , 0 ) ; } else { akkaConfig = AkkaUtils . getAkkaConfig ( akkaRpcServiceConfig . getConfiguration ( ) ) ; } final Config effectiveAkkaConfig = AkkaUtils . testDispatcherConfig ( ) . withFallback ( akkaConfig ) ; final ActorSystem actorSystem = AkkaUtils . createActorSystem ( effectiveAkkaConfig ) ; return new AkkaRpcService ( actorSystem , akkaRpcServiceConfig ) ; }
Factory method to instantiate the RPC service .