public class RpcUtils
extends Object
Constructor and Description |
---|
RpcUtils() |
Modifier and Type | Method and Description |
---|---|
static org.apache.spark.rpc.RpcTimeout |
askRpcTimeout(SparkConf conf)
Returns the default Spark timeout to use for RPC ask operations.
|
static org.apache.spark.rpc.RpcTimeout |
INFINITE_TIMEOUT()
Infinite timeout is used internally, so there's no timeout configuration property that
controls it.
|
static org.apache.spark.rpc.RpcTimeout |
lookupRpcTimeout(SparkConf conf)
Returns the default Spark timeout to use for RPC remote endpoint lookup.
|
static org.apache.spark.rpc.RpcEndpointRef |
makeDriverRef(String name,
SparkConf conf,
org.apache.spark.rpc.RpcEnv rpcEnv)
Retrieve a
RpcEndpointRef which is located in the driver via its name. |
static int |
maxMessageSizeBytes(SparkConf conf)
Returns the configured max message size for messages in bytes.
|
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(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 org.apache.spark.rpc.RpcTimeout askRpcTimeout(SparkConf conf)
public static org.apache.spark.rpc.RpcTimeout lookupRpcTimeout(SparkConf conf)
public static org.apache.spark.rpc.RpcTimeout INFINITE_TIMEOUT()
public static int maxMessageSizeBytes(SparkConf conf)