py4j
Class GatewayServer

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

public class GatewayServer
extends Object
implements Runnable


Field Summary
static int DEFAULT_CONNECT_TIMEOUT
           
static int DEFAULT_PORT
           
static int DEFAULT_READ_TIMEOUT
           
 
Constructor Summary
GatewayServer(Object entryPoint)
           
GatewayServer(Object entryPoint, int port)
           
GatewayServer(Object entryPoint, int port, int connectTimeout, int readTimeout, boolean acceptOnlyOne)
           
 
Method Summary
protected  Object createConnection(GatewayServer server, Gateway gateway, Socket socket)
           
 int getConnect_timeout()
           
 int getRead_timeout()
           
 boolean isAcceptOnlyOne()
           
 void run()
           
 void shutdown()
           
 void start()
           
 void start(boolean fork)
           
static void turnLoggingOff()
           
static void turnLoggingOn()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PORT

public static final int DEFAULT_PORT
See Also:
Constant Field Values

DEFAULT_CONNECT_TIMEOUT

public static final int DEFAULT_CONNECT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_READ_TIMEOUT

public static final int DEFAULT_READ_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

GatewayServer

public GatewayServer(Object entryPoint,
                     int port,
                     int connectTimeout,
                     int readTimeout,
                     boolean acceptOnlyOne)

GatewayServer

public GatewayServer(Object entryPoint)

GatewayServer

public GatewayServer(Object entryPoint,
                     int port)
Method Detail

run

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

createConnection

protected Object createConnection(GatewayServer server,
                                  Gateway gateway,
                                  Socket socket)
                           throws IOException
Throws:
IOException

start

public void start(boolean fork)

start

public void start()

shutdown

public void shutdown()

isAcceptOnlyOne

public boolean isAcceptOnlyOne()

getConnect_timeout

public int getConnect_timeout()

getRead_timeout

public int getRead_timeout()

turnLoggingOff

public static void turnLoggingOff()

turnLoggingOn

public static void turnLoggingOn()