|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.extractor.oracle.OracleExtractor
public class OracleExtractor
Defines a replication event extractor, which reads events from Oracle via a scoket connection to the actual C based Oracle extractor.
| Field Summary | |
|---|---|
protected java.lang.String |
host
|
protected java.lang.String |
instance
|
protected java.lang.String |
password
|
protected java.lang.String |
port
|
protected java.lang.String |
startingSCN
|
protected java.lang.String |
url
|
protected java.lang.String |
user
|
| Constructor Summary | |
|---|---|
OracleExtractor()
|
|
| Method Summary | |
|---|---|
void |
configure(PluginContext context)
Complete plug-in configuration. |
DBMSEvent |
extract()
Extract the next available DBMSEvent from the database log. |
DBMSEvent |
extract(java.lang.String id)
Extract starting after the event ID provided as an argument. |
protected DBMSEvent |
extractEventRowLevel(java.lang.String firstData)
Return the next row level event from received from dslisten. |
protected DBMSEvent |
extractEventStatementLevel(java.lang.String firstData)
Return the next statement extracted from dslisten |
java.lang.String |
getCurrentResourceEventId()
Returns the last event ID committed in the database from which we are extracting. |
int |
getDsport()
Get the port we attach to dslisten with. |
java.lang.String |
getHost()
Return the name of the host associated with the extractor |
java.lang.String |
getInstance()
Get the Oracle sid of the extractor |
protected java.lang.String |
getLogPosition()
Return the last event id retrieved from dslisten. |
java.lang.String |
getMapping()
Return the current schemaName.tableName mapping string. |
java.lang.String |
getPassword()
Get the Oracle password. |
java.lang.String |
getPort()
Get the port we attached to Oracle with. |
boolean |
getRowlevel()
Return TRUE IFF we are performing row level extraction.. |
java.lang.String |
getStartingSCN()
Get starting system commit number. |
java.lang.String |
getUser()
get the current Oracle user name associated with the extractor. |
void |
prepare(PluginContext context)
Prepare plug-in for use. |
void |
release(PluginContext context)
Release all resources used by plug-in. |
void |
setDsport(java.lang.String portAsString)
Set the port value used to communicate with dslisten. |
void |
setHost(java.lang.String host)
Set the host name associated with the extractor |
void |
setInstance(java.lang.String instance)
Set the Oracle sid associated with the extractor. |
void |
setLastEventId(java.lang.String eventId)
Set the value of the last event ID we have processed. |
void |
setMapping(java.lang.String mapping)
Set the current schemaName.tableName mapping string |
void |
setPassword(java.lang.String password)
Set the Oracle password. |
void |
setPort(java.lang.String port)
Set the port we attach to Oracle with. |
void |
setRowlevel(boolean rowLevel)
Set boolean that controls row level extraction.. |
void |
setStartingSCN(java.lang.String startingSCN)
Set the starting system commit number. |
void |
setUser(java.lang.String user)
Set the current Oracle user name associated with the extractor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String host
protected java.lang.String instance
protected java.lang.String user
protected java.lang.String password
protected java.lang.String port
protected java.lang.String url
protected java.lang.String startingSCN
| Constructor Detail |
|---|
public OracleExtractor()
| Method Detail |
|---|
public java.lang.String getHost()
public void setHost(java.lang.String host)
host - new host namepublic java.lang.String getMapping()
public void setMapping(java.lang.String mapping)
mapping - New mappingpublic java.lang.String getUser()
public void setUser(java.lang.String user)
user - new user namepublic java.lang.String getInstance()
public void setInstance(java.lang.String instance)
instance - new sidpublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password - New passwordpublic java.lang.String getStartingSCN()
public void setStartingSCN(java.lang.String startingSCN)
startingSCN - new starting system commit number.public java.lang.String getPort()
public void setPort(java.lang.String port)
port - new portpublic int getDsport()
public boolean getRowlevel()
public void setRowlevel(boolean rowLevel)
rowLevel - new value for row level.public void setDsport(java.lang.String portAsString)
portAsString - new port value.protected java.lang.String getLogPosition()
protected DBMSEvent extractEventRowLevel(java.lang.String firstData)
throws java.lang.InterruptedException,
ExtractorException
ExtractorException
java.lang.InterruptedException
protected DBMSEvent extractEventStatementLevel(java.lang.String firstData)
throws java.lang.InterruptedException,
ExtractorException
ExtractorException
java.lang.InterruptedException
public DBMSEvent extract()
throws java.lang.InterruptedException,
ExtractorException
extract in interface RawExtractorjava.lang.InterruptedException
ExtractorExceptionRawExtractor.extract()
public DBMSEvent extract(java.lang.String id)
throws java.lang.InterruptedException,
ExtractorException
extract in interface RawExtractorid - Event ID at which to begin extracting
java.lang.InterruptedException - Thrown if the applier is interrupted
ExtractorExceptionRawExtractor.extract(java.lang.String)
public void setLastEventId(java.lang.String eventId)
throws ExtractorException
setLastEventId in interface RawExtractoreventId - Event ID at which to begin extracting
ExtractorExceptionRawExtractor.setLastEventId(java.lang.String)
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(PluginContext
context)
public void release(PluginContext context)
throws ReplicatorException
release in interface ReplicatorPluginReplicatorException - Thrown if resource deallocation failsReplicatorPlugin.release(PluginContext
context)
public java.lang.String getCurrentResourceEventId()
throws ExtractorException,
java.lang.InterruptedException
getCurrentResourceEventId in interface RawExtractorjava.lang.InterruptedException
ExtractorExceptionRawExtractor.getCurrentResourceEventId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||