HBASE-8439 [replication] Remove ReplicationZookeeper class; ADDENDDUM

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1507524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-07-26 23:53:06 +00:00
parent 4d7c8a8457
commit c001c526ec
3 changed files with 11 additions and 6 deletions

View File

@ -43,7 +43,7 @@ public interface ReplicationTracker {
/**
* Returns a list of other live region servers in the cluster.
* @return
* @return List of region servers.
*/
public List<String> getListOfRegionServers();
}
}

View File

@ -40,8 +40,11 @@ public interface ReplicationSourceInterface {
* @param conf the configuration to use
* @param fs the file system to use
* @param manager the manager to use
* @param replicationQueues
* @param replicationPeers
* @param stopper the stopper object for this region server
* @param peerClusterId the id of the peer cluster
* @param peerClusterZnode
* @param clusterId
* @throws IOException
*/
public void init(final Configuration conf, final FileSystem fs,

View File

@ -60,7 +60,7 @@ import com.google.common.util.concurrent.ThreadFactoryBuilder;
* When a region server dies, this class uses a watcher to get notified and it
* tries to grab a lock in order to transfer all the queues in a local
* old source.
*
*
* This class implements the ReplicationListener interface so that it can track changes in
* replication state.
*/
@ -99,13 +99,15 @@ public class ReplicationSourceManager implements ReplicationListener {
/**
* Creates a replication manager and sets the watch on all the other registered region servers
* @param zkHelper the zk helper for replication
* @param replicationQueues the interface for manipulating replication queues
* @param replicationPeers
* @param replicationTracker
* @param conf the configuration to use
* @param stopper the stopper object for this region server
* @param fs the file system to use
* @param logDir the directory that contains all hlog directories of live RSs
* @param oldLogDir the directory where old logs are archived
* @param clusterId
*/
public ReplicationSourceManager(final ReplicationQueues replicationQueues,
final ReplicationPeers replicationPeers, final ReplicationTracker replicationTracker,
@ -151,7 +153,7 @@ public class ReplicationSourceManager implements ReplicationListener {
* @param queueRecovered indicates if this queue comes from another region server
* @param holdLogInZK if true then the log is retained in ZK
*/
public void logPositionAndCleanOldLogs(Path log, String id, long position,
public void logPositionAndCleanOldLogs(Path log, String id, long position,
boolean queueRecovered, boolean holdLogInZK) {
String fileName = log.getName();
this.replicationQueues.setLogPosition(id, fileName, position);