public class DbSync extends Object
DbSync assumes that all nodes are down. The utility is invoked for each node in the group. The node will come up and rejoin the group, causing the whole group to reach the same point in the replication stream. If the node becomes the master, it will issue a shutdown request. Otherwise, a node is a replica, and will wait for the shutdown message to come, and will then close.
| Modifier and Type | Field and Description |
|---|---|
static String |
DBSYNC_ENV |
static String |
DBSYNC_GROUP_NAME |
static String |
DBSYNC_HELPER_HOST |
static String |
DBSYNC_NET_PROPS |
static String |
DBSYNC_NODE_HOST |
static String |
DBSYNC_NODE_NAME |
static String |
DBSYNC_TIMEOUT |
| Constructor and Description |
|---|
DbSync(String envHome,
EnvironmentConfig envConfig,
ReplicationConfig repConfig,
String helperHost,
long timeout)
Create a DbSync object for the purposed of syncing up a specific
replication group.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args) |
void |
sync()
Open this replication node.
|
public static final String DBSYNC_ENV
public static final String DBSYNC_GROUP_NAME
public static final String DBSYNC_NODE_NAME
public static final String DBSYNC_NODE_HOST
public static final String DBSYNC_HELPER_HOST
public static final String DBSYNC_TIMEOUT
public static final String DBSYNC_NET_PROPS
public DbSync(String envHome, EnvironmentConfig envConfig, ReplicationConfig repConfig, String helperHost, long timeout)
envHome - The Environment home directories of this replica.helperHost - The helper host for this replica.timeout - The permitted time period, in milliseconds, for the
replica to catch up with master.Copyright © 2024. All rights reserved.