TransportContext¶
Creating Instance¶
TransportContext takes the following to be created:
- TransportConf
-
RpcHandler -
closeIdleConnectionsflag -
isClientOnlyflag
TransportContext is created when:
ExternalBlockStoreClientis requested to initExternalShuffleServiceis requested to startNettyBlockTransferServiceis requested to initNettyRpcEnvis created and requested to downloadClientYarnShuffleService(Spark on YARN) is requested toserviceInit
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 toserviceInitExternalShuffleServiceis requested to startNettyBlockTransferServiceis requested to createServerNettyRpcEnvis requested to startServer
Creating TransportClientFactory¶
TransportClientFactory createClientFactory() // (1)
TransportClientFactory createClientFactory(
List<TransportClientBootstrap> bootstraps)
- Uses empty
bootstraps
createClientFactory creates a TransportClientFactory (with itself and the given TransportClientBootstraps).
createClientFactory is used when:
ExternalBlockStoreClientis requested to initNettyBlockTransferServiceis requested to initNettyRpcEnvis created and requested to downloadClient