|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.pipeline.StageTaskGroup
public class StageTaskGroup
This class encapsulates a group of tasks that run together in a single stage. It handles life-cycle operations ranging from instantiation to release.
| Constructor Summary | |
|---|---|
StageTaskGroup(Stage stage,
int taskCount,
StageProgressTracker tracker)
Instantiated a task group including underlying tasks and their respective extractors, filters, and appliers. |
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
SingleThreadStageTask |
getTask(int id)
|
int |
getTaskCount()
|
SingleThreadStageTask[] |
getTasks()
|
boolean |
isShutdown()
Returns true if the stage has stopped. |
void |
notifyTasks()
Interrupts currently running tasks. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
reportTaskShutdown(java.lang.Thread taskThread,
SingleThreadStageTask task)
Reports that a task has shut down. |
void |
start(com.continuent.tungsten.fsm.event.EventDispatcher dispatcher)
Start all tasks in the group. |
void |
stop(boolean immediate)
Stop all tasks in the group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StageTaskGroup(Stage stage,
int taskCount,
StageProgressTracker tracker)
taskCount - Number of tasks in the group| Method Detail |
|---|
public int getTaskCount()
public SingleThreadStageTask[] getTasks()
public SingleThreadStageTask getTask(int id)
public void configure(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
fails
java.lang.InterruptedExceptionReplicatorPlugin.configure(com.continuent.tungsten.replicator.plugin.PluginContext)
public void prepare(PluginContext context)
throws ReplicatorException,
java.lang.InterruptedException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation fails
java.lang.InterruptedExceptionReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)public void release(PluginContext context)
release in interface ReplicatorPluginReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)
public void start(com.continuent.tungsten.fsm.event.EventDispatcher dispatcher)
throws ReplicatorException
ReplicatorException
public void stop(boolean immediate)
throws java.lang.InterruptedException
immediate - If true, interrupt and exit immediately
java.lang.InterruptedException
public void reportTaskShutdown(java.lang.Thread taskThread,
SingleThreadStageTask task)
public void notifyTasks()
public boolean isShutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||