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