TransportContext¶
Creating Instance¶
TransportContext
takes the following to be created:
- TransportConf
-
RpcHandler
-
closeIdleConnections
flag -
isClientOnly
flag
TransportContext
is created when:
ExternalBlockStoreClient
is requested to initExternalShuffleService
is requested to startNettyBlockTransferService
is requested to initNettyRpcEnv
is 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 toserviceInit
ExternalShuffleService
is requested to startNettyBlockTransferService
is requested to createServerNettyRpcEnv
is 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 TransportClientBootstrap
s).
createClientFactory
is used when:
ExternalBlockStoreClient
is requested to initNettyBlockTransferService
is requested to initNettyRpcEnv
is created and requested to downloadClient