public class RpcUtils
extends java.lang.Object
Constructor and Description |
---|
RpcUtils() |
Modifier and Type | Method and Description |
---|---|
static scala.concurrent.duration.FiniteDuration |
askTimeout(SparkConf conf) |
static scala.concurrent.duration.FiniteDuration |
lookupTimeout(SparkConf conf) |
static org.apache.spark.rpc.RpcEndpointRef |
makeDriverRef(java.lang.String name,
SparkConf conf,
org.apache.spark.rpc.RpcEnv rpcEnv)
Retrieve a
RpcEndpointRef which is located in the driver via its name. |
static int |
numRetries(SparkConf conf)
Returns the configured number of times to retry connecting
|
static long |
retryWaitMs(SparkConf conf)
Returns the configured number of milliseconds to wait on each retry
|
public static org.apache.spark.rpc.RpcEndpointRef makeDriverRef(java.lang.String name, SparkConf conf, org.apache.spark.rpc.RpcEnv rpcEnv)
RpcEndpointRef
which is located in the driver via its name.name
- (undocumented)conf
- (undocumented)rpcEnv
- (undocumented)public static int numRetries(SparkConf conf)
public static long retryWaitMs(SparkConf conf)
public static scala.concurrent.duration.FiniteDuration askTimeout(SparkConf conf)
public static scala.concurrent.duration.FiniteDuration lookupTimeout(SparkConf conf)