Package cz.o2.proxima.direct.server
Class ReplicationController
- java.lang.Object
-
- cz.o2.proxima.direct.server.ReplicationController
-
public class ReplicationController extends java.lang.Object
Server that controls replications of primary commit logs to replica attribute families.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
Run the controller.static ReplicationController
of(Repository repository)
Constructs a newReplicationController
.java.util.concurrent.CompletableFuture<java.lang.Void>
runReplicationThreads()
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.lang.Throwable
Run the controller.- Parameters:
args
- command line arguments- Throws:
java.lang.Throwable
- on error
-
of
public static ReplicationController of(Repository repository)
Constructs a newReplicationController
.- Parameters:
repository
- Repository to use for replication.- Returns:
- New replication controller.
-
runReplicationThreads
public java.util.concurrent.CompletableFuture<java.lang.Void> runReplicationThreads()
-
-