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.
|
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 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)