public class PassiveSynchronizationStrategy extends Object implements SynchronizationStrategy
SynchronizationStrategy
implementation that assumes that the inactive database is already in sync.Constructor and Description |
---|
PassiveSynchronizationStrategy() |
Modifier and Type | Method and Description |
---|---|
<Z,D extends Database<Z>> |
destroy(DatabaseCluster<Z,D> cluster) |
String |
getId() |
<Z,D extends Database<Z>> |
init(DatabaseCluster<Z,D> cluster) |
<Z,D extends Database<Z>> |
synchronize(SynchronizationContext<Z,D> context)
Synchronizes a target database with a source database as defined by the synchronization context.
|
public PassiveSynchronizationStrategy()
public String getId()
getId
in interface Identifiable
public <Z,D extends Database<Z>> void synchronize(SynchronizationContext<Z,D> context)
SynchronizationStrategy
synchronize
in interface SynchronizationStrategy
context
- a synchronization contextSynchronizationStrategy.synchronize(net.sf.hajdbc.sync.SynchronizationContext)
public <Z,D extends Database<Z>> void init(DatabaseCluster<Z,D> cluster)
init
in interface SynchronizationStrategy
SynchronizationStrategy.init(net.sf.hajdbc.DatabaseCluster)
public <Z,D extends Database<Z>> void destroy(DatabaseCluster<Z,D> cluster)
destroy
in interface SynchronizationStrategy
SynchronizationStrategy.destroy(net.sf.hajdbc.DatabaseCluster)
Copyright © 2004–2014 Paul Ferraro. All rights reserved.