You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2026/10/05 20:01:34 UTC
[PR] Discover RPC clients through a `RpcClientProvider` SPI [logging-flume]
ppkarwasz opened a new pull request, #513:
URL: https://github.com/apache/logging-flume/pull/513
`RpcClientFactory` referred to the Avro and Thrift clients by class name, although they now live in `logging-flume-rpc`, and created them reflectively before configuring them. Clients are now created by `RpcClientProvider`s discovered with `ServiceLoader` and selected by `client.type`; an unregistered provider can still be named by its class.
Providers are registered with BND's `@ServiceProvider`, as in Log4j, which also generates the JPMS `provides`/`uses` clauses and the OSGi capabilities. The `ServiceLoader` is queried on each call, so providers can come and go.
The types only needed by client implementations (`AbstractRpcClient`, `SSLContextAwareAbstractRpcClient`, `HostInfo` and the new `RpcClientProvider`) move to `org.apache.flume.client.spi`.
Stacked on #511. The transports register their providers in apache/logging-flume-rpc.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] Discover RPC clients through a `RpcClientProvider` SPI [logging-flume]
Posted by "ppkarwasz (via GitHub) via notifications" <no...@logging.apache.org>.
ppkarwasz merged PR #513:
URL: https://github.com/apache/logging-flume/pull/513
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org