Class RpcUtils

Object
org.apache.spark.util.RpcUtils

public class RpcUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.spark.rpc.RpcTimeout
    Returns the default Spark timeout to use for RPC ask operations.
    static org.apache.spark.rpc.RpcTimeout
    Returns the default Spark timeout to use for RPC remote endpoint lookup.
    static org.apache.spark.rpc.RpcEndpointRef
    makeDriverRef(String name, String driverHost, int driverPort, org.apache.spark.rpc.RpcEnv rpcEnv)
     
    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
    Returns the configured max message size for messages in bytes.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 a RpcEndpointRef which is located in the driver via its name.
      Parameters:
      name - (undocumented)
      conf - (undocumented)
      rpcEnv - (undocumented)
      Returns:
      (undocumented)
    • makeDriverRef

      public static org.apache.spark.rpc.RpcEndpointRef makeDriverRef(String name, String driverHost, int driverPort, org.apache.spark.rpc.RpcEnv rpcEnv)
    • askRpcTimeout

      public static org.apache.spark.rpc.RpcTimeout askRpcTimeout(SparkConf conf)
      Returns the default Spark timeout to use for RPC ask operations.
    • lookupRpcTimeout

      public static org.apache.spark.rpc.RpcTimeout lookupRpcTimeout(SparkConf conf)
      Returns the default Spark timeout to use for RPC remote endpoint lookup.
    • maxMessageSizeBytes

      public static int maxMessageSizeBytes(SparkConf conf)
      Returns the configured max message size for messages in bytes.