Class DefaultGatewayServerListener
- java.lang.Object
-
- py4j.DefaultGatewayServerListener
-
- All Implemented Interfaces:
GatewayServerListener
- Direct Known Subclasses:
GatewayServer
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.- Author:
- Barthelemy Dagenais
-
-
Constructor Summary
Constructors Constructor Description DefaultGatewayServerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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().
-
-
-
Method Detail
-
connectionError
public void connectionError(java.lang.Exception e)
- Specified by:
connectionError
in interfaceGatewayServerListener
-
connectionStarted
public void connectionStarted(Py4JServerConnection gatewayConnection)
- Specified by:
connectionStarted
in interfaceGatewayServerListener
-
connectionStopped
public void connectionStopped(Py4JServerConnection gatewayConnection)
- Specified by:
connectionStopped
in interfaceGatewayServerListener
-
serverError
public void serverError(java.lang.Exception e)
Description copied from interface: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.
- Specified by:
serverError
in interfaceGatewayServerListener
-
serverPostShutdown
public void serverPostShutdown()
Description copied from interface: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.
- Specified by:
serverPostShutdown
in interfaceGatewayServerListener
-
serverPreShutdown
public void serverPreShutdown()
- Specified by:
serverPreShutdown
in interfaceGatewayServerListener
-
serverStarted
public void serverStarted()
- Specified by:
serverStarted
in interfaceGatewayServerListener
-
serverStopped
public void serverStopped()
Description copied from interface: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.
- Specified by:
serverStopped
in interfaceGatewayServerListener
-
-