|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.applier.batch.NativeScriptExecutor
public class NativeScriptExecutor
Represents a class to execute a native batch script.
| Constructor Summary | |
|---|---|
NativeScriptExecutor()
|
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
void |
execute(CsvInfo info)
Executes the script for a specific table. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
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 class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NativeScriptExecutor()
| Method Detail |
|---|
public void setConnection(Database connection)
setConnection in interface ScriptExecutorScriptExecutor.setConnection(com.continuent.tungsten.replicator.database.Database)public void setScript(java.lang.String script)
setScript in interface ScriptExecutorScriptExecutor.setScript(java.lang.String)public void setShowCommands(boolean showCommands)
setShowCommands in interface ScriptExecutorScriptExecutor.setShowCommands(boolean)
public void configure(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
fails
java.lang.InterruptedExceptionReplicatorPlugin.configure(com.continuent.tungsten.replicator.plugin.PluginContext)
public void prepare(PluginContext context)
throws ReplicatorException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation failsReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)public void release(PluginContext context)
release in interface ReplicatorPluginReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)
public void execute(CsvInfo info)
throws ReplicatorException
execute in interface ScriptExecutorinfo - Information about the table to be loaded and source CSV file
ReplicatorException - Thrown if load operation failsScriptExecutor.execute(com.continuent.tungsten.replicator.applier.batch.CsvInfo)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||