Class PSRpcFactory
- java.lang.Object
-
- org.apache.sysds.runtime.controlprogram.paramserv.rpc.PSRpcFactory
-
public class PSRpcFactory extends Object
-
-
Constructor Summary
Constructors Constructor Description PSRpcFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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)
-
-
-
Method Detail
-
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
-
-