ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vladimir Ozerov <voze...@gridgain.com>
Subject Introduce generic server configuration.
Date Mon, 11 Apr 2016 14:48:34 GMT

We have several public components which use *GridNioServer* internally. NIO
server has several properties for fine tuning. Selector count, direct
buffer flag, max queue size, send/receive buffer sizes, etc..

And in every public component we have separate getters/setters to pass
values to NIO server. E.g. look at *TcpCommunicatinoSpi*,
*and *SocketStreamer*. They all have similar properties.

Now we have ODBC component which also use *GridNioServer*. I do not want to
expose these properties through getters/setters because it will make
*OdbConfiguration* very complex. Instead, I have an idea to introduce new
bean *ServerConfiguration *which will have all these fine-grained
properties. Later this bean could be re-used in other components which work
with NIO server.

This way component configuration will be very simple and straightforward
when user do not want to tune NIO server. And I think this is the most
common use case. Simple config fox common case, complex config for complex



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message