py4j
Class GatewayConnection

java.lang.Object
  extended by py4j.GatewayConnection
All Implemented Interfaces:
Runnable

public class GatewayConnection
extends Object
implements Runnable

Manage the connection between a Python program and a Gateway. A GatewayConnection lives in its own thread and is created every time a Python program starts a JavaGateway

gateway = JavaGateway()

The request to connect to the JVM goes through the GatewayServer first and is then passed to a GatewayConnection.

This class is not intended to be directly accessed by users.

Author:
Barthelemy Dagenais

Constructor Summary
GatewayConnection(GatewayServer gatewayServer, Gateway gateway, Socket socket)
           
 
Method Summary
protected  void initCommands(Gateway gateway)
           Override this method to initialize custom commands.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GatewayConnection

public GatewayConnection(GatewayServer gatewayServer,
                         Gateway gateway,
                         Socket socket)
                  throws IOException
Throws:
IOException
Method Detail

initCommands

protected void initCommands(Gateway gateway)

Override this method to initialize custom commands.

Parameters:
gateway -

run

public void run()
Specified by:
run in interface Runnable