com.continuent.tungsten.replicator.applier.batch
Interface ScriptExecutor

All Superinterfaces:
ReplicatorPlugin
All Known Implementing Classes:
JavascriptExecutor, NativeScriptExecutor

public interface ScriptExecutor
extends ReplicatorPlugin

Denotes a class capable of executing a batch load script. This interface conforms to conventions for replicator plugins.


Method Summary
 void execute(CsvInfo info)
          Executes the script for a specific table.
 void setConnection(Database connection)
          Sets the DBMS connection.
 void setScript(java.lang.String script)
          Sets the script name.
 void setShowCommands(boolean showCommands)
          If set to true, show commands as they execute.
 
Methods inherited from interface com.continuent.tungsten.replicator.plugin.ReplicatorPlugin
configure, prepare, release
 

Method Detail

setConnection

void setConnection(Database connection)
Sets the DBMS connection.


setScript

void setScript(java.lang.String script)
Sets the script name.


setShowCommands

void setShowCommands(boolean showCommands)
If set to true, show commands as they execute.


execute

void execute(CsvInfo info)
             throws ReplicatorException
Executes the script for a specific table.

Parameters:
info - Information about the table to be loaded and source CSV file
Throws:
ReplicatorException - Thrown if load operation fails