public virtual void TestConfRpc() { Server server = new RPC.Builder(conf).SetProtocol(typeof(TestRPC.TestProtocol)).SetInstance (new TestRPC.TestImpl()).SetBindAddress(Address).SetPort(0).SetNumHandlers(1).SetVerbose (false).Build(); // Just one handler int confQ = conf.GetInt(CommonConfigurationKeys.IpcServerHandlerQueueSizeKey, CommonConfigurationKeys .IpcServerHandlerQueueSizeDefault); Assert.Equal(confQ, server.GetMaxQueueSize()); int confReaders = conf.GetInt(CommonConfigurationKeys.IpcServerRpcReadThreadsKey, CommonConfigurationKeys.IpcServerRpcReadThreadsDefault); Assert.Equal(confReaders, server.GetNumReaders()); server.Stop(); server = new RPC.Builder(conf).SetProtocol(typeof(TestRPC.TestProtocol)).SetInstance (new TestRPC.TestImpl()).SetBindAddress(Address).SetPort(0).SetNumHandlers(1).SetnumReaders (3).SetQueueSizePerHandler(200).SetVerbose(false).Build(); Assert.Equal(3, server.GetNumReaders()); Assert.Equal(200, server.GetMaxQueueSize()); server.Stop(); }