All Classes and Interfaces
Class
Description
Abstract base class for commands.
A ArrayCommand is responsible for handling operations on arrays.
The auth command is responsible for checking that the client knows the server's auth
secret.
A CallbackClient is responsible for managing communication channels: channels
are created as needed (e.g., one per concurrent thread) and are closed after
a certain time.
Default implementation of the CommunicationChannel interface using TCP
sockets.
A CallCommand is responsible for parsing a call command and calling the
method on the target object.
Strategy interface to load a class from a fully qualified name.
This class creates the JavaServer and the PythonClient necessary to
communicate with a Python virtual machine with the new threading model.
Helper class to make it easier and self-documenting how a
ClientServer
is constructed.
This interface must be implemented by all commands.
A ConstructorCommand is responsible for calling the constructors of a Java
class.
This class loading strategy uses the current thread's ClassLoader to
load a class from a fully qualified name.
Default application that can be used to quickly test Py4J.
This class implements a default
GatewayServerListener
.
A FieldCommand is responsible for accessing and setting fields of objects.
A Gateway manages various states: entryPoint, references to objects returned
to a Python program, etc.
Manage the connection between a Python program and a Gateway.
This class enables Python programs to access a Java program.
Helper class to make it easier and self-documenting how a
GatewayServer
is constructed.
A client can implement this listener to be notified of Gateway events.
A HelpPageCommand is responsible for generating a help page for a Java object
or Java class.
The HelpPageGenerator generates a help page (a String) for a class or a
method.
Created by barthelemy on 2017-06-26.
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.
A JVM view keeps track of imports and import searches.
A JVMViewCommand is responsible for managing JVM views: creating views,
adding imports, searching for fully qualified names.
A ListCommand is responsible for handling operations on lists (e.g.,
slicing).
Implementation of a Least Recently Used cache.
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.
A MethodDescriptor wraps the signature of a method (name, container,
parameters).
A MethodInvoker translates a call made in a Python Program into a call to a
Java method.
This Runnable for a Thread is designed to simulate the shared nature of a
thread like the UI thread in an SWT application.
Utility class used to perform network operations.
This class defines the protocol used to communicate between two virtual
machines (e.g., Python and Java).
Model of a Java class used to create a help page.
Exception raised when an error is encountered while using Py4J.
Model of a Java field used to create a help page.
Exception raised when an exception is thrown in the client code.
Interface that describes the operations a server must support to receive
requests from the Python side.
Model of a Java member (class, method, or field) used to create a help page.
Model of a Java method used to create a help page.
Exception raised when a network error is encountered while using Py4J.
Interface that describes the operations a client must support to make
requests to the Python side.
Subclass of CallbackClient that implements the new threading model,
ensuring that each thread uses its own connection.
A PythonProxyHandler is used in place of a Python object.
The ReflectionCommand is responsible for accessing packages, classes, and
static members.
The reflection engine is responsible for accessing the classes, the instances
and members in a JVM.
Global utility to load classes and perform general reflection operations
that can be customized by Strategy classes.
A ReturnObject wraps a value returned by a method.
This class loading strategy just uses the class current class loader
to load a class from a fully qualified name.
The ShutdownGatewayServerCommand is responsible for shutting down the
GatewayServer.
Created by barthelemy on 2017-06-26.
A
StreamCommand
is like a CallCommand
, but returns
the value directly.
String utility class providing operations to escape and unescape new lines.
A TypeConverter converts a Python type into a Java Type.
This class is responsible for the type conversion between Python types and
Java types.