|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.pipeline.SingleThreadStageTask
public class SingleThreadStageTask
Implements thread logic for single-threaded stage execution. If your name is not one of the two people listed below you probably should not change this code without deep reflection and a lot of regression tests. *Every* line in the task run loop is here for a reason.
| Constructor Summary | |
|---|---|
SingleThreadStageTask(Stage stage,
int taskId)
|
|
| Method Summary | |
|---|---|
void |
cancel()
Cancel a currently running task. |
void |
execShutdownHooks(PluginContext context)
Invoke shutdown hooks (if any) defined on components of this task. |
Applier |
getApplier()
|
Extractor |
getExtractor()
|
java.util.List<Filter> |
getFilters()
|
java.lang.String |
getName()
|
int |
getTaskId()
Returns the id of this task. |
void |
reportInitialPosition(ReplDBMSHeader lastHeader)
|
void |
run()
Perform thread processing logic. |
void |
runTask()
Perform single-threaded stage processing. |
void |
setApplier(Applier applier)
|
void |
setEventDispatcher(com.continuent.tungsten.fsm.event.EventDispatcher eventDispatcher)
Sets the event dispatcher. |
void |
setExtractor(Extractor extractor)
|
void |
setFilters(java.util.List<Filter> filters)
|
void |
setSchedule(Schedule schedule)
Sets the schedule instance used to control loop continuation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SingleThreadStageTask(Stage stage,
int taskId)
| Method Detail |
|---|
public int getTaskId()
public void setEventDispatcher(com.continuent.tungsten.fsm.event.EventDispatcher eventDispatcher)
public void setSchedule(Schedule schedule)
public void setExtractor(Extractor extractor)
public void setFilters(java.util.List<Filter> filters)
public void setApplier(Applier applier)
public Extractor getExtractor()
public java.util.List<Filter> getFilters()
public Applier getApplier()
public java.lang.String getName()
public void cancel()
public void run()
run in interface java.lang.Runnablepublic void runTask()
ReplicatorException
public void execShutdownHooks(PluginContext context)
throws java.lang.InterruptedException
context - Plugin context
java.lang.InterruptedException
public void reportInitialPosition(ReplDBMSHeader lastHeader)
throws java.lang.InterruptedException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||