Package | Description |
---|---|
py4j | |
py4j.commands |
Modifier and Type | Field and Description |
---|---|
protected static java.util.List<java.lang.Class<? extends Command>> |
GatewayConnection.baseCommands |
protected java.util.Map<java.lang.String,Command> |
GatewayConnection.commands |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.lang.Class<? extends Command>> |
GatewayConnection.getBaseCommands() |
java.util.List<java.lang.Class<? extends Command>> |
GatewayServer.getCustomCommands() |
Modifier and Type | Method and Description |
---|---|
protected void |
GatewayConnection.initCommands(Gateway gateway,
java.util.List<java.lang.Class<? extends Command>> commandsClazz)
Override this method to initialize custom commands.
|
Constructor and Description |
---|
GatewayConnection(Gateway gateway,
java.net.Socket socket,
java.util.List<java.lang.Class<? extends Command>> customCommands,
java.util.List<GatewayServerListener> listeners) |
GatewayServer(java.lang.Object entryPoint,
int port,
int pythonPort,
java.net.InetAddress address,
java.net.InetAddress pythonAddress,
int connectTimeout,
int readTimeout,
java.util.List<java.lang.Class<? extends Command>> customCommands) |
GatewayServer(java.lang.Object entryPoint,
int port,
int pythonPort,
int connectTimeout,
int readTimeout,
java.util.List<java.lang.Class<? extends Command>> customCommands) |
GatewayServer(java.lang.Object entryPoint,
int port,
int connectTimeout,
int readTimeout,
java.util.List<java.lang.Class<? extends Command>> customCommands,
CallbackClient cbClient) |
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 |
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.
|