Class PSRpcFactory
java.lang.Object
org.apache.sysds.runtime.controlprogram.paramserv.rpc.PSRpcFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.spark.network.server.TransportServercreateServer(org.apache.spark.SparkConf conf, LocalParamServer ps, String host) Create and start the serverstatic SparkPSProxycreateSparkPSProxy(org.apache.spark.SparkConf conf, int port, org.apache.spark.util.LongAccumulator aRPC)
-
Constructor Details
-
PSRpcFactory
public PSRpcFactory()
-
-
Method Details
-
createServer
public static org.apache.spark.network.server.TransportServer createServer(org.apache.spark.SparkConf conf, LocalParamServer ps, String host) Create and start the server- Parameters:
conf- spark configps- LocalParamServer objecthost- hostname- Returns:
- server
-
createSparkPSProxy
public static SparkPSProxy createSparkPSProxy(org.apache.spark.SparkConf conf, int port, org.apache.spark.util.LongAccumulator aRPC) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-