Package org.gridgain.internal.dcr
Interface DcrManager
- All Superinterfaces:
org.apache.ignite.internal.lang.Debuggable,org.apache.ignite.internal.manager.IgniteComponent
- All Known Implementing Classes:
DcrManagerImpl,LicensedDcrManager
public interface DcrManager
extends org.apache.ignite.internal.manager.IgniteComponent
Data center replication manager. The instance provides start/stop replication operations.
-
Field Summary
Fields inherited from interface org.apache.ignite.internal.lang.Debuggable
INDENTATION -
Method Summary
Modifier and TypeMethodDescriptioncreateReplication(ReplicationOptions options, boolean instantStart) Creates replication with provided options.flushReplication(String name, Instant timestamp) Specifies timestamp for replication which will be used as flush point.Returns all replication info.removeReplication(String name) Removes replication with provided identifier.showReplication(String name) Returns replication info.startReplication(String name, String schema, @Nullable List<String> tables, boolean allTables) Starts replication.stopReplication(String name, String schema, @Nullable List<String> tables, boolean allTables) Stops replication with provided replication identifier.Methods inherited from interface org.apache.ignite.internal.lang.Debuggable
dumpStateMethods inherited from interface org.apache.ignite.internal.manager.IgniteComponent
beforeNodeStop, startAsync, stopAsync, stopAsync
-
Method Details
-
createReplication
CompletableFuture<ReplicationInfo> createReplication(ReplicationOptions options, boolean instantStart) Creates replication with provided options.- Parameters:
options- Replication options.- Returns:
- Future with replication info.
-
startReplication
CompletableFuture<Boolean> startReplication(String name, String schema, @Nullable @Nullable List<String> tables, boolean allTables) Starts replication.- Parameters:
name- Replication name.schema- schema, default is PUBLICtables- list of table namesallTables- Iftrue, all tables will be replicated.- Returns:
- Future with
truevalue if replication successfully started.
-
stopReplication
CompletableFuture<Boolean> stopReplication(String name, String schema, @Nullable @Nullable List<String> tables, boolean allTables) Stops replication with provided replication identifier.- Parameters:
name- Replication name.schema- schema, default is PUBLICtables- list of table namesallTables- Iftrue, all tables will be replicated.- Returns:
- Future with
trueif replication stopped successfully.
-
removeReplication
Removes replication with provided identifier.- Parameters:
name- Replication name.- Returns:
- Completed future if replication removed successfully.
-
showReplication
Returns replication info.- Parameters:
name- replication name.- Returns:
- Future with
ReplicationInfoif replication exist, null otherwise.
-
listReplications
CompletableFuture<Collection<ReplicationInfo>> listReplications()Returns all replication info.- Returns:
- Future with collection of all
ReplicationInfo
-
flushReplication
Specifies timestamp for replication which will be used as flush point. The flush point is a timestamp that is used to determine whether the replicated data is sufficient. After setting a flush point, replication will be considered completed at the moment when all replicated tables have all received data older than this reset point.- Parameters:
name- Replication name.timestamp- Flush point.- Returns:
- Completed future if replication flushed successfully.
-