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.
-
-
Constructor Summary
Constructors Constructor Description DefaultGatewayServerListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnectionError(java.lang.Exception e)voidconnectionStarted(Py4JServerConnection gatewayConnection)voidconnectionStopped(Py4JServerConnection gatewayConnection)voidserverError(java.lang.Exception e)This method may be called concurrently with serverPostShutdown().voidserverPostShutdown()This method may be called concurrently with serverStopped() and serverError().voidserverPreShutdown()voidserverStarted()voidserverStopped()This method may be called concurrently with serverPostShutdown().
-
-
-
Method Detail
-
connectionError
public void connectionError(java.lang.Exception e)
- Specified by:
connectionErrorin interfaceGatewayServerListener
-
connectionStarted
public void connectionStarted(Py4JServerConnection gatewayConnection)
- Specified by:
connectionStartedin interfaceGatewayServerListener
-
connectionStopped
public void connectionStopped(Py4JServerConnection gatewayConnection)
- Specified by:
connectionStoppedin interfaceGatewayServerListener
-
serverError
public void serverError(java.lang.Exception e)
Description copied from interface: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.
- Specified by:
serverErrorin interfaceGatewayServerListener
-
serverPostShutdown
public void serverPostShutdown()
Description copied from interface: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.
- Specified by:
serverPostShutdownin interfaceGatewayServerListener
-
serverPreShutdown
public void serverPreShutdown()
- Specified by:
serverPreShutdownin interfaceGatewayServerListener
-
serverStarted
public void serverStarted()
- Specified by:
serverStartedin interfaceGatewayServerListener
-
serverStopped
public void serverStopped()
Description copied from interface: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.
- Specified by:
serverStoppedin interfaceGatewayServerListener
-
-