Uses of Class
org.cojen.tupl.repl.ReplicatorConfig
Packages that use ReplicatorConfig
Package
Description
See
Database
to get started with TuplDB.General-purpose Raft-based replication system,
intended for supporting fully replicated databases.
-
Uses of ReplicatorConfig in org.cojen.tupl
Methods in org.cojen.tupl with parameters of type ReplicatorConfigModifier and TypeMethodDescriptionDatabaseConfig.replicate
(ReplicatorConfig config) Enable replication using the given configuration. -
Uses of ReplicatorConfig in org.cojen.tupl.repl
Methods in org.cojen.tupl.repl that return ReplicatorConfigModifier and TypeMethodDescriptionAdd a remote member address for allowing the local member to join the group.Add a remote member address for allowing the local member to join the group.ReplicatorConfig.addSeed
(SocketAddress addr) Add a remote member address for allowing the local member to join the group.Set the base file name for the replicator, which must reside in an ordinary file directory.ReplicatorConfig.baseFilePath
(String path) Set the base file name for the replicator, which must reside in an ordinary file directory.ReplicatorConfig.checksumSockets
(boolean checksums) Pass true to enable CRC checksums for all socket commands written.ReplicatorConfig.clone()
ReplicatorConfig.createFilePath
(boolean mkdirs) Set true to create the directory for the replication files, if it doesn't already exist.ReplicatorConfig.eventListener
(EventListener listener) Set a listener which receives notifications of actions being performed by the replicator.ReplicatorConfig.failoverLagTimeoutMillis
(long timeout) Set a timeout for a newly elected leader to be caught up, or else a new election is run.ReplicatorConfig.groupToken
(long token) Set a unique group token, which acts as a simple security measure to prevent different replication groups from communicating with each other.ReplicatorConfig.groupTokens
(long token, long altToken) Set a unique group token (and an alternate), which acts as a simple security measure to prevent different replication groups from communicating with each other.ReplicatorConfig.listenAddress
(SocketAddress addr) Optionally restrict the socket address for accepting connections, which can be a wildcard address.ReplicatorConfig.localAddress
(SocketAddress addr) Set the local member socket address and port.ReplicatorConfig.localPort
(int port) Set the local member socket port, for accepting connections on any address.Set the desired local member role, which is normal by default, and for the primordial group member.ReplicatorConfig.localSocket
(ServerSocket ss) Explicitly specify a connected local socket, intended only for testing.ReplicatorConfig.proxyWrites
(boolean proxy) Pass true to proxy writes from the leader, reducing load on the leader, but increasing commit latency a bit.ReplicatorConfig.serverSocketFactory
(ServerSocketFactory factory) Set a factory for creating new server-side sockets.ReplicatorConfig.socketFactory
(SocketFactory factory) Set a factory for creating new client-side sockets.Methods in org.cojen.tupl.repl with parameters of type ReplicatorConfigModifier and TypeMethodDescriptionstatic MessageReplicator
MessageReplicator.open
(ReplicatorConfig config) Open a MessageReplicator instance, creating it if necessary.static StreamReplicator
StreamReplicator.open
(ReplicatorConfig config) Open a StreamReplicator instance, creating it if necessary.