|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RawApplier
Denotes an applier, which is responsible for applying raw DBMS events to a database or other replication target. Appliers must be prepared to be interrupted, which mechanism is used to cancel processing.
| 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. |
ReplDBMSHeader |
getLastEvent()
Return header information corresponding to last committed event. |
void |
rollback()
Rolls back any current work. |
void |
setTaskId(int id)
Sets the ID of the task using this raw applier. |
| Methods inherited from interface com.continuent.tungsten.replicator.plugin.ReplicatorPlugin |
|---|
configure, prepare, release |
| Method Detail |
|---|
void setTaskId(int id)
id - Task ID
void apply(DBMSEvent event,
ReplDBMSHeader header,
boolean doCommit,
boolean doRollback)
throws ReplicatorException,
ConsistencyException,
java.lang.InterruptedException
event - 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 failed
java.lang.InterruptedException - Thrown if the applier is interrupted
void commit()
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorException - Thrown if applier processing fails
java.lang.InterruptedException - Thrown if the applier is interrupted
void rollback()
throws java.lang.InterruptedException
java.lang.InterruptedException - Thrown if the applier is interrupted.
ReplDBMSHeader getLastEvent()
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorException - Thrown if getting sequence number fails
java.lang.InterruptedException - Thrown if the applier is interrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||