|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpy4j.GatewayConnection
public class GatewayConnection
Manage the connection between a Python program and a Gateway. A GatewayConnection lives in its own thread and is created on demand (e.g., one per concurrent thread).
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.
Constructor Summary | |
---|---|
GatewayConnection(Gateway gateway,
Socket socket)
|
|
GatewayConnection(Gateway gateway,
Socket socket,
List<Class<? extends Command>> customCommands)
|
Method Summary | |
---|---|
static List<Class<? extends Command>> |
getBaseCommands()
|
protected void |
initCommands(Gateway gateway,
List<Class<? extends Command>> commandsClazz)
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 |
---|
public GatewayConnection(Gateway gateway, Socket socket, List<Class<? extends Command>> customCommands) throws IOException
IOException
public GatewayConnection(Gateway gateway, Socket socket) throws IOException
IOException
Method Detail |
---|
public static List<Class<? extends Command>> getBaseCommands()
GatewayServer
.protected void initCommands(Gateway gateway, List<Class<? extends Command>> commandsClazz)
Override this method to initialize custom commands.
gateway
- public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |