TransportClientFactory¶
Creating Instance¶
TransportClientFactory takes the following to be created:
- TransportContext
-
TransportClientBootstraps
TransportClientFactory is created when:
TransportContextis requested for a TransportClientFactory
Configuration Properties¶
While being created, TransportClientFactory requests the given TransportContext for the TransportConf that is used to access the values of the following (configuration) properties:
- io.numConnectionsPerPeer
- io.mode
- io.mode
- io.preferDirectBufs
- io.retryWait
- spark.network.sharedByteBufAllocators.enabled
- spark.network.io.preferDirectBufs
- Module Name
Creating TransportClient¶
TransportClient createClient(
String remoteHost,
int remotePort) // (1)
TransportClient createClient(
String remoteHost,
int remotePort,
boolean fastFail)
TransportClient createClient(
InetSocketAddress address)
- Turns
fastFailoff
createClient prints out the following DEBUG message to the logs:
createClient creates a Netty Bootstrap and initializes it.
createClient requests the Netty Bootstrap to connect.
If successful, createClient prints out the following DEBUG message and requests the TransportClientBootstraps to doBootstrap.
In the end, createClient prints out the following INFO message: