|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Applier
Denotes an applier that can process events with full metadata.
RawApplier| Method Summary | |
|---|---|
void |
apply(ReplDBMSEvent event,
boolean doCommit,
boolean doRollback,
boolean syncTHL)
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 transaction. |
void |
rollback()
Rolls back any current work. |
void |
updatePosition(ReplDBMSHeader header,
boolean doCommit,
boolean syncTHL)
Update current recovery position but do not apply an event. |
| Methods inherited from interface com.continuent.tungsten.replicator.plugin.ReplicatorPlugin |
|---|
configure, prepare, release |
| Method Detail |
|---|
void apply(ReplDBMSEvent event,
boolean doCommit,
boolean doRollback,
boolean syncTHL)
throws ReplicatorException,
ConsistencyException,
java.lang.InterruptedException
event - Event to be applieddoCommit - Boolean flag indicating whether this is the last part of
multipart eventdoRollback - Boolean flag indicating whether this transaction should
rollbacksyncTHL - Should this applier synchronize the trep_commit_seqno
table? This should be false for slave.
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 updatePosition(ReplDBMSHeader header,
boolean doCommit,
boolean syncTHL)
throws ReplicatorException,
java.lang.InterruptedException
header - Header containing seqno, event ID, etc.doCommit - Boolean flag indicating whether this is the last part of
multipart eventsyncTHL - Should this applier synchronize the trep_commit_seqno
table? This should be false for slave.
ReplicatorException - Thrown if applier processing fails
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
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 | |||||||||