TransportContext¶
Creating Instance¶
TransportContext takes the following to be created:
- TransportConf
- RpcHandler
-  closeIdleConnectionsflag
-  isClientOnlyflag
TransportContext is created when:
- ExternalBlockStoreClientis requested to init
- ExternalShuffleServiceis requested to start
- NettyBlockTransferServiceis requested to init
- NettyRpcEnvis created and requested to downloadClient
- YarnShuffleService(Spark on YARN) is requested to- serviceInit
Creating Server¶
TransportServer createServer(
  int port,
  List<TransportServerBootstrap> bootstraps)
TransportServer createServer(
  String host,
  int port,
  List<TransportServerBootstrap> bootstraps)
createServer creates a TransportServer (with the RpcHandler and the input arguments).
createServer is used when:
- YarnShuffleService(Spark on YARN) is requested to- serviceInit
- ExternalShuffleServiceis requested to start
- NettyBlockTransferServiceis requested to createServer
- NettyRpcEnvis requested to startServer
Creating TransportClientFactory¶
TransportClientFactory createClientFactory(
  List<TransportClientBootstrap> bootstraps)
createClientFactory...FIXME
createClientFactory is used when:
- ExternalBlockStoreClientis requested to init
- NettyBlockTransferServiceis requested to init
- NettyRpcEnvis created and requested to downloadClient