|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.filter.ReplicateFilter
public class ReplicateFilter
Implements a filter to either apply or ignore operations on particular schemas and/or tables. Patterns are comma separated lists, where each entry may have the following form:
| Constructor Summary | |
|---|---|
ReplicateFilter()
|
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
ReplDBMSEvent |
filter(ReplDBMSEvent event)
Filters transactions using do and ignore rules. |
java.lang.String |
fullyQualifiedName(java.lang.String schema,
java.lang.String table)
|
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
setDo(java.lang.String doFilter)
|
void |
setDoFilter(java.lang.String doFilter)
Define a comma-separated list of schemas with optional table names (e.g., schema1,schema2.table1,etc.) to replicate. |
void |
setIgnore(java.lang.String ignore)
|
void |
setIgnoreFilter(java.lang.String ignoreFilter)
Define a comma-separated list of schemas with optional table names (e.g., schema1,schema2.table1,etc.) to ignore. |
void |
setTungstenSchema(java.lang.String tungstenSchema)
Sets the Tungsten schema, which we ignore to prevent problems with the replicator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicateFilter()
| Method Detail |
|---|
public void setDoFilter(java.lang.String doFilter)
public void setDo(java.lang.String doFilter)
public void setIgnoreFilter(java.lang.String ignoreFilter)
ignoreFilter - public void setIgnore(java.lang.String ignore)
public void setTungstenSchema(java.lang.String tungstenSchema)
public ReplDBMSEvent filter(ReplDBMSEvent event)
throws ReplicatorException,
java.lang.InterruptedException
filter in interface Filterevent - An event to be filtered
ReplicatorException - Thrown if there is a processing error
java.lang.InterruptedException - Must be thrown if the filter is interrupted
or the replicator may hangFilter.filter(com.continuent.tungsten.replicator.event.ReplDBMSEvent)
public java.lang.String fullyQualifiedName(java.lang.String schema,
java.lang.String table)
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,
java.lang.InterruptedException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation fails
java.lang.InterruptedExceptionReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)
public void release(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation fails
java.lang.InterruptedExceptionReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||