| Package | Description |
|---|---|
| py4j | |
| py4j.commands | |
| py4j.reflection |
| Modifier and Type | Field and Description |
|---|---|
protected Gateway |
ClientServer.gateway |
protected Gateway |
PythonClient.gateway |
| Modifier and Type | Method and Description |
|---|---|
Gateway |
Py4JPythonClientPerThread.getGateway() |
Gateway |
Py4JJavaServer.getGateway() |
Gateway |
GatewayServer.getGateway() |
Gateway |
PythonClient.getGateway() |
| Modifier and Type | Method and Description |
|---|---|
protected Py4JServerConnection |
GatewayServer.createConnection(Gateway gateway,
Socket socket)
Creates a server connection from a Python call to the Java side.
|
protected Py4JServerConnection |
JavaServer.createConnection(Gateway gateway,
Socket socket) |
GatewayServer.GatewayServerBuilder |
GatewayServer.GatewayServerBuilder.gateway(Gateway gateway) |
static Object |
Protocol.getObject(String commandPart,
Gateway gateway) |
static Object |
Protocol.getPythonProxy(String commandPart,
Gateway gateway)
Assumes that commandPart is not empty.
|
static Object |
Protocol.getPythonProxyHandler(ClassLoader classLoader,
Class[] interfacesToImplement,
String objectId,
Gateway gateway)
Deprecated.
|
Object |
CallbackClient.getPythonServerEntryPoint(Gateway gateway,
Class[] interfacesToImplement) |
Object |
Py4JPythonClient.getPythonServerEntryPoint(Gateway gateway,
Class[] interfacesToImplement)
Gets a reference to the entry point on the Python side.
|
static Object |
Protocol.getReference(String commandPart,
Gateway gateway)
Assumes that commandPart is not empty.
|
static Object |
Protocol.getReturnValue(String returnMessage,
Gateway gateway) |
protected void |
ClientServerConnection.initCommands(Gateway gateway,
List<Class<? extends Command>> commandsClazz)
Override this method to initialize custom commands.
|
protected void |
GatewayConnection.initCommands(Gateway gateway,
List<Class<? extends Command>> commandsClazz)
Override this method to initialize custom commands.
|
void |
Py4JPythonClientPerThread.setGateway(Gateway gateway) |
void |
PythonClient.setGateway(Gateway gateway) |
| 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) |
GatewayConnection(Gateway gateway,
Socket socket) |
GatewayConnection(Gateway gateway,
Socket socket,
List<Class<? extends Command>> customCommands,
List<GatewayServerListener> listeners) |
GatewayConnection(Gateway gateway,
Socket socket,
String authToken,
List<Class<? extends Command>> customCommands,
List<GatewayServerListener> listeners) |
GatewayServer(Gateway gateway,
int port,
InetAddress address,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
ServerSocketFactory sSocketFactory) |
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) |
| Modifier and Type | Field and Description |
|---|---|
protected Gateway |
AbstractCommand.gateway |
| Modifier and Type | Method and Description |
|---|---|
void |
ReflectionCommand.init(Gateway gateway,
Py4JServerConnection connection) |
void |
JVMViewCommand.init(Gateway gateway,
Py4JServerConnection connection) |
void |
ShutdownGatewayServerCommand.init(Gateway gateway,
Py4JServerConnection connection) |
void |
Command.init(Gateway gateway,
Py4JServerConnection connection)
Called when a command instance is created and assigned to a connection.
|
void |
AbstractCommand.init(Gateway gateway,
Py4JServerConnection connection) |
void |
DirCommand.init(Gateway gateway,
Py4JServerConnection connection) |
void |
FieldCommand.init(Gateway gateway,
Py4JServerConnection connection) |
| Constructor and Description |
|---|
PythonProxyHandler(String id,
Gateway gateway) |
Copyright © 2018. All rights reserved.