org.apache.hadoop.hbase.replication.regionserver
Interface ReplicationSourceInterface

All Known Implementing Classes:
ReplicationSource

public interface ReplicationSourceInterface

Interface that defines a replication source


Method Summary
 void enqueueLog(org.apache.hadoop.fs.Path log)
          Add a log to the list of logs to replicate
 org.apache.hadoop.fs.Path getCurrentPath()
          Get the current log that's replicated
 String getPeerClusterZnode()
          Get the id that the source is replicating to
 void init(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.fs.FileSystem fs, ReplicationSourceManager manager, AtomicBoolean stopper, AtomicBoolean replicating, String peerClusterId)
          Initializer for the source
 void startup()
          Start the replication
 void terminate()
          End the replication
 

Method Detail

init

void init(org.apache.hadoop.conf.Configuration conf,
          org.apache.hadoop.fs.FileSystem fs,
          ReplicationSourceManager manager,
          AtomicBoolean stopper,
          AtomicBoolean replicating,
          String peerClusterId)
          throws IOException
Initializer for the source

Parameters:
conf - the configuration to use
fs - the file system to use
manager - the manager to use
stopper - the stopper object for this region server
replicating - the status of the replication on this cluster
peerClusterId - the id of the peer cluster
Throws:
IOException

enqueueLog

void enqueueLog(org.apache.hadoop.fs.Path log)
Add a log to the list of logs to replicate

Parameters:
log - path to the log to replicate

getCurrentPath

org.apache.hadoop.fs.Path getCurrentPath()
Get the current log that's replicated

Returns:
the current log

startup

void startup()
Start the replication


terminate

void terminate()
End the replication


getPeerClusterZnode

String getPeerClusterZnode()
Get the id that the source is replicating to

Returns:
peer cluster id


Copyright © 2010 Apache Software Foundation. All Rights Reserved.