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 GatewayServerListener
public void connectionStarted(Py4JServerConnection gatewayConnection)
connectionStarted
in interface GatewayServerListener
public void connectionStopped(Py4JServerConnection gatewayConnection)
connectionStopped
in interface GatewayServerListener
public void serverError(java.lang.Exception e)
GatewayServerListener
This 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 GatewayServerListener
public void serverPostShutdown()
GatewayServerListener
This 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 GatewayServerListener
public void serverPreShutdown()
serverPreShutdown
in interface GatewayServerListener
public void serverStarted()
serverStarted
in interface GatewayServerListener
public void serverStopped()
GatewayServerListener
This 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