Package org.apache.flink.client.python
Class PythonGatewayServer
- java.lang.Object
-
- org.apache.flink.client.python.PythonGatewayServer
-
public class PythonGatewayServer extends Object
The Py4j Gateway Server provides RPC service for user's python process.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
PythonGatewayServer.Watchdog
A simple watch dog interface.
-
Field Summary
Fields Modifier and Type Field Description static PythonGatewayServer.Watchdog
watchdog
This watchdog object is provided to Python side to check whether its parent process is alive.
-
Constructor Summary
Constructors Constructor Description PythonGatewayServer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
main(String[] args)
Main method to start a local GatewayServer on a ephemeral port.
-
-
-
Field Detail
-
watchdog
public static PythonGatewayServer.Watchdog watchdog
This watchdog object is provided to Python side to check whether its parent process is alive.
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException, ExecutionException, InterruptedException
Main method to start a local GatewayServer on a ephemeral port. It tells python side via a file.See: py4j.GatewayServer.main()
-
-