|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.pipeline.SimpleSchedule
public class SimpleSchedule
Defines a basic schedule implementation that tracks watches on events and task termination logic.
| Field Summary |
|---|
| Fields inherited from interface com.continuent.tungsten.replicator.pipeline.Schedule |
|---|
CONTINUE_NEXT, CONTINUE_NEXT_COMMIT, PROCEED, QUIT |
| Constructor Summary | |
|---|---|
SimpleSchedule(Stage stage,
SingleThreadStageTask task)
Creates a new schedule instance. |
|
| Method Summary | |
|---|---|
int |
advise(ReplEvent replEvent)
Task must call this method after extracting event but before processing to decide disposition. |
void |
cancel()
Signal that task has been cancelled. |
void |
commit()
Marks the last processed exception as committed. |
boolean |
isCancelled()
Returns true if the task is canceled. |
void |
setLastProcessedEvent(ReplDBMSHeader event)
Set the last processed event, which triggers checks for watches. |
boolean |
skip(ReplDBMSEvent event)
Skips the given event |
void |
taskEnd()
Task must call this method before exit to tell the schedule that it has completed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleSchedule(Stage stage,
SingleThreadStageTask task)
stage - Stage to which this applies.| Method Detail |
|---|
public int advise(ReplEvent replEvent)
throws java.lang.InterruptedException
advise in interface Schedulejava.lang.InterruptedExceptionSchedule.advise(com.continuent.tungsten.replicator.event.ReplEvent)public boolean isCancelled()
isCancelled in interface ScheduleSchedule.isCancelled()
public void setLastProcessedEvent(ReplDBMSHeader event)
throws java.lang.InterruptedException
setLastProcessedEvent in interface Schedulejava.lang.InterruptedException - Thrown if thread is interrupted.Schedule.setLastProcessedEvent(com.continuent.tungsten.replicator.event.ReplDBMSHeader)
public void commit()
throws java.lang.InterruptedException
commit in interface Schedulejava.lang.InterruptedException - Thrown if thread is interrupted.Schedule.commit()public void taskEnd()
taskEnd in interface ScheduleSchedule.taskEnd()
public boolean skip(ReplDBMSEvent event)
throws java.lang.InterruptedException
java.lang.InterruptedExceptionStageProgressTracker.skip(ReplDBMSEvent)public void cancel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||