public class DefaultGatewayServerListener extends java.lang.Object implements GatewayServerListener
This class implements a default GatewayServerListener. All operations do nothing by default. Clients can
extend this class to only override the methods they need.
| Constructor and Description |
|---|
DefaultGatewayServerListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
connectionError(java.lang.Exception e) |
void |
connectionStarted(Py4JServerConnection gatewayConnection) |
void |
connectionStopped(Py4JServerConnection gatewayConnection) |
void |
serverError(java.lang.Exception e)
This method may be called concurrently with serverPostShutdown().
|
void |
serverPostShutdown()
This method may be called concurrently with serverStopped() and
serverError().
|
void |
serverPreShutdown() |
void |
serverStarted() |
void |
serverStopped()
This method may be called concurrently with serverPostShutdown().
|
public void connectionError(java.lang.Exception e)
connectionError in interface GatewayServerListenerpublic void connectionStarted(Py4JServerConnection gatewayConnection)
connectionStarted in interface GatewayServerListenerpublic void connectionStopped(Py4JServerConnection gatewayConnection)
connectionStopped in interface GatewayServerListenerpublic void serverError(java.lang.Exception e)
GatewayServerListenerThis method may be called concurrently with serverPostShutdown().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverError in interface GatewayServerListenerpublic void serverPostShutdown()
GatewayServerListenerThis method may be called concurrently with serverStopped() and serverError().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverPostShutdown in interface GatewayServerListenerpublic void serverPreShutdown()
serverPreShutdown in interface GatewayServerListenerpublic void serverStarted()
serverStarted in interface GatewayServerListenerpublic void serverStopped()
GatewayServerListenerThis method may be called concurrently with serverPostShutdown().
Typically a one thread calls shutdown() and then, the thread running the GatewayServer breaks from the connection accept loop.
serverStopped in interface GatewayServerListener