D
- Driver or DataSourcepublic interface SynchronizationContext<Z,D extends Database<Z>>
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes any open database connections and shuts down the executor service.
|
Set<D> |
getActiveDatabaseSet()
Returns a snapshot of the activate databases in the cluster at the time synchronization started.
|
Connection |
getConnection(D database)
Returns a connection to the specified database.
|
Decoder |
getDecoder() |
Dialect |
getDialect()
Returns the dialect of the cluster.
|
ExecutorService |
getExecutor()
An executor service for executing tasks asynchronously.
|
D |
getSourceDatabase()
Returns the database from which to synchronize.
|
DatabaseProperties |
getSourceDatabaseProperties()
Returns a cache of database meta data for the source database.
|
SynchronizationSupport |
getSynchronizationSupport() |
D |
getTargetDatabase()
Returns the database to synchronize.
|
DatabaseProperties |
getTargetDatabaseProperties()
Returns a cache of database meta data for the target database.
|
Connection getConnection(D database) throws SQLException
database
- a database to which to connectSQLException
- if connection could not be obtainedD getSourceDatabase()
D getTargetDatabase()
Set<D> getActiveDatabaseSet()
DatabaseProperties getSourceDatabaseProperties()
DatabaseProperties getTargetDatabaseProperties()
Dialect getDialect()
ExecutorService getExecutor()
SynchronizationSupport getSynchronizationSupport()
Decoder getDecoder()
void close()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.