public class DbSync
extends java.lang.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 java.lang.String |
DBSYNC_ENV |
static java.lang.String |
DBSYNC_GROUP_NAME |
static java.lang.String |
DBSYNC_HELPER_HOST |
static java.lang.String |
DBSYNC_NODE_HOST |
static java.lang.String |
DBSYNC_NODE_NAME |
static java.lang.String |
DBSYNC_TIMEOUT |
Constructor and Description |
---|
DbSync(java.lang.String envHome,
EnvironmentConfig envConfig,
ReplicationConfig repConfig,
java.lang.String helperHost,
long timeout)
Create a DbSync object for the purposed of syncing up a specific
replication group.
|
public static final java.lang.String DBSYNC_ENV
public static final java.lang.String DBSYNC_GROUP_NAME
public static final java.lang.String DBSYNC_NODE_NAME
public static final java.lang.String DBSYNC_NODE_HOST
public static final java.lang.String DBSYNC_HELPER_HOST
public static final java.lang.String DBSYNC_TIMEOUT
public DbSync(java.lang.String envHome, EnvironmentConfig envConfig, ReplicationConfig repConfig, java.lang.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 (c) 2004-2012 Oracle. All rights reserved.