|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.sync.SyncProcessor
com.sleepycat.je.sync.jdbc.JDBCSyncProcessor
public class JDBCSyncProcessor
Field Summary |
---|
Fields inherited from class com.sleepycat.je.sync.SyncProcessor |
---|
env, envImpl, processorName |
Constructor Summary | |
---|---|
JDBCSyncProcessor(Environment env,
String processorName,
JDBCConnectionConfig connectionConfig)
Creates a SyncProcessor for synchronizing data between JE and an external data repository via JDBC. |
Method Summary | |
---|---|
SyncDataSet |
addDataSet(String dataSetName,
Collection<SyncDatabase> databases)
Adds a data set that is managed by this processor. |
void |
cancelSync()
Cancels a sync operation being performed in another thread. |
JDBCConnectionConfig |
getConnectionConfig()
Returns the connection configuration. |
Map<String,SyncDataSet> |
getDataSets()
Returns all SyncDataSets that are managed by this processor. |
void |
removeDataSet(String dataSetName)
Removes a data set that is managed by this processor. |
void |
setConnectionConfig(JDBCConnectionConfig connectionConfig)
Changes the connection configuration. |
void |
sync(ExportConfig exportConfig,
ImportConfig importConfig,
String... dataSetName)
Performs a sync operation for the specified SyncDataSets. |
void |
syncAll(ExportConfig exportConfig,
ImportConfig importConfig)
Performs a sync operation for all SyncDataSets managed by this processor. |
Methods inherited from class com.sleepycat.je.sync.SyncProcessor |
---|
getEnvironment, getName, getSyncDB, openChangeReader, readChangeSetData, readProcessorMetadata, readProcessorTxnData, registerDataSet, setAddHook, setRemoveHook, unregisterDataSet, writeChangeSetData, writeProcessorMetadata, writeProcessorTxnData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDBCSyncProcessor(Environment env, String processorName, JDBCConnectionConfig connectionConfig)
Method Detail |
---|
public JDBCConnectionConfig getConnectionConfig()
public void setConnectionConfig(JDBCConnectionConfig connectionConfig)
public SyncDataSet addDataSet(String dataSetName, Collection<SyncDatabase> databases)
SyncProcessor
After calling this method, all changes to the JE databases in the data set will be tracked by JE, so they can be exported to the external system during a sync operation. The tracking of changes in the external system, if any, is defined by the SyncProcessor subclass.
The user must ensure that no transactions for the databases in the data set are active during the call to this method. If transactions are active, the results of the first sync operation with respect to these transactions are undefined, and the sync is unlikely to succeed.
Normally, each database in a newly added data set should be initially empty or non-existent. If a database is non-empty, the user must ensure that the records in the database are present in the external system.
addDataSet
in class SyncProcessor
public void removeDataSet(String dataSetName)
SyncProcessor
removeDataSet
in class SyncProcessor
public Map<String,SyncDataSet> getDataSets()
SyncProcessor
getDataSets
in class SyncProcessor
public void syncAll(ExportConfig exportConfig, ImportConfig importConfig)
SyncProcessor
syncAll
in class SyncProcessor
public void sync(ExportConfig exportConfig, ImportConfig importConfig, String... dataSetName)
SyncProcessor
sync
in class SyncProcessor
public void cancelSync()
SyncProcessor
cancelSync
in class SyncProcessor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |