py4j
Class DefaultGatewayServerListener

java.lang.Object
  extended by py4j.DefaultGatewayServerListener
All Implemented Interfaces:
GatewayServerListener

public class DefaultGatewayServerListener
extends 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
DefaultGatewayServerListener()
           
 
Method Summary
 void connectionError(Exception e)
           
 void connectionStarted()
           
 void connectionStopped()
           
 void serverError(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().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultGatewayServerListener

public DefaultGatewayServerListener()
Method Detail

serverStarted

public void serverStarted()
Specified by:
serverStarted in interface GatewayServerListener

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 interface GatewayServerListener

serverError

public void serverError(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 interface GatewayServerListener

serverPreShutdown

public void serverPreShutdown()
Specified by:
serverPreShutdown in interface GatewayServerListener

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 interface GatewayServerListener

connectionStarted

public void connectionStarted()
Specified by:
connectionStarted in interface GatewayServerListener

connectionStopped

public void connectionStopped()
Specified by:
connectionStopped in interface GatewayServerListener

connectionError

public void connectionError(Exception e)
Specified by:
connectionError in interface GatewayServerListener