|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.continuent.tungsten.replicator.thl.CatalogManager
public class CatalogManager
Encapsulates management of catalog tables used by THL.
| Constructor Summary | |
|---|---|
CatalogManager(ReplicatorRuntime runtime)
Creates a new Catalog manager. |
|
| Method Summary | |
|---|---|
void |
close(PluginContext context)
Close database connection. |
void |
connect(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String metadataSchema,
java.lang.String vendor)
Set DBMS connection information. |
ReplDBMSHeader |
getMinLastEvent()
Return the minimum last applied event as stored in the CommitSeqnoTable. |
void |
prepareSchema(PluginContext context)
Prepare catalog schema schema. |
void |
updateCommitSeqnoTable(THLEvent event)
Updates the trep_commit_seqno table with latest event. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CatalogManager(ReplicatorRuntime runtime)
throws ReplicatorException
runtime - runtime
ReplicatorException| Method Detail |
|---|
public void connect(java.lang.String url,
java.lang.String user,
java.lang.String password,
java.lang.String metadataSchema,
java.lang.String vendor)
throws ReplicatorException
url - Database urluser - Database user namepassword - Database user passwordmetadataSchema - Name of replication service schemavendor - Used when it's impossible to distinguish correct DBMS
vendor from URL only. This is especially the case with
Greenplum, when URL is the same as for PostgreSQL. Thus
values: "postgresql" for PostgreSQL, "greenplum" for
Greenplum, null for MySQL.
ReplicatorException
public void prepareSchema(PluginContext context)
throws ReplicatorException
context - Replicator plugin context
ReplicatorException - thrown on failure
public void updateCommitSeqnoTable(THLEvent event)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void close(PluginContext context)
public ReplDBMSHeader getMinLastEvent()
throws ReplicatorException
ReplicatorException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||