Package py4j

Interface Summary
Command This interface must be implemented by all commands.
 

Class Summary
AbstractCommand Abstract base class for commands.
ArrayCommand A ArrayCommand is responsible for handling operations on arrays.
CallbackClient 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.
CallbackConnection Default implementation of the CommunicationChannel interface using TCP sockets.
CallCommand A CallCommand is responsible for parsing a call command and calling the method on the target object.
ConstructorCommand A ConstructorCommand is responsible for calling the constructors of a Java class.
FieldCommand A FieldCommand is responsible for accessing and setting fields of objects.
Gateway A Gateway manages various states: entryPoint, references to objects returned to a Python program, etc.
GatewayConnection Manage the connection between a Python program and a Gateway.
GatewayServer This class enables Python programs to access a Java program.
HelpPageCommand A HelpPageCommand is responsible for generating a help page for a Java object or Java class.
ListCommand A ListCommand is responsible for handling operations on lists (e.g., slicing).
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.
NetworkUtil Utility class used to perform network operations.
Protocol This class defines the protocol used to communicate between two virtual machines (e.g., Python and Java).
ReflectionCommand The ReflectionCommand is responsible for accessing packages, classes, and static members.
ReturnObject A ReturnObject wraps a value returned by a method.
ShutdownGatewayServerCommand The ShutdownGatewayServerCommand is responsible for shutting down the GatewayServer.
StringUtil String utility class providing operations to escape and unescape new lines.
 

Exception Summary
Py4JException Exception raised when an error is encountered while using Py4J.
Py4JNetworkException Exception raised when a network error is encountered while using Py4J.