关注 spark技术分享,
撸spark源码 玩spark最佳实践

TransportContext

TransportContext

TransportContext is…​FIXME

createChannelHandler Internal Method

createChannelHandler…​FIXME

Note
createChannelHandler is used exclusively when TransportContext is requested to initializePipeline.

initializePipeline Method

  1. Simply calls the other initializePipeline with the RpcHandler

initializePipeline…​FIXME

Note

initializePipeline is used when:

  • TransportServer is requested to init

  • TransportClientFactory is requested to createClient

Creating TransportServer on Host and Port — createServer Method

  1. Uses 0 for the port and no bootstraps. Used exclusively for testing

  2. Uses null for the host

  3. Used exclusively for testing

createServer simply creates a TransportServer (with the current TransportContext, the host, the port, the RpcHandler and the bootstraps).

Note

createServer is used when:

  • NettyBlockTransferService is requested to createServer

  • NettyRpcEnv is requested to startServer

  • ExternalShuffleService is requested to start

  • Spark on YARN’s YarnShuffleService is requested to serviceInit

赞(0) 打赏
未经允许不得转载:spark技术分享 » TransportContext
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏