Package | Description |
---|---|
py4j |
Modifier and Type | Class and Description |
---|---|
class |
GatewayServer
This class enables Python programs to access a Java program.
|
class |
JavaServer
This class extends GatewayServer by implementing a new threading model:
a thread always use the same connection to the other side so callbacks are
executed in the calling thread.
|
Modifier and Type | Field and Description |
---|---|
protected Py4JJavaServer |
ClientServer.javaServer |
protected Py4JJavaServer |
ClientServerConnection.javaServer |
protected Py4JJavaServer |
PythonClient.javaServer |
Modifier and Type | Method and Description |
---|---|
protected Py4JJavaServer |
ClientServer.createJavaServer(java.lang.Object entryPoint,
Py4JPythonClientPerThread pythonClient) |
Py4JJavaServer |
ClientServer.getJavaServer() |
Py4JJavaServer |
Py4JPythonClientPerThread.getJavaServer() |
Py4JJavaServer |
PythonClient.getJavaServer() |
Modifier and Type | Method and Description |
---|---|
void |
Py4JPythonClientPerThread.setJavaServer(Py4JJavaServer javaServer) |
void |
PythonClient.setJavaServer(Py4JJavaServer javaServer) |
Constructor and Description |
---|
ClientServerConnection(Gateway gateway,
java.net.Socket socket,
java.util.List<java.lang.Class<? extends Command>> customCommands,
Py4JPythonClientPerThread pythonClient,
Py4JJavaServer javaServer,
int readTimeout) |
PythonClient(Gateway gateway,
java.util.List<java.lang.Class<? extends Command>> customCommands,
int pythonPort,
java.net.InetAddress pythonAddress,
long minConnectionTime,
java.util.concurrent.TimeUnit minConnectionTimeUnit,
javax.net.SocketFactory socketFactory,
Py4JJavaServer javaServer) |
PythonClient(Gateway gateway,
java.util.List<java.lang.Class<? extends Command>> customCommands,
int pythonPort,
java.net.InetAddress pythonAddress,
long minConnectionTime,
java.util.concurrent.TimeUnit minConnectionTimeUnit,
javax.net.SocketFactory socketFactory,
Py4JJavaServer javaServer,
boolean enableMemoryManagement,
int readTimeout) |