| 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 |
ClientServerConnection.javaServer |
protected Py4JJavaServer |
ClientServer.javaServer |
protected Py4JJavaServer |
PythonClient.javaServer |
| Modifier and Type | Method and Description |
|---|---|
protected Py4JJavaServer |
ClientServer.createJavaServer(Object entryPoint,
Py4JPythonClientPerThread pythonClient) |
Py4JJavaServer |
Py4JPythonClientPerThread.getJavaServer() |
Py4JJavaServer |
ClientServer.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,
Socket socket,
List<Class<? extends Command>> customCommands,
Py4JPythonClientPerThread pythonClient,
Py4JJavaServer javaServer,
int readTimeout) |
ClientServerConnection(Gateway gateway,
Socket socket,
List<Class<? extends Command>> customCommands,
Py4JPythonClientPerThread pythonClient,
Py4JJavaServer javaServer,
int readTimeout,
String authToken) |
PythonClient(Gateway gateway,
List<Class<? extends Command>> customCommands,
int pythonPort,
InetAddress pythonAddress,
long minConnectionTime,
TimeUnit minConnectionTimeUnit,
SocketFactory socketFactory,
Py4JJavaServer javaServer) |
PythonClient(Gateway gateway,
List<Class<? extends Command>> customCommands,
int pythonPort,
InetAddress pythonAddress,
long minConnectionTime,
TimeUnit minConnectionTimeUnit,
SocketFactory socketFactory,
Py4JJavaServer javaServer,
boolean enableMemoryManagement,
int readTimeout) |
PythonClient(Gateway gateway,
List<Class<? extends Command>> customCommands,
int pythonPort,
InetAddress pythonAddress,
long minConnectionTime,
TimeUnit minConnectionTimeUnit,
SocketFactory socketFactory,
Py4JJavaServer javaServer,
boolean enableMemoryManagement,
int readTimeout,
String authToken) |
Copyright © 2018. All rights reserved.