| Package | Description |
|---|---|
| py4j | |
| py4j.commands |
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Command> |
ClientServerConnection.commands |
protected Map<String,Command> |
GatewayConnection.commands |
protected List<Class<? extends Command>> |
PythonClient.customCommands |
| Modifier and Type | Method and Description |
|---|---|
static List<Class<? extends Command>> |
GatewayConnection.getBaseCommands() |
List<Class<? extends Command>> |
GatewayServer.getCustomCommands() |
| Modifier and Type | Method and Description |
|---|---|
GatewayServer.GatewayServerBuilder |
GatewayServer.GatewayServerBuilder.customCommands(List<Class<? extends Command>> customCommands) |
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.
|
| 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,
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) |
GatewayServer(Object entryPoint,
int port,
InetAddress address,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
Py4JPythonClient cbClient) |
GatewayServer(Object entryPoint,
int port,
InetAddress address,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
Py4JPythonClient cbClient,
ServerSocketFactory sSocketFactory) |
GatewayServer(Object entryPoint,
int port,
int pythonPort,
InetAddress address,
InetAddress pythonAddress,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands) |
GatewayServer(Object entryPoint,
int port,
int pythonPort,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands) |
GatewayServer(Object entryPoint,
int port,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
Py4JPythonClient cbClient) |
JavaServer(Object entryPoint,
int port,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
Py4JPythonClientPerThread pythonClient) |
JavaServer(Object entryPoint,
int port,
int connectTimeout,
int readTimeout,
List<Class<? extends Command>> customCommands,
Py4JPythonClientPerThread pythonClient,
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) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractCommand
Abstract base class for commands.
|
class |
ArrayCommand
A ArrayCommand is responsible for handling operations on arrays.
|
class |
AuthCommand
The auth command is responsible for checking that the client knows the server's auth
secret.
|
class |
CallCommand
A CallCommand is responsible for parsing a call command and calling the
method on the target object.
|
class |
ConstructorCommand
A ConstructorCommand is responsible for calling the constructors of a Java
class.
|
class |
DirCommand |
class |
ExceptionCommand |
class |
FieldCommand
A FieldCommand is responsible for accessing and setting fields of objects.
|
class |
HelpPageCommand
A HelpPageCommand is responsible for generating a help page for a Java object
or Java class.
|
class |
JVMViewCommand
A JVMViewCommand is responsible for managing JVM views: creating views,
adding imports, searching for fully qualified names.
|
class |
ListCommand
A ListCommand is responsible for handling operations on lists (e.g.,
slicing).
|
class |
MemoryCommand
The MemoryCommand is responsible for handling garbage collection requests
from the Python side, i.e., when a java object is no longer used by the
Python program.
|
class |
ReflectionCommand
The ReflectionCommand is responsible for accessing packages, classes, and
static members.
|
class |
ShutdownGatewayServerCommand
The ShutdownGatewayServerCommand is responsible for shutting down the
GatewayServer.
|
class |
StreamCommand
A
StreamCommand is like a CallCommand, but returns
the value directly. |
Copyright © 2018. All rights reserved.