Package org.apache.spark.util
Class RpcUtils
Object
org.apache.spark.util.RpcUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.rpc.RpcTimeoutaskRpcTimeout(SparkConf conf) Returns the default Spark timeout to use for RPC ask operations.static org.apache.spark.rpc.RpcTimeoutlookupRpcTimeout(SparkConf conf) Returns the default Spark timeout to use for RPC remote endpoint lookup.static org.apache.spark.rpc.RpcEndpointRefmakeDriverRef(String name, String driverHost, int driverPort, org.apache.spark.rpc.RpcEnv rpcEnv) static org.apache.spark.rpc.RpcEndpointRefmakeDriverRef(String name, SparkConf conf, org.apache.spark.rpc.RpcEnv rpcEnv) Retrieve aRpcEndpointRefwhich is located in the driver via its name.static intmaxMessageSizeBytes(SparkConf conf) Returns the configured max message size for messages in bytes.
-
Constructor Details
-
RpcUtils
public RpcUtils()
-
-
Method Details
-
makeDriverRef
public static org.apache.spark.rpc.RpcEndpointRef makeDriverRef(String name, SparkConf conf, org.apache.spark.rpc.RpcEnv rpcEnv) Retrieve aRpcEndpointRefwhich is located in the driver via its name.- Parameters:
name- (undocumented)conf- (undocumented)rpcEnv- (undocumented)- Returns:
- (undocumented)
-
makeDriverRef
-
askRpcTimeout
Returns the default Spark timeout to use for RPC ask operations. -
lookupRpcTimeout
Returns the default Spark timeout to use for RPC remote endpoint lookup. -
maxMessageSizeBytes
Returns the configured max message size for messages in bytes.
-