|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.storage.parallel.ParallelQueueExtractor
public class ParallelQueueExtractor
Implements ParallelExtractor interface for a parallel queue.
| Constructor Summary | |
|---|---|
ParallelQueueExtractor()
Instantiate the adapter. |
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
ReplEvent |
extract()
Extract the next available event from the log. |
java.lang.String |
getCurrentResourceEventId()
Returns the last event ID committed in a database from which we are extracting. |
ReplDBMSHeader |
getLastEvent()
Return the header, which should have been place here by an extractor during restart. |
java.lang.String |
getStoreName()
Returns the store name on which this extractor operates. |
boolean |
hasMoreEvents()
Returns true if the queue has more events. |
void |
prepare(PluginContext context)
Connect to underlying queue. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
setLastEvent(ReplDBMSHeader header)
Store the header so that it can be propagated back through the pipeline for restart. |
void |
setLastEventId(java.lang.String eventId)
Ignored for now as in-memory queues do not extract. |
void |
setStoreName(java.lang.String storeName)
|
void |
setTaskId(int id)
Sets the ID of the task using this extractor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParallelQueueExtractor()
| Method Detail |
|---|
public java.lang.String getStoreName()
ParallelExtractor
getStoreName in interface ParallelExtractorpublic void setStoreName(java.lang.String storeName)
public ReplEvent extract()
throws ReplicatorException,
java.lang.InterruptedException
extract in interface ExtractorReplicatorException
java.lang.InterruptedExceptionExtractor.extract()
public java.lang.String getCurrentResourceEventId()
throws ReplicatorException,
java.lang.InterruptedException
getCurrentResourceEventId in interface ExtractorReplicatorException
java.lang.InterruptedExceptionExtractor.getCurrentResourceEventId()public boolean hasMoreEvents()
hasMoreEvents in interface ExtractorExtractor.hasMoreEvents()
public void configure(PluginContext context)
throws ReplicatorException
configure in interface ReplicatorPluginReplicatorException - Thrown if configuration is incomplete or
failsReplicatorPlugin.configure(com.continuent.tungsten.replicator.plugin.PluginContext)
public void prepare(PluginContext context)
throws ReplicatorException
prepare in interface ReplicatorPluginReplicatorException - Thrown if resource allocation failsReplicatorPlugin.prepare(com.continuent.tungsten.replicator.plugin.PluginContext)
public void release(PluginContext context)
throws ReplicatorException
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation failsReplicatorPlugin.release(com.continuent.tungsten.replicator.plugin.PluginContext)
public ReplDBMSHeader getLastEvent()
throws ReplicatorException,
java.lang.InterruptedException
ReplicatorException
java.lang.InterruptedExceptionApplier.getLastEvent()public void setTaskId(int id)
setTaskId in interface ParallelExtractorid - Task IDParallelApplier.setTaskId(int)
public void setLastEvent(ReplDBMSHeader header)
throws ReplicatorException
setLastEvent in interface Extractorheader - Last event we extracted
ReplicatorExceptionExtractor.setLastEvent(com.continuent.tungsten.replicator.event.ReplDBMSHeader)
public void setLastEventId(java.lang.String eventId)
throws ReplicatorException
setLastEventId in interface ExtractoreventId - Event ID at which to begin extracting
ReplicatorExceptionExtractor.setLastEventId(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||