Package py4j
package py4j
-
ClassDescriptionA 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.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.Default application that can be used to quickly test Py4J.This class implements a defaultGatewayServerListener
.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 aGatewayServer
is constructed.A client can implement this listener to be notified of Gateway events.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.Utility class used to perform network operations.This class defines the protocol used to communicate between two virtual machines (e.g., Python and Java).Exception raised when an error is encountered while using Py4J.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.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 ReturnObject wraps a value returned by a method.String utility class providing operations to escape and unescape new lines.