com.continuent.tungsten.replicator.plugin
Interface ShutdownHook

All Known Implementing Classes:
RemoteTHLExtractor

public interface ShutdownHook

This interface denotes a replicator plugin that has a shutdown method that should be called to ensure the plugin will stop. For instance, this interface can be used to break out of a blocking read on a socket by closing the socket object.


Method Summary
 void shutdown(PluginContext context)
          Shut down component.
 

Method Detail

shutdown

void shutdown(PluginContext context)
              throws ReplicatorException,
                     java.lang.InterruptedException
Shut down component. This is called after the task interrupt and should ensure the component responds correctly to an interrupt.

Throws:
ReplicatorException - Thrown if shutdown is unsuccessful
java.lang.InterruptedException