|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.applier.DummyApplier
public class DummyApplier
| Constructor Summary | |
|---|---|
DummyApplier()
|
|
| Method Summary | |
|---|---|
void |
apply(DBMSEvent event,
ReplDBMSHeader header,
boolean doCommit,
boolean doRollback)
Apply the proffered event to the replication target. |
void |
commit()
Commits current open transaction to ensure data applied up to current point are durable. |
void |
configure(PluginContext context)
Complete plug-in configuration. |
long |
getEventCount()
|
ReplDBMSHeader |
getLastEvent()
Return header information corresponding to last committed event. |
java.util.ArrayList<StatementData> |
getTrx()
|
long |
getTxnCount()
|
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
rollback()
Rolls back any current work. |
void |
setStoreAppliedEvents(boolean store)
|
void |
setTaskId(int id)
Sets the ID of the task using this raw applier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DummyApplier()
| Method Detail |
|---|
public void setStoreAppliedEvents(boolean store)
public void setTaskId(int id)
setTaskId in interface RawApplierid - Task IDRawApplier.setTaskId(int)
public void apply(DBMSEvent event,
ReplDBMSHeader header,
boolean doCommit,
boolean doRollback)
throws ReplicatorException
apply in interface RawApplierevent - Event to be applied. If a DBMSEmptyEvent, just mark the
apply position.header - Header data corresponding to eventdoCommit - Boolean flag indicating whether this is the last part of
multi-part eventdoRollback - Boolean flag indicating whether this transaction should
rollback
ReplicatorException - Thrown if applier processing fails
ConsistencyException - Thrown if the applier detects that a
consistency check has failedRawApplier.apply(com.continuent.tungsten.replicator.event.DBMSEvent,
com.continuent.tungsten.replicator.event.ReplDBMSHeader, boolean, boolean)public void commit()
RawApplier
commit in interface RawApplier
public void rollback()
throws java.lang.InterruptedException
RawApplier
rollback in interface RawApplierjava.lang.InterruptedException - Thrown if the applier is interrupted.
public ReplDBMSHeader getLastEvent()
throws ReplicatorException,
java.lang.InterruptedException
RawApplier
getLastEvent in interface RawApplierReplicatorException - Thrown if getting sequence number fails
java.lang.InterruptedException - Thrown if the applier is interruptedpublic void configure(PluginContext context)
ReplicatorPlugin
configure in interface ReplicatorPluginpublic void prepare(PluginContext context)
ReplicatorPlugin
prepare in interface ReplicatorPluginpublic void release(PluginContext context)
ReplicatorPlugin
release in interface ReplicatorPluginpublic java.util.ArrayList<StatementData> getTrx()
public long getEventCount()
public long getTxnCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||