hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From git-site-r...@apache.org
Subject [25/51] [partial] hbase-site git commit: Published site at .
Date Tue, 26 Sep 2017 15:14:22 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/8e4e1542/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
index 7020fd9..0c2b9a4 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/Version.html
@@ -16,11 +16,11 @@
 <span class="sourceLineNo">008</span>@InterfaceAudience.Private<a name="line.8"></a>
 <span class="sourceLineNo">009</span>public class Version {<a name="line.9"></a>
 <span class="sourceLineNo">010</span>  public static final String version = "3.0.0-SNAPSHOT";<a name="line.10"></a>
-<span class="sourceLineNo">011</span>  public static final String revision = "a5f84430a305db6a1eddd45f82d19babf43a8d01";<a name="line.11"></a>
+<span class="sourceLineNo">011</span>  public static final String revision = "410368b84eeaa31e6e21c69df8361a32763a1c57";<a name="line.11"></a>
 <span class="sourceLineNo">012</span>  public static final String user = "jenkins";<a name="line.12"></a>
-<span class="sourceLineNo">013</span>  public static final String date = "Mon Sep 25 14:41:41 UTC 2017";<a name="line.13"></a>
+<span class="sourceLineNo">013</span>  public static final String date = "Tue Sep 26 14:41:58 UTC 2017";<a name="line.13"></a>
 <span class="sourceLineNo">014</span>  public static final String url = "git://asf920.gq1.ygridcore.net/home/jenkins/jenkins-slave/workspace/hbase_generate_website/hbase";<a name="line.14"></a>
-<span class="sourceLineNo">015</span>  public static final String srcChecksum = "0df4123a6c18e8037f987aefc7baa3ef";<a name="line.15"></a>
+<span class="sourceLineNo">015</span>  public static final String srcChecksum = "66fa95f706f330a3c61f6de8f7f371a2";<a name="line.15"></a>
 <span class="sourceLineNo">016</span>}<a name="line.16"></a>
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/8e4e1542/devapidocs/src-html/org/apache/hadoop/hbase/backup/BackupDriver.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/backup/BackupDriver.html b/devapidocs/src-html/org/apache/hadoop/hbase/backup/BackupDriver.html
index 21f6543..89fa089 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/backup/BackupDriver.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/backup/BackupDriver.html
@@ -39,183 +39,187 @@
 <span class="sourceLineNo">031</span>import static org.apache.hadoop.hbase.backup.BackupRestoreConstants.OPTION_TABLE_DESC;<a name="line.31"></a>
 <span class="sourceLineNo">032</span>import static org.apache.hadoop.hbase.backup.BackupRestoreConstants.OPTION_WORKERS;<a name="line.32"></a>
 <span class="sourceLineNo">033</span>import static org.apache.hadoop.hbase.backup.BackupRestoreConstants.OPTION_WORKERS_DESC;<a name="line.33"></a>
-<span class="sourceLineNo">034</span><a name="line.34"></a>
-<span class="sourceLineNo">035</span>import java.io.IOException;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import java.net.URI;<a name="line.36"></a>
-<span class="sourceLineNo">037</span><a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.commons.cli.CommandLine;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.commons.logging.Log;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.commons.logging.LogFactory;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.conf.Configuration;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.fs.Path;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.backup.BackupRestoreConstants.BackupCommand;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.backup.impl.BackupCommands;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.backup.impl.BackupManager;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.47"></a>
-<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.util.AbstractHBaseTool;<a name="line.48"></a>
-<span class="sourceLineNo">049</span>import org.apache.hadoop.hbase.util.FSUtils;<a name="line.49"></a>
-<span class="sourceLineNo">050</span>import org.apache.hadoop.util.ToolRunner;<a name="line.50"></a>
-<span class="sourceLineNo">051</span>import org.apache.log4j.Level;<a name="line.51"></a>
-<span class="sourceLineNo">052</span>import org.apache.log4j.Logger;<a name="line.52"></a>
-<span class="sourceLineNo">053</span><a name="line.53"></a>
-<span class="sourceLineNo">054</span>/**<a name="line.54"></a>
-<span class="sourceLineNo">055</span> *<a name="line.55"></a>
-<span class="sourceLineNo">056</span> * Command-line entry point for backup operation<a name="line.56"></a>
+<span class="sourceLineNo">034</span>import static org.apache.hadoop.hbase.backup.BackupRestoreConstants.OPTION_YARN_QUEUE_NAME;<a name="line.34"></a>
+<span class="sourceLineNo">035</span>import static org.apache.hadoop.hbase.backup.BackupRestoreConstants.OPTION_YARN_QUEUE_NAME_DESC;<a name="line.35"></a>
+<span class="sourceLineNo">036</span><a name="line.36"></a>
+<span class="sourceLineNo">037</span>import java.io.IOException;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import java.net.URI;<a name="line.38"></a>
+<span class="sourceLineNo">039</span><a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.commons.cli.CommandLine;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.commons.logging.Log;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.commons.logging.LogFactory;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.conf.Configuration;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.fs.Path;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.HBaseConfiguration;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.backup.BackupRestoreConstants.BackupCommand;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.backup.impl.BackupCommands;<a name="line.47"></a>
+<span class="sourceLineNo">048</span>import org.apache.hadoop.hbase.backup.impl.BackupManager;<a name="line.48"></a>
+<span class="sourceLineNo">049</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.49"></a>
+<span class="sourceLineNo">050</span>import org.apache.hadoop.hbase.util.AbstractHBaseTool;<a name="line.50"></a>
+<span class="sourceLineNo">051</span>import org.apache.hadoop.hbase.util.FSUtils;<a name="line.51"></a>
+<span class="sourceLineNo">052</span>import org.apache.hadoop.util.ToolRunner;<a name="line.52"></a>
+<span class="sourceLineNo">053</span>import org.apache.log4j.Level;<a name="line.53"></a>
+<span class="sourceLineNo">054</span>import org.apache.log4j.Logger;<a name="line.54"></a>
+<span class="sourceLineNo">055</span><a name="line.55"></a>
+<span class="sourceLineNo">056</span>/**<a name="line.56"></a>
 <span class="sourceLineNo">057</span> *<a name="line.57"></a>
-<span class="sourceLineNo">058</span> */<a name="line.58"></a>
-<span class="sourceLineNo">059</span>@InterfaceAudience.Private<a name="line.59"></a>
-<span class="sourceLineNo">060</span>public class BackupDriver extends AbstractHBaseTool {<a name="line.60"></a>
-<span class="sourceLineNo">061</span><a name="line.61"></a>
-<span class="sourceLineNo">062</span>  private static final Log LOG = LogFactory.getLog(BackupDriver.class);<a name="line.62"></a>
-<span class="sourceLineNo">063</span>  private CommandLine cmd;<a name="line.63"></a>
-<span class="sourceLineNo">064</span><a name="line.64"></a>
-<span class="sourceLineNo">065</span>  public BackupDriver() throws IOException {<a name="line.65"></a>
-<span class="sourceLineNo">066</span>    init();<a name="line.66"></a>
-<span class="sourceLineNo">067</span>  }<a name="line.67"></a>
-<span class="sourceLineNo">068</span><a name="line.68"></a>
-<span class="sourceLineNo">069</span>  protected void init() throws IOException {<a name="line.69"></a>
-<span class="sourceLineNo">070</span>    // disable irrelevant loggers to avoid it mess up command output<a name="line.70"></a>
-<span class="sourceLineNo">071</span>    LogUtils.disableZkAndClientLoggers(LOG);<a name="line.71"></a>
-<span class="sourceLineNo">072</span>  }<a name="line.72"></a>
-<span class="sourceLineNo">073</span><a name="line.73"></a>
-<span class="sourceLineNo">074</span>  private int parseAndRun(String[] args) throws IOException {<a name="line.74"></a>
+<span class="sourceLineNo">058</span> * Command-line entry point for backup operation<a name="line.58"></a>
+<span class="sourceLineNo">059</span> *<a name="line.59"></a>
+<span class="sourceLineNo">060</span> */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>@InterfaceAudience.Private<a name="line.61"></a>
+<span class="sourceLineNo">062</span>public class BackupDriver extends AbstractHBaseTool {<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>  private static final Log LOG = LogFactory.getLog(BackupDriver.class);<a name="line.64"></a>
+<span class="sourceLineNo">065</span>  private CommandLine cmd;<a name="line.65"></a>
+<span class="sourceLineNo">066</span><a name="line.66"></a>
+<span class="sourceLineNo">067</span>  public BackupDriver() throws IOException {<a name="line.67"></a>
+<span class="sourceLineNo">068</span>    init();<a name="line.68"></a>
+<span class="sourceLineNo">069</span>  }<a name="line.69"></a>
+<span class="sourceLineNo">070</span><a name="line.70"></a>
+<span class="sourceLineNo">071</span>  protected void init() throws IOException {<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    // disable irrelevant loggers to avoid it mess up command output<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    LogUtils.disableZkAndClientLoggers(LOG);<a name="line.73"></a>
+<span class="sourceLineNo">074</span>  }<a name="line.74"></a>
 <span class="sourceLineNo">075</span><a name="line.75"></a>
-<span class="sourceLineNo">076</span>    // Check if backup is enabled<a name="line.76"></a>
-<span class="sourceLineNo">077</span>    if (!BackupManager.isBackupEnabled(getConf())) {<a name="line.77"></a>
-<span class="sourceLineNo">078</span>      System.err.println(BackupRestoreConstants.ENABLE_BACKUP);<a name="line.78"></a>
-<span class="sourceLineNo">079</span>      return -1;<a name="line.79"></a>
-<span class="sourceLineNo">080</span>    }<a name="line.80"></a>
-<span class="sourceLineNo">081</span><a name="line.81"></a>
-<span class="sourceLineNo">082</span>    System.out.println(BackupRestoreConstants.VERIFY_BACKUP);<a name="line.82"></a>
+<span class="sourceLineNo">076</span>  private int parseAndRun(String[] args) throws IOException {<a name="line.76"></a>
+<span class="sourceLineNo">077</span><a name="line.77"></a>
+<span class="sourceLineNo">078</span>    // Check if backup is enabled<a name="line.78"></a>
+<span class="sourceLineNo">079</span>    if (!BackupManager.isBackupEnabled(getConf())) {<a name="line.79"></a>
+<span class="sourceLineNo">080</span>      System.err.println(BackupRestoreConstants.ENABLE_BACKUP);<a name="line.80"></a>
+<span class="sourceLineNo">081</span>      return -1;<a name="line.81"></a>
+<span class="sourceLineNo">082</span>    }<a name="line.82"></a>
 <span class="sourceLineNo">083</span><a name="line.83"></a>
-<span class="sourceLineNo">084</span>    String cmd = null;<a name="line.84"></a>
-<span class="sourceLineNo">085</span>    String[] remainArgs = null;<a name="line.85"></a>
-<span class="sourceLineNo">086</span>    if (args == null || args.length == 0) {<a name="line.86"></a>
-<span class="sourceLineNo">087</span>      printToolUsage();<a name="line.87"></a>
-<span class="sourceLineNo">088</span>      return -1;<a name="line.88"></a>
-<span class="sourceLineNo">089</span>    } else {<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      cmd = args[0];<a name="line.90"></a>
-<span class="sourceLineNo">091</span>      remainArgs = new String[args.length - 1];<a name="line.91"></a>
-<span class="sourceLineNo">092</span>      if (args.length &gt; 1) {<a name="line.92"></a>
-<span class="sourceLineNo">093</span>        System.arraycopy(args, 1, remainArgs, 0, args.length - 1);<a name="line.93"></a>
-<span class="sourceLineNo">094</span>      }<a name="line.94"></a>
-<span class="sourceLineNo">095</span>    }<a name="line.95"></a>
-<span class="sourceLineNo">096</span><a name="line.96"></a>
-<span class="sourceLineNo">097</span>    BackupCommand type = BackupCommand.HELP;<a name="line.97"></a>
-<span class="sourceLineNo">098</span>    if (BackupCommand.CREATE.name().equalsIgnoreCase(cmd)) {<a name="line.98"></a>
-<span class="sourceLineNo">099</span>      type = BackupCommand.CREATE;<a name="line.99"></a>
-<span class="sourceLineNo">100</span>    } else if (BackupCommand.HELP.name().equalsIgnoreCase(cmd)) {<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      type = BackupCommand.HELP;<a name="line.101"></a>
-<span class="sourceLineNo">102</span>    } else if (BackupCommand.DELETE.name().equalsIgnoreCase(cmd)) {<a name="line.102"></a>
-<span class="sourceLineNo">103</span>      type = BackupCommand.DELETE;<a name="line.103"></a>
-<span class="sourceLineNo">104</span>    } else if (BackupCommand.DESCRIBE.name().equalsIgnoreCase(cmd)) {<a name="line.104"></a>
-<span class="sourceLineNo">105</span>      type = BackupCommand.DESCRIBE;<a name="line.105"></a>
-<span class="sourceLineNo">106</span>    } else if (BackupCommand.HISTORY.name().equalsIgnoreCase(cmd)) {<a name="line.106"></a>
-<span class="sourceLineNo">107</span>      type = BackupCommand.HISTORY;<a name="line.107"></a>
-<span class="sourceLineNo">108</span>    } else if (BackupCommand.PROGRESS.name().equalsIgnoreCase(cmd)) {<a name="line.108"></a>
-<span class="sourceLineNo">109</span>      type = BackupCommand.PROGRESS;<a name="line.109"></a>
-<span class="sourceLineNo">110</span>    } else if (BackupCommand.SET.name().equalsIgnoreCase(cmd)) {<a name="line.110"></a>
-<span class="sourceLineNo">111</span>      type = BackupCommand.SET;<a name="line.111"></a>
-<span class="sourceLineNo">112</span>    } else if (BackupCommand.REPAIR.name().equalsIgnoreCase(cmd)) {<a name="line.112"></a>
-<span class="sourceLineNo">113</span>      type = BackupCommand.REPAIR;<a name="line.113"></a>
-<span class="sourceLineNo">114</span>    } else if (BackupCommand.MERGE.name().equalsIgnoreCase(cmd)) {<a name="line.114"></a>
-<span class="sourceLineNo">115</span>      type = BackupCommand.MERGE;<a name="line.115"></a>
-<span class="sourceLineNo">116</span>    } else {<a name="line.116"></a>
-<span class="sourceLineNo">117</span>      System.out.println("Unsupported command for backup: " + cmd);<a name="line.117"></a>
-<span class="sourceLineNo">118</span>      printToolUsage();<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      return -1;<a name="line.119"></a>
-<span class="sourceLineNo">120</span>    }<a name="line.120"></a>
-<span class="sourceLineNo">121</span><a name="line.121"></a>
-<span class="sourceLineNo">122</span>    // enable debug logging<a name="line.122"></a>
-<span class="sourceLineNo">123</span>    Logger backupClientLogger = Logger.getLogger("org.apache.hadoop.hbase.backup");<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    if (this.cmd.hasOption(OPTION_DEBUG)) {<a name="line.124"></a>
-<span class="sourceLineNo">125</span>      backupClientLogger.setLevel(Level.DEBUG);<a name="line.125"></a>
-<span class="sourceLineNo">126</span>    } else {<a name="line.126"></a>
-<span class="sourceLineNo">127</span>      backupClientLogger.setLevel(Level.INFO);<a name="line.127"></a>
-<span class="sourceLineNo">128</span>    }<a name="line.128"></a>
-<span class="sourceLineNo">129</span><a name="line.129"></a>
-<span class="sourceLineNo">130</span>    BackupCommands.Command command = BackupCommands.createCommand(getConf(), type, this.cmd);<a name="line.130"></a>
-<span class="sourceLineNo">131</span>    if (type == BackupCommand.CREATE &amp;&amp; conf != null) {<a name="line.131"></a>
-<span class="sourceLineNo">132</span>      ((BackupCommands.CreateCommand) command).setConf(conf);<a name="line.132"></a>
-<span class="sourceLineNo">133</span>    }<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    try {<a name="line.134"></a>
-<span class="sourceLineNo">135</span>      command.execute();<a name="line.135"></a>
-<span class="sourceLineNo">136</span>    } catch (IOException e) {<a name="line.136"></a>
-<span class="sourceLineNo">137</span>      if (e.getMessage().equals(BackupCommands.INCORRECT_USAGE)) {<a name="line.137"></a>
-<span class="sourceLineNo">138</span>        return -1;<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      }<a name="line.139"></a>
-<span class="sourceLineNo">140</span>      throw e;<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    } finally {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      command.finish();<a name="line.142"></a>
-<span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>    return 0;<a name="line.144"></a>
-<span class="sourceLineNo">145</span>  }<a name="line.145"></a>
-<span class="sourceLineNo">146</span><a name="line.146"></a>
-<span class="sourceLineNo">147</span>  @Override<a name="line.147"></a>
-<span class="sourceLineNo">148</span>  protected void addOptions() {<a name="line.148"></a>
-<span class="sourceLineNo">149</span>    // define supported options<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    addOptNoArg(OPTION_DEBUG, OPTION_DEBUG_DESC);<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    addOptWithArg(OPTION_TABLE, OPTION_TABLE_DESC);<a name="line.151"></a>
-<span class="sourceLineNo">152</span>    addOptWithArg(OPTION_BANDWIDTH, OPTION_BANDWIDTH_DESC);<a name="line.152"></a>
-<span class="sourceLineNo">153</span>    addOptWithArg(OPTION_WORKERS, OPTION_WORKERS_DESC);<a name="line.153"></a>
-<span class="sourceLineNo">154</span>    addOptWithArg(OPTION_RECORD_NUMBER, OPTION_RECORD_NUMBER_DESC);<a name="line.154"></a>
-<span class="sourceLineNo">155</span>    addOptWithArg(OPTION_SET, OPTION_SET_DESC);<a name="line.155"></a>
-<span class="sourceLineNo">156</span>    addOptWithArg(OPTION_PATH, OPTION_PATH_DESC);<a name="line.156"></a>
-<span class="sourceLineNo">157</span>  }<a name="line.157"></a>
-<span class="sourceLineNo">158</span><a name="line.158"></a>
-<span class="sourceLineNo">159</span>  @Override<a name="line.159"></a>
-<span class="sourceLineNo">160</span>  protected void processOptions(CommandLine cmd) {<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    this.cmd = cmd;<a name="line.161"></a>
-<span class="sourceLineNo">162</span>  }<a name="line.162"></a>
-<span class="sourceLineNo">163</span><a name="line.163"></a>
-<span class="sourceLineNo">164</span>  @Override<a name="line.164"></a>
-<span class="sourceLineNo">165</span>  protected int doWork() throws Exception {<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    return parseAndRun(cmd.getArgs());<a name="line.166"></a>
-<span class="sourceLineNo">167</span>  }<a name="line.167"></a>
-<span class="sourceLineNo">168</span><a name="line.168"></a>
-<span class="sourceLineNo">169</span>  public static void main(String[] args) throws Exception {<a name="line.169"></a>
-<span class="sourceLineNo">170</span>    Configuration conf = HBaseConfiguration.create();<a name="line.170"></a>
-<span class="sourceLineNo">171</span>    Path hbasedir = FSUtils.getRootDir(conf);<a name="line.171"></a>
-<span class="sourceLineNo">172</span>    URI defaultFs = hbasedir.getFileSystem(conf).getUri();<a name="line.172"></a>
-<span class="sourceLineNo">173</span>    FSUtils.setFsDefault(conf, new Path(defaultFs));<a name="line.173"></a>
-<span class="sourceLineNo">174</span>    int ret = ToolRunner.run(conf, new BackupDriver(), args);<a name="line.174"></a>
-<span class="sourceLineNo">175</span>    System.exit(ret);<a name="line.175"></a>
-<span class="sourceLineNo">176</span>  }<a name="line.176"></a>
-<span class="sourceLineNo">177</span><a name="line.177"></a>
-<span class="sourceLineNo">178</span>  @Override<a name="line.178"></a>
-<span class="sourceLineNo">179</span>  public int run(String[] args) throws IOException {<a name="line.179"></a>
-<span class="sourceLineNo">180</span>    if (conf == null) {<a name="line.180"></a>
-<span class="sourceLineNo">181</span>      LOG.error("Tool configuration is not initialized");<a name="line.181"></a>
-<span class="sourceLineNo">182</span>      throw new NullPointerException("conf");<a name="line.182"></a>
-<span class="sourceLineNo">183</span>    }<a name="line.183"></a>
-<span class="sourceLineNo">184</span><a name="line.184"></a>
-<span class="sourceLineNo">185</span>    CommandLine cmd;<a name="line.185"></a>
-<span class="sourceLineNo">186</span>    try {<a name="line.186"></a>
-<span class="sourceLineNo">187</span>      // parse the command line arguments<a name="line.187"></a>
-<span class="sourceLineNo">188</span>      cmd = parseArgs(args);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>      cmdLineArgs = args;<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    } catch (Exception e) {<a name="line.190"></a>
-<span class="sourceLineNo">191</span>      System.err.println("Error when parsing command-line arguments: " + e.getMessage());<a name="line.191"></a>
-<span class="sourceLineNo">192</span>      printToolUsage();<a name="line.192"></a>
-<span class="sourceLineNo">193</span>      return EXIT_FAILURE;<a name="line.193"></a>
-<span class="sourceLineNo">194</span>    }<a name="line.194"></a>
-<span class="sourceLineNo">195</span>    processOptions(cmd);<a name="line.195"></a>
-<span class="sourceLineNo">196</span><a name="line.196"></a>
-<span class="sourceLineNo">197</span>    int ret = EXIT_FAILURE;<a name="line.197"></a>
-<span class="sourceLineNo">198</span>    try {<a name="line.198"></a>
-<span class="sourceLineNo">199</span>      ret = doWork();<a name="line.199"></a>
-<span class="sourceLineNo">200</span>    } catch (Exception e) {<a name="line.200"></a>
-<span class="sourceLineNo">201</span>      LOG.error("Error running command-line tool", e);<a name="line.201"></a>
-<span class="sourceLineNo">202</span>      return EXIT_FAILURE;<a name="line.202"></a>
-<span class="sourceLineNo">203</span>    }<a name="line.203"></a>
-<span class="sourceLineNo">204</span>    return ret;<a name="line.204"></a>
-<span class="sourceLineNo">205</span>  }<a name="line.205"></a>
-<span class="sourceLineNo">206</span><a name="line.206"></a>
-<span class="sourceLineNo">207</span>  protected void printToolUsage() throws IOException {<a name="line.207"></a>
-<span class="sourceLineNo">208</span>    System.out.println(BackupCommands.USAGE);<a name="line.208"></a>
+<span class="sourceLineNo">084</span>    System.out.println(BackupRestoreConstants.VERIFY_BACKUP);<a name="line.84"></a>
+<span class="sourceLineNo">085</span><a name="line.85"></a>
+<span class="sourceLineNo">086</span>    String cmd = null;<a name="line.86"></a>
+<span class="sourceLineNo">087</span>    String[] remainArgs = null;<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    if (args == null || args.length == 0) {<a name="line.88"></a>
+<span class="sourceLineNo">089</span>      printToolUsage();<a name="line.89"></a>
+<span class="sourceLineNo">090</span>      return -1;<a name="line.90"></a>
+<span class="sourceLineNo">091</span>    } else {<a name="line.91"></a>
+<span class="sourceLineNo">092</span>      cmd = args[0];<a name="line.92"></a>
+<span class="sourceLineNo">093</span>      remainArgs = new String[args.length - 1];<a name="line.93"></a>
+<span class="sourceLineNo">094</span>      if (args.length &gt; 1) {<a name="line.94"></a>
+<span class="sourceLineNo">095</span>        System.arraycopy(args, 1, remainArgs, 0, args.length - 1);<a name="line.95"></a>
+<span class="sourceLineNo">096</span>      }<a name="line.96"></a>
+<span class="sourceLineNo">097</span>    }<a name="line.97"></a>
+<span class="sourceLineNo">098</span><a name="line.98"></a>
+<span class="sourceLineNo">099</span>    BackupCommand type = BackupCommand.HELP;<a name="line.99"></a>
+<span class="sourceLineNo">100</span>    if (BackupCommand.CREATE.name().equalsIgnoreCase(cmd)) {<a name="line.100"></a>
+<span class="sourceLineNo">101</span>      type = BackupCommand.CREATE;<a name="line.101"></a>
+<span class="sourceLineNo">102</span>    } else if (BackupCommand.HELP.name().equalsIgnoreCase(cmd)) {<a name="line.102"></a>
+<span class="sourceLineNo">103</span>      type = BackupCommand.HELP;<a name="line.103"></a>
+<span class="sourceLineNo">104</span>    } else if (BackupCommand.DELETE.name().equalsIgnoreCase(cmd)) {<a name="line.104"></a>
+<span class="sourceLineNo">105</span>      type = BackupCommand.DELETE;<a name="line.105"></a>
+<span class="sourceLineNo">106</span>    } else if (BackupCommand.DESCRIBE.name().equalsIgnoreCase(cmd)) {<a name="line.106"></a>
+<span class="sourceLineNo">107</span>      type = BackupCommand.DESCRIBE;<a name="line.107"></a>
+<span class="sourceLineNo">108</span>    } else if (BackupCommand.HISTORY.name().equalsIgnoreCase(cmd)) {<a name="line.108"></a>
+<span class="sourceLineNo">109</span>      type = BackupCommand.HISTORY;<a name="line.109"></a>
+<span class="sourceLineNo">110</span>    } else if (BackupCommand.PROGRESS.name().equalsIgnoreCase(cmd)) {<a name="line.110"></a>
+<span class="sourceLineNo">111</span>      type = BackupCommand.PROGRESS;<a name="line.111"></a>
+<span class="sourceLineNo">112</span>    } else if (BackupCommand.SET.name().equalsIgnoreCase(cmd)) {<a name="line.112"></a>
+<span class="sourceLineNo">113</span>      type = BackupCommand.SET;<a name="line.113"></a>
+<span class="sourceLineNo">114</span>    } else if (BackupCommand.REPAIR.name().equalsIgnoreCase(cmd)) {<a name="line.114"></a>
+<span class="sourceLineNo">115</span>      type = BackupCommand.REPAIR;<a name="line.115"></a>
+<span class="sourceLineNo">116</span>    } else if (BackupCommand.MERGE.name().equalsIgnoreCase(cmd)) {<a name="line.116"></a>
+<span class="sourceLineNo">117</span>      type = BackupCommand.MERGE;<a name="line.117"></a>
+<span class="sourceLineNo">118</span>    } else {<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      System.out.println("Unsupported command for backup: " + cmd);<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      printToolUsage();<a name="line.120"></a>
+<span class="sourceLineNo">121</span>      return -1;<a name="line.121"></a>
+<span class="sourceLineNo">122</span>    }<a name="line.122"></a>
+<span class="sourceLineNo">123</span><a name="line.123"></a>
+<span class="sourceLineNo">124</span>    // enable debug logging<a name="line.124"></a>
+<span class="sourceLineNo">125</span>    Logger backupClientLogger = Logger.getLogger("org.apache.hadoop.hbase.backup");<a name="line.125"></a>
+<span class="sourceLineNo">126</span>    if (this.cmd.hasOption(OPTION_DEBUG)) {<a name="line.126"></a>
+<span class="sourceLineNo">127</span>      backupClientLogger.setLevel(Level.DEBUG);<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    } else {<a name="line.128"></a>
+<span class="sourceLineNo">129</span>      backupClientLogger.setLevel(Level.INFO);<a name="line.129"></a>
+<span class="sourceLineNo">130</span>    }<a name="line.130"></a>
+<span class="sourceLineNo">131</span><a name="line.131"></a>
+<span class="sourceLineNo">132</span>    BackupCommands.Command command = BackupCommands.createCommand(getConf(), type, this.cmd);<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    if (type == BackupCommand.CREATE &amp;&amp; conf != null) {<a name="line.133"></a>
+<span class="sourceLineNo">134</span>      ((BackupCommands.CreateCommand) command).setConf(conf);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>    }<a name="line.135"></a>
+<span class="sourceLineNo">136</span>    try {<a name="line.136"></a>
+<span class="sourceLineNo">137</span>      command.execute();<a name="line.137"></a>
+<span class="sourceLineNo">138</span>    } catch (IOException e) {<a name="line.138"></a>
+<span class="sourceLineNo">139</span>      if (e.getMessage().equals(BackupCommands.INCORRECT_USAGE)) {<a name="line.139"></a>
+<span class="sourceLineNo">140</span>        return -1;<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      }<a name="line.141"></a>
+<span class="sourceLineNo">142</span>      throw e;<a name="line.142"></a>
+<span class="sourceLineNo">143</span>    } finally {<a name="line.143"></a>
+<span class="sourceLineNo">144</span>      command.finish();<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    }<a name="line.145"></a>
+<span class="sourceLineNo">146</span>    return 0;<a name="line.146"></a>
+<span class="sourceLineNo">147</span>  }<a name="line.147"></a>
+<span class="sourceLineNo">148</span><a name="line.148"></a>
+<span class="sourceLineNo">149</span>  @Override<a name="line.149"></a>
+<span class="sourceLineNo">150</span>  protected void addOptions() {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    // define supported options<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    addOptNoArg(OPTION_DEBUG, OPTION_DEBUG_DESC);<a name="line.152"></a>
+<span class="sourceLineNo">153</span>    addOptWithArg(OPTION_TABLE, OPTION_TABLE_DESC);<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    addOptWithArg(OPTION_BANDWIDTH, OPTION_BANDWIDTH_DESC);<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    addOptWithArg(OPTION_WORKERS, OPTION_WORKERS_DESC);<a name="line.155"></a>
+<span class="sourceLineNo">156</span>    addOptWithArg(OPTION_RECORD_NUMBER, OPTION_RECORD_NUMBER_DESC);<a name="line.156"></a>
+<span class="sourceLineNo">157</span>    addOptWithArg(OPTION_SET, OPTION_SET_DESC);<a name="line.157"></a>
+<span class="sourceLineNo">158</span>    addOptWithArg(OPTION_PATH, OPTION_PATH_DESC);<a name="line.158"></a>
+<span class="sourceLineNo">159</span>    addOptWithArg(OPTION_YARN_QUEUE_NAME, OPTION_YARN_QUEUE_NAME_DESC);<a name="line.159"></a>
+<span class="sourceLineNo">160</span>    <a name="line.160"></a>
+<span class="sourceLineNo">161</span>  }<a name="line.161"></a>
+<span class="sourceLineNo">162</span><a name="line.162"></a>
+<span class="sourceLineNo">163</span>  @Override<a name="line.163"></a>
+<span class="sourceLineNo">164</span>  protected void processOptions(CommandLine cmd) {<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    this.cmd = cmd;<a name="line.165"></a>
+<span class="sourceLineNo">166</span>  }<a name="line.166"></a>
+<span class="sourceLineNo">167</span><a name="line.167"></a>
+<span class="sourceLineNo">168</span>  @Override<a name="line.168"></a>
+<span class="sourceLineNo">169</span>  protected int doWork() throws Exception {<a name="line.169"></a>
+<span class="sourceLineNo">170</span>    return parseAndRun(cmd.getArgs());<a name="line.170"></a>
+<span class="sourceLineNo">171</span>  }<a name="line.171"></a>
+<span class="sourceLineNo">172</span><a name="line.172"></a>
+<span class="sourceLineNo">173</span>  public static void main(String[] args) throws Exception {<a name="line.173"></a>
+<span class="sourceLineNo">174</span>    Configuration conf = HBaseConfiguration.create();<a name="line.174"></a>
+<span class="sourceLineNo">175</span>    Path hbasedir = FSUtils.getRootDir(conf);<a name="line.175"></a>
+<span class="sourceLineNo">176</span>    URI defaultFs = hbasedir.getFileSystem(conf).getUri();<a name="line.176"></a>
+<span class="sourceLineNo">177</span>    FSUtils.setFsDefault(conf, new Path(defaultFs));<a name="line.177"></a>
+<span class="sourceLineNo">178</span>    int ret = ToolRunner.run(conf, new BackupDriver(), args);<a name="line.178"></a>
+<span class="sourceLineNo">179</span>    System.exit(ret);<a name="line.179"></a>
+<span class="sourceLineNo">180</span>  }<a name="line.180"></a>
+<span class="sourceLineNo">181</span><a name="line.181"></a>
+<span class="sourceLineNo">182</span>  @Override<a name="line.182"></a>
+<span class="sourceLineNo">183</span>  public int run(String[] args) throws IOException {<a name="line.183"></a>
+<span class="sourceLineNo">184</span>    if (conf == null) {<a name="line.184"></a>
+<span class="sourceLineNo">185</span>      LOG.error("Tool configuration is not initialized");<a name="line.185"></a>
+<span class="sourceLineNo">186</span>      throw new NullPointerException("conf");<a name="line.186"></a>
+<span class="sourceLineNo">187</span>    }<a name="line.187"></a>
+<span class="sourceLineNo">188</span><a name="line.188"></a>
+<span class="sourceLineNo">189</span>    CommandLine cmd;<a name="line.189"></a>
+<span class="sourceLineNo">190</span>    try {<a name="line.190"></a>
+<span class="sourceLineNo">191</span>      // parse the command line arguments<a name="line.191"></a>
+<span class="sourceLineNo">192</span>      cmd = parseArgs(args);<a name="line.192"></a>
+<span class="sourceLineNo">193</span>      cmdLineArgs = args;<a name="line.193"></a>
+<span class="sourceLineNo">194</span>    } catch (Exception e) {<a name="line.194"></a>
+<span class="sourceLineNo">195</span>      System.err.println("Error when parsing command-line arguments: " + e.getMessage());<a name="line.195"></a>
+<span class="sourceLineNo">196</span>      printToolUsage();<a name="line.196"></a>
+<span class="sourceLineNo">197</span>      return EXIT_FAILURE;<a name="line.197"></a>
+<span class="sourceLineNo">198</span>    }<a name="line.198"></a>
+<span class="sourceLineNo">199</span>    processOptions(cmd);<a name="line.199"></a>
+<span class="sourceLineNo">200</span><a name="line.200"></a>
+<span class="sourceLineNo">201</span>    int ret = EXIT_FAILURE;<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    try {<a name="line.202"></a>
+<span class="sourceLineNo">203</span>      ret = doWork();<a name="line.203"></a>
+<span class="sourceLineNo">204</span>    } catch (Exception e) {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      LOG.error("Error running command-line tool", e);<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      return EXIT_FAILURE;<a name="line.206"></a>
+<span class="sourceLineNo">207</span>    }<a name="line.207"></a>
+<span class="sourceLineNo">208</span>    return ret;<a name="line.208"></a>
 <span class="sourceLineNo">209</span>  }<a name="line.209"></a>
-<span class="sourceLineNo">210</span>}<a name="line.210"></a>
+<span class="sourceLineNo">210</span><a name="line.210"></a>
+<span class="sourceLineNo">211</span>  protected void printToolUsage() throws IOException {<a name="line.211"></a>
+<span class="sourceLineNo">212</span>    System.out.println(BackupCommands.USAGE);<a name="line.212"></a>
+<span class="sourceLineNo">213</span>  }<a name="line.213"></a>
+<span class="sourceLineNo">214</span>}<a name="line.214"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/8e4e1542/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/BulkLoadObserver.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/BulkLoadObserver.html b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/BulkLoadObserver.html
index c92bd48..cf36383 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/BulkLoadObserver.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/BulkLoadObserver.html
@@ -31,48 +31,55 @@
 <span class="sourceLineNo">023</span><a name="line.23"></a>
 <span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.Coprocessor;<a name="line.24"></a>
 <span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.HBaseInterfaceAudience;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.PrepareBulkLoadRequest;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.CleanupBulkLoadRequest;<a name="line.29"></a>
-<span class="sourceLineNo">030</span><a name="line.30"></a>
-<span class="sourceLineNo">031</span>/**<a name="line.31"></a>
-<span class="sourceLineNo">032</span> * Coprocessors implement this interface to observe and mediate bulk load operations.<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * &lt;br&gt;&lt;br&gt;<a name="line.33"></a>
-<span class="sourceLineNo">034</span> *<a name="line.34"></a>
-<span class="sourceLineNo">035</span> * &lt;h3&gt;Exception Handling&lt;/h3&gt;<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * For all functions, exception handling is done as follows:<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * &lt;ul&gt;<a name="line.37"></a>
-<span class="sourceLineNo">038</span> *   &lt;li&gt;Exceptions of type {@link IOException} are reported back to client.&lt;/li&gt;<a name="line.38"></a>
-<span class="sourceLineNo">039</span> *   &lt;li&gt;For any other kind of exception:<a name="line.39"></a>
-<span class="sourceLineNo">040</span> *     &lt;ul&gt;<a name="line.40"></a>
-<span class="sourceLineNo">041</span> *       &lt;li&gt;If the configuration {@link CoprocessorHost#ABORT_ON_ERROR_KEY} is set to true, then<a name="line.41"></a>
-<span class="sourceLineNo">042</span> *         the server aborts.&lt;/li&gt;<a name="line.42"></a>
-<span class="sourceLineNo">043</span> *       &lt;li&gt;Otherwise, coprocessor is removed from the server and<a name="line.43"></a>
-<span class="sourceLineNo">044</span> *         {@link org.apache.hadoop.hbase.DoNotRetryIOException} is returned to the client.&lt;/li&gt;<a name="line.44"></a>
-<span class="sourceLineNo">045</span> *     &lt;/ul&gt;<a name="line.45"></a>
-<span class="sourceLineNo">046</span> *   &lt;/li&gt;<a name="line.46"></a>
-<span class="sourceLineNo">047</span> * &lt;/ul&gt;<a name="line.47"></a>
-<span class="sourceLineNo">048</span> */<a name="line.48"></a>
-<span class="sourceLineNo">049</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)<a name="line.49"></a>
-<span class="sourceLineNo">050</span>@InterfaceStability.Evolving<a name="line.50"></a>
-<span class="sourceLineNo">051</span>public interface BulkLoadObserver extends Coprocessor {<a name="line.51"></a>
-<span class="sourceLineNo">052</span>    /**<a name="line.52"></a>
-<span class="sourceLineNo">053</span>      * Called as part of SecureBulkLoadEndpoint.prepareBulkLoad() RPC call.<a name="line.53"></a>
-<span class="sourceLineNo">054</span>      * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.54"></a>
-<span class="sourceLineNo">055</span>      * @param ctx the environment to interact with the framework and master<a name="line.55"></a>
-<span class="sourceLineNo">056</span>      */<a name="line.56"></a>
-<span class="sourceLineNo">057</span>    default void prePrepareBulkLoad(ObserverContext&lt;RegionCoprocessorEnvironment&gt; ctx,<a name="line.57"></a>
-<span class="sourceLineNo">058</span>        PrepareBulkLoadRequest request) throws IOException {}<a name="line.58"></a>
-<span class="sourceLineNo">059</span><a name="line.59"></a>
-<span class="sourceLineNo">060</span>    /**<a name="line.60"></a>
-<span class="sourceLineNo">061</span>      * Called as part of SecureBulkLoadEndpoint.cleanupBulkLoad() RPC call.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>      * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.62"></a>
-<span class="sourceLineNo">063</span>      * @param ctx the environment to interact with the framework and master<a name="line.63"></a>
-<span class="sourceLineNo">064</span>      */<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    default void preCleanupBulkLoad(ObserverContext&lt;RegionCoprocessorEnvironment&gt; ctx,<a name="line.65"></a>
-<span class="sourceLineNo">066</span>      CleanupBulkLoadRequest request) throws IOException {}<a name="line.66"></a>
-<span class="sourceLineNo">067</span>}<a name="line.67"></a>
+<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.TableName;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.27"></a>
+<span class="sourceLineNo">028</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.28"></a>
+<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.PrepareBulkLoadRequest;<a name="line.29"></a>
+<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.CleanupBulkLoadRequest;<a name="line.30"></a>
+<span class="sourceLineNo">031</span><a name="line.31"></a>
+<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Coprocessors implement this interface to observe and mediate bulk load operations.<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * &lt;br&gt;&lt;br&gt;<a name="line.34"></a>
+<span class="sourceLineNo">035</span> *<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * &lt;h3&gt;Exception Handling&lt;/h3&gt;<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * For all functions, exception handling is done as follows:<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * &lt;ul&gt;<a name="line.38"></a>
+<span class="sourceLineNo">039</span> *   &lt;li&gt;Exceptions of type {@link IOException} are reported back to client.&lt;/li&gt;<a name="line.39"></a>
+<span class="sourceLineNo">040</span> *   &lt;li&gt;For any other kind of exception:<a name="line.40"></a>
+<span class="sourceLineNo">041</span> *     &lt;ul&gt;<a name="line.41"></a>
+<span class="sourceLineNo">042</span> *       &lt;li&gt;If the configuration {@link CoprocessorHost#ABORT_ON_ERROR_KEY} is set to true, then<a name="line.42"></a>
+<span class="sourceLineNo">043</span> *         the server aborts.&lt;/li&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span> *       &lt;li&gt;Otherwise, coprocessor is removed from the server and<a name="line.44"></a>
+<span class="sourceLineNo">045</span> *         {@link org.apache.hadoop.hbase.DoNotRetryIOException} is returned to the client.&lt;/li&gt;<a name="line.45"></a>
+<span class="sourceLineNo">046</span> *     &lt;/ul&gt;<a name="line.46"></a>
+<span class="sourceLineNo">047</span> *   &lt;/li&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span> * &lt;/ul&gt;<a name="line.48"></a>
+<span class="sourceLineNo">049</span> */<a name="line.49"></a>
+<span class="sourceLineNo">050</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)<a name="line.50"></a>
+<span class="sourceLineNo">051</span>@InterfaceStability.Evolving<a name="line.51"></a>
+<span class="sourceLineNo">052</span>public interface BulkLoadObserver extends Coprocessor {<a name="line.52"></a>
+<span class="sourceLineNo">053</span>    /**<a name="line.53"></a>
+<span class="sourceLineNo">054</span>      * Called as part of SecureBulkLoadEndpoint.prepareBulkLoad() RPC call.<a name="line.54"></a>
+<span class="sourceLineNo">055</span>      * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.55"></a>
+<span class="sourceLineNo">056</span>      * If you need to get the region or table name, get it from the<a name="line.56"></a>
+<span class="sourceLineNo">057</span>      * &lt;code&gt;ctx&lt;/code&gt; as follows: &lt;code&gt;code&gt;ctx.getEnvironment().getRegion()&lt;/code&gt;. Use<a name="line.57"></a>
+<span class="sourceLineNo">058</span>      * getRegionInfo to fetch the encodedName and use getTabldDescriptor() to get the tableName.<a name="line.58"></a>
+<span class="sourceLineNo">059</span>      * @param ctx the environment to interact with the framework and master<a name="line.59"></a>
+<span class="sourceLineNo">060</span>      */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>    default void prePrepareBulkLoad(ObserverContext&lt;RegionCoprocessorEnvironment&gt; ctx)<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    throws IOException {}<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>    /**<a name="line.64"></a>
+<span class="sourceLineNo">065</span>      * Called as part of SecureBulkLoadEndpoint.cleanupBulkLoad() RPC call.<a name="line.65"></a>
+<span class="sourceLineNo">066</span>      * It can't bypass the default action, e.g., ctx.bypass() won't have effect.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>      * If you need to get the region or table name, get it from the<a name="line.67"></a>
+<span class="sourceLineNo">068</span>      * &lt;code&gt;ctx&lt;/code&gt; as follows: &lt;code&gt;code&gt;ctx.getEnvironment().getRegion()&lt;/code&gt;. Use<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      * getRegionInfo to fetch the encodedName and use getTabldDescriptor() to get the tableName.<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      * @param ctx the environment to interact with the framework and master<a name="line.70"></a>
+<span class="sourceLineNo">071</span>      */<a name="line.71"></a>
+<span class="sourceLineNo">072</span>    default void preCleanupBulkLoad(ObserverContext&lt;RegionCoprocessorEnvironment&gt; ctx)<a name="line.72"></a>
+<span class="sourceLineNo">073</span>    throws IOException {}<a name="line.73"></a>
+<span class="sourceLineNo">074</span>}<a name="line.74"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/8e4e1542/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
index 2725449..3fb7ae1 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/MasterObserver.html
@@ -41,18 +41,18 @@
 <span class="sourceLineNo">033</span>import org.apache.hadoop.hbase.client.MasterSwitchType;<a name="line.33"></a>
 <span class="sourceLineNo">034</span>import org.apache.hadoop.hbase.client.Mutation;<a name="line.34"></a>
 <span class="sourceLineNo">035</span>import org.apache.hadoop.hbase.client.RegionInfo;<a name="line.35"></a>
-<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.client.TableDescriptor;<a name="line.36"></a>
-<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.master.RegionPlan;<a name="line.37"></a>
-<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.master.locking.LockProcedure;<a name="line.38"></a>
-<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;<a name="line.39"></a>
-<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.net.Address;<a name="line.40"></a>
-<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.procedure2.LockType;<a name="line.41"></a>
-<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.procedure2.LockedResource;<a name="line.42"></a>
-<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.procedure2.Procedure;<a name="line.43"></a>
-<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;<a name="line.44"></a>
-<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.quotas.GlobalQuotaSettings;<a name="line.45"></a>
-<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.46"></a>
-<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription;<a name="line.47"></a>
+<span class="sourceLineNo">036</span>import org.apache.hadoop.hbase.client.SnapshotDescription;<a name="line.36"></a>
+<span class="sourceLineNo">037</span>import org.apache.hadoop.hbase.client.TableDescriptor;<a name="line.37"></a>
+<span class="sourceLineNo">038</span>import org.apache.hadoop.hbase.master.RegionPlan;<a name="line.38"></a>
+<span class="sourceLineNo">039</span>import org.apache.hadoop.hbase.master.locking.LockProcedure;<a name="line.39"></a>
+<span class="sourceLineNo">040</span>import org.apache.hadoop.hbase.master.procedure.MasterProcedureEnv;<a name="line.40"></a>
+<span class="sourceLineNo">041</span>import org.apache.hadoop.hbase.net.Address;<a name="line.41"></a>
+<span class="sourceLineNo">042</span>import org.apache.hadoop.hbase.procedure2.LockType;<a name="line.42"></a>
+<span class="sourceLineNo">043</span>import org.apache.hadoop.hbase.procedure2.LockedResource;<a name="line.43"></a>
+<span class="sourceLineNo">044</span>import org.apache.hadoop.hbase.procedure2.Procedure;<a name="line.44"></a>
+<span class="sourceLineNo">045</span>import org.apache.hadoop.hbase.procedure2.ProcedureExecutor;<a name="line.45"></a>
+<span class="sourceLineNo">046</span>import org.apache.hadoop.hbase.quotas.GlobalQuotaSettings;<a name="line.46"></a>
+<span class="sourceLineNo">047</span>import org.apache.hadoop.hbase.replication.ReplicationPeerConfig;<a name="line.47"></a>
 <span class="sourceLineNo">048</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.48"></a>
 <span class="sourceLineNo">049</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.49"></a>
 <span class="sourceLineNo">050</span><a name="line.50"></a>

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/8e4e1542/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/RegionServerObserver.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/RegionServerObserver.html b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/RegionServerObserver.html
index 174d5e4..990f4e1 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/RegionServerObserver.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/coprocessor/RegionServerObserver.html
@@ -27,113 +27,114 @@
 <span class="sourceLineNo">019</span>package org.apache.hadoop.hbase.coprocessor;<a name="line.19"></a>
 <span class="sourceLineNo">020</span><a name="line.20"></a>
 <span class="sourceLineNo">021</span>import java.io.IOException;<a name="line.21"></a>
-<span class="sourceLineNo">022</span>import java.util.List;<a name="line.22"></a>
-<span class="sourceLineNo">023</span><a name="line.23"></a>
-<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.CellScanner;<a name="line.24"></a>
-<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.Coprocessor;<a name="line.25"></a>
-<span class="sourceLineNo">026</span>import org.apache.hadoop.hbase.HBaseInterfaceAudience;<a name="line.26"></a>
-<span class="sourceLineNo">027</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.27"></a>
-<span class="sourceLineNo">028</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.28"></a>
-<span class="sourceLineNo">029</span>import org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.WALEntry;<a name="line.29"></a>
-<span class="sourceLineNo">030</span>import org.apache.hadoop.hbase.replication.ReplicationEndpoint;<a name="line.30"></a>
-<span class="sourceLineNo">031</span><a name="line.31"></a>
-<span class="sourceLineNo">032</span>/**<a name="line.32"></a>
-<span class="sourceLineNo">033</span> * Defines coprocessor hooks for interacting with operations on the<a name="line.33"></a>
-<span class="sourceLineNo">034</span> * {@link org.apache.hadoop.hbase.regionserver.HRegionServer} process.<a name="line.34"></a>
-<span class="sourceLineNo">035</span> *<a name="line.35"></a>
-<span class="sourceLineNo">036</span> * Since most implementations will be interested in only a subset of hooks, this class uses<a name="line.36"></a>
-<span class="sourceLineNo">037</span> * 'default' functions to avoid having to add unnecessary overrides. When the functions are<a name="line.37"></a>
-<span class="sourceLineNo">038</span> * non-empty, it's simply to satisfy the compiler by returning value of expected (non-void) type.<a name="line.38"></a>
-<span class="sourceLineNo">039</span> * It is done in a way that these default definitions act as no-op. So our suggestion to<a name="line.39"></a>
-<span class="sourceLineNo">040</span> * implementation would be to not call these 'default' methods from overrides.<a name="line.40"></a>
-<span class="sourceLineNo">041</span> * &lt;br&gt;&lt;br&gt;<a name="line.41"></a>
-<span class="sourceLineNo">042</span> *<a name="line.42"></a>
-<span class="sourceLineNo">043</span> * &lt;h3&gt;Exception Handling&lt;/h3&gt;<a name="line.43"></a>
-<span class="sourceLineNo">044</span> * For all functions, exception handling is done as follows:<a name="line.44"></a>
-<span class="sourceLineNo">045</span> * &lt;ul&gt;<a name="line.45"></a>
-<span class="sourceLineNo">046</span> *   &lt;li&gt;Exceptions of type {@link IOException} are reported back to client.&lt;/li&gt;<a name="line.46"></a>
-<span class="sourceLineNo">047</span> *   &lt;li&gt;For any other kind of exception:<a name="line.47"></a>
-<span class="sourceLineNo">048</span> *     &lt;ul&gt;<a name="line.48"></a>
-<span class="sourceLineNo">049</span> *       &lt;li&gt;If the configuration {@link CoprocessorHost#ABORT_ON_ERROR_KEY} is set to true, then<a name="line.49"></a>
-<span class="sourceLineNo">050</span> *         the server aborts.&lt;/li&gt;<a name="line.50"></a>
-<span class="sourceLineNo">051</span> *       &lt;li&gt;Otherwise, coprocessor is removed from the server and<a name="line.51"></a>
-<span class="sourceLineNo">052</span> *         {@link org.apache.hadoop.hbase.DoNotRetryIOException} is returned to the client.&lt;/li&gt;<a name="line.52"></a>
-<span class="sourceLineNo">053</span> *     &lt;/ul&gt;<a name="line.53"></a>
-<span class="sourceLineNo">054</span> *   &lt;/li&gt;<a name="line.54"></a>
-<span class="sourceLineNo">055</span> * &lt;/ul&gt;<a name="line.55"></a>
-<span class="sourceLineNo">056</span> */<a name="line.56"></a>
-<span class="sourceLineNo">057</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)<a name="line.57"></a>
-<span class="sourceLineNo">058</span>@InterfaceStability.Evolving<a name="line.58"></a>
-<span class="sourceLineNo">059</span>public interface RegionServerObserver extends Coprocessor {<a name="line.59"></a>
-<span class="sourceLineNo">060</span>  /**<a name="line.60"></a>
-<span class="sourceLineNo">061</span>   * Called before stopping region server.<a name="line.61"></a>
-<span class="sourceLineNo">062</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.62"></a>
-<span class="sourceLineNo">063</span>   */<a name="line.63"></a>
-<span class="sourceLineNo">064</span>  default void preStopRegionServer(<a name="line.64"></a>
-<span class="sourceLineNo">065</span>    final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx) throws IOException {}<a name="line.65"></a>
-<span class="sourceLineNo">066</span><a name="line.66"></a>
-<span class="sourceLineNo">067</span>  /**<a name="line.67"></a>
-<span class="sourceLineNo">068</span>   * This will be called before executing user request to roll a region server WAL.<a name="line.68"></a>
-<span class="sourceLineNo">069</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.69"></a>
-<span class="sourceLineNo">070</span>   */<a name="line.70"></a>
-<span class="sourceLineNo">071</span>  default void preRollWALWriterRequest(<a name="line.71"></a>
-<span class="sourceLineNo">072</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.72"></a>
-<span class="sourceLineNo">073</span>      throws IOException {}<a name="line.73"></a>
-<span class="sourceLineNo">074</span><a name="line.74"></a>
-<span class="sourceLineNo">075</span>  /**<a name="line.75"></a>
-<span class="sourceLineNo">076</span>   * This will be called after executing user request to roll a region server WAL.<a name="line.76"></a>
-<span class="sourceLineNo">077</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.77"></a>
-<span class="sourceLineNo">078</span>   */<a name="line.78"></a>
-<span class="sourceLineNo">079</span>  default void postRollWALWriterRequest(<a name="line.79"></a>
-<span class="sourceLineNo">080</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.80"></a>
-<span class="sourceLineNo">081</span>      throws IOException {}<a name="line.81"></a>
-<span class="sourceLineNo">082</span><a name="line.82"></a>
-<span class="sourceLineNo">083</span>  /**<a name="line.83"></a>
-<span class="sourceLineNo">084</span>   * This will be called after the replication endpoint is instantiated.<a name="line.84"></a>
-<span class="sourceLineNo">085</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.85"></a>
-<span class="sourceLineNo">086</span>   * @param endpoint - the base endpoint for replication<a name="line.86"></a>
-<span class="sourceLineNo">087</span>   * @return the endpoint to use during replication.<a name="line.87"></a>
-<span class="sourceLineNo">088</span>   */<a name="line.88"></a>
-<span class="sourceLineNo">089</span>  default ReplicationEndpoint postCreateReplicationEndPoint(<a name="line.89"></a>
-<span class="sourceLineNo">090</span>      ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx, ReplicationEndpoint endpoint) {<a name="line.90"></a>
-<span class="sourceLineNo">091</span>    return endpoint;<a name="line.91"></a>
-<span class="sourceLineNo">092</span>  }<a name="line.92"></a>
-<span class="sourceLineNo">093</span><a name="line.93"></a>
-<span class="sourceLineNo">094</span>  /**<a name="line.94"></a>
-<span class="sourceLineNo">095</span>   * This will be called before executing replication request to shipping log entries.<a name="line.95"></a>
-<span class="sourceLineNo">096</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.96"></a>
-<span class="sourceLineNo">097</span>   * @param entries list of WALEntries to replicate<a name="line.97"></a>
-<span class="sourceLineNo">098</span>   * @param cells Cells that the WALEntries refer to (if cells is non-null)<a name="line.98"></a>
-<span class="sourceLineNo">099</span>   */<a name="line.99"></a>
-<span class="sourceLineNo">100</span>  default void preReplicateLogEntries(final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx,<a name="line.100"></a>
-<span class="sourceLineNo">101</span>      List&lt;WALEntry&gt; entries, CellScanner cells) throws IOException {}<a name="line.101"></a>
+<span class="sourceLineNo">022</span><a name="line.22"></a>
+<span class="sourceLineNo">023</span>import org.apache.hadoop.hbase.Coprocessor;<a name="line.23"></a>
+<span class="sourceLineNo">024</span>import org.apache.hadoop.hbase.HBaseInterfaceAudience;<a name="line.24"></a>
+<span class="sourceLineNo">025</span>import org.apache.hadoop.hbase.replication.ReplicationEndpoint;<a name="line.25"></a>
+<span class="sourceLineNo">026</span>import org.apache.yetus.audience.InterfaceAudience;<a name="line.26"></a>
+<span class="sourceLineNo">027</span>import org.apache.yetus.audience.InterfaceStability;<a name="line.27"></a>
+<span class="sourceLineNo">028</span><a name="line.28"></a>
+<span class="sourceLineNo">029</span>/**<a name="line.29"></a>
+<span class="sourceLineNo">030</span> * Defines coprocessor hooks for interacting with operations on the<a name="line.30"></a>
+<span class="sourceLineNo">031</span> * {@link org.apache.hadoop.hbase.regionserver.HRegionServer} process.<a name="line.31"></a>
+<span class="sourceLineNo">032</span> *<a name="line.32"></a>
+<span class="sourceLineNo">033</span> * Since most implementations will be interested in only a subset of hooks, this class uses<a name="line.33"></a>
+<span class="sourceLineNo">034</span> * 'default' functions to avoid having to add unnecessary overrides. When the functions are<a name="line.34"></a>
+<span class="sourceLineNo">035</span> * non-empty, it's simply to satisfy the compiler by returning value of expected (non-void) type.<a name="line.35"></a>
+<span class="sourceLineNo">036</span> * It is done in a way that these default definitions act as no-op. So our suggestion to<a name="line.36"></a>
+<span class="sourceLineNo">037</span> * implementation would be to not call these 'default' methods from overrides.<a name="line.37"></a>
+<span class="sourceLineNo">038</span> * &lt;br&gt;&lt;br&gt;<a name="line.38"></a>
+<span class="sourceLineNo">039</span> *<a name="line.39"></a>
+<span class="sourceLineNo">040</span> * &lt;h3&gt;Exception Handling&lt;/h3&gt;<a name="line.40"></a>
+<span class="sourceLineNo">041</span> * For all functions, exception handling is done as follows:<a name="line.41"></a>
+<span class="sourceLineNo">042</span> * &lt;ul&gt;<a name="line.42"></a>
+<span class="sourceLineNo">043</span> *   &lt;li&gt;Exceptions of type {@link IOException} are reported back to client.&lt;/li&gt;<a name="line.43"></a>
+<span class="sourceLineNo">044</span> *   &lt;li&gt;For any other kind of exception:<a name="line.44"></a>
+<span class="sourceLineNo">045</span> *     &lt;ul&gt;<a name="line.45"></a>
+<span class="sourceLineNo">046</span> *       &lt;li&gt;If the configuration {@link CoprocessorHost#ABORT_ON_ERROR_KEY} is set to true, then<a name="line.46"></a>
+<span class="sourceLineNo">047</span> *         the server aborts.&lt;/li&gt;<a name="line.47"></a>
+<span class="sourceLineNo">048</span> *       &lt;li&gt;Otherwise, coprocessor is removed from the server and<a name="line.48"></a>
+<span class="sourceLineNo">049</span> *         {@link org.apache.hadoop.hbase.DoNotRetryIOException} is returned to the client.&lt;/li&gt;<a name="line.49"></a>
+<span class="sourceLineNo">050</span> *     &lt;/ul&gt;<a name="line.50"></a>
+<span class="sourceLineNo">051</span> *   &lt;/li&gt;<a name="line.51"></a>
+<span class="sourceLineNo">052</span> * &lt;/ul&gt;<a name="line.52"></a>
+<span class="sourceLineNo">053</span> */<a name="line.53"></a>
+<span class="sourceLineNo">054</span>@InterfaceAudience.LimitedPrivate(HBaseInterfaceAudience.COPROC)<a name="line.54"></a>
+<span class="sourceLineNo">055</span>@InterfaceStability.Evolving<a name="line.55"></a>
+<span class="sourceLineNo">056</span>public interface RegionServerObserver extends Coprocessor {<a name="line.56"></a>
+<span class="sourceLineNo">057</span>  /**<a name="line.57"></a>
+<span class="sourceLineNo">058</span>   * Called before stopping region server.<a name="line.58"></a>
+<span class="sourceLineNo">059</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.59"></a>
+<span class="sourceLineNo">060</span>   */<a name="line.60"></a>
+<span class="sourceLineNo">061</span>  default void preStopRegionServer(<a name="line.61"></a>
+<span class="sourceLineNo">062</span>    final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx) throws IOException {}<a name="line.62"></a>
+<span class="sourceLineNo">063</span><a name="line.63"></a>
+<span class="sourceLineNo">064</span>  /**<a name="line.64"></a>
+<span class="sourceLineNo">065</span>   * This will be called before executing user request to roll a region server WAL.<a name="line.65"></a>
+<span class="sourceLineNo">066</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.66"></a>
+<span class="sourceLineNo">067</span>   */<a name="line.67"></a>
+<span class="sourceLineNo">068</span>  default void preRollWALWriterRequest(<a name="line.68"></a>
+<span class="sourceLineNo">069</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.69"></a>
+<span class="sourceLineNo">070</span>      throws IOException {}<a name="line.70"></a>
+<span class="sourceLineNo">071</span><a name="line.71"></a>
+<span class="sourceLineNo">072</span>  /**<a name="line.72"></a>
+<span class="sourceLineNo">073</span>   * This will be called after executing user request to roll a region server WAL.<a name="line.73"></a>
+<span class="sourceLineNo">074</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.74"></a>
+<span class="sourceLineNo">075</span>   */<a name="line.75"></a>
+<span class="sourceLineNo">076</span>  default void postRollWALWriterRequest(<a name="line.76"></a>
+<span class="sourceLineNo">077</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.77"></a>
+<span class="sourceLineNo">078</span>      throws IOException {}<a name="line.78"></a>
+<span class="sourceLineNo">079</span><a name="line.79"></a>
+<span class="sourceLineNo">080</span>  /**<a name="line.80"></a>
+<span class="sourceLineNo">081</span>   * This will be called after the replication endpoint is instantiated.<a name="line.81"></a>
+<span class="sourceLineNo">082</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.82"></a>
+<span class="sourceLineNo">083</span>   * @param endpoint - the base endpoint for replication<a name="line.83"></a>
+<span class="sourceLineNo">084</span>   * @return the endpoint to use during replication.<a name="line.84"></a>
+<span class="sourceLineNo">085</span>   */<a name="line.85"></a>
+<span class="sourceLineNo">086</span>  default ReplicationEndpoint postCreateReplicationEndPoint(<a name="line.86"></a>
+<span class="sourceLineNo">087</span>      ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx, ReplicationEndpoint endpoint) {<a name="line.87"></a>
+<span class="sourceLineNo">088</span>    return endpoint;<a name="line.88"></a>
+<span class="sourceLineNo">089</span>  }<a name="line.89"></a>
+<span class="sourceLineNo">090</span><a name="line.90"></a>
+<span class="sourceLineNo">091</span>  // TODO remove below 2 hooks when we implement AC as a core impl than a CP impl.<a name="line.91"></a>
+<span class="sourceLineNo">092</span>  /**<a name="line.92"></a>
+<span class="sourceLineNo">093</span>   * This will be called before executing replication request to shipping log entries.<a name="line.93"></a>
+<span class="sourceLineNo">094</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.94"></a>
+<span class="sourceLineNo">095</span>   * @deprecated As of release 2.0.0 with out any replacement. This is maintained for internal<a name="line.95"></a>
+<span class="sourceLineNo">096</span>   * usage by AccessController. Do not use these hooks in custom co-processors.<a name="line.96"></a>
+<span class="sourceLineNo">097</span>   */<a name="line.97"></a>
+<span class="sourceLineNo">098</span>  @Deprecated<a name="line.98"></a>
+<span class="sourceLineNo">099</span>  default void preReplicateLogEntries(final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.99"></a>
+<span class="sourceLineNo">100</span>      throws IOException {<a name="line.100"></a>
+<span class="sourceLineNo">101</span>  }<a name="line.101"></a>
 <span class="sourceLineNo">102</span><a name="line.102"></a>
 <span class="sourceLineNo">103</span>  /**<a name="line.103"></a>
 <span class="sourceLineNo">104</span>   * This will be called after executing replication request to shipping log entries.<a name="line.104"></a>
 <span class="sourceLineNo">105</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.105"></a>
-<span class="sourceLineNo">106</span>   * @param entries list of WALEntries to replicate<a name="line.106"></a>
-<span class="sourceLineNo">107</span>   * @param cells Cells that the WALEntries refer to (if cells is non-null)<a name="line.107"></a>
+<span class="sourceLineNo">106</span>   * @deprecated As of release 2.0.0 with out any replacement. This is maintained for internal<a name="line.106"></a>
+<span class="sourceLineNo">107</span>   * usage by AccessController. Do not use these hooks in custom co-processors.<a name="line.107"></a>
 <span class="sourceLineNo">108</span>   */<a name="line.108"></a>
-<span class="sourceLineNo">109</span>  default void postReplicateLogEntries(<a name="line.109"></a>
-<span class="sourceLineNo">110</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx,<a name="line.110"></a>
-<span class="sourceLineNo">111</span>      List&lt;WALEntry&gt; entries, CellScanner cells) throws IOException {}<a name="line.111"></a>
-<span class="sourceLineNo">112</span><a name="line.112"></a>
-<span class="sourceLineNo">113</span>  /**<a name="line.113"></a>
-<span class="sourceLineNo">114</span>   * This will be called before clearing compaction queues<a name="line.114"></a>
-<span class="sourceLineNo">115</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.115"></a>
-<span class="sourceLineNo">116</span>   */<a name="line.116"></a>
-<span class="sourceLineNo">117</span>  default void preClearCompactionQueues(<a name="line.117"></a>
-<span class="sourceLineNo">118</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.118"></a>
-<span class="sourceLineNo">119</span>      throws IOException {}<a name="line.119"></a>
-<span class="sourceLineNo">120</span><a name="line.120"></a>
-<span class="sourceLineNo">121</span>  /**<a name="line.121"></a>
-<span class="sourceLineNo">122</span>   * This will be called after clearing compaction queues<a name="line.122"></a>
-<span class="sourceLineNo">123</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.123"></a>
-<span class="sourceLineNo">124</span>   */<a name="line.124"></a>
-<span class="sourceLineNo">125</span>  default void postClearCompactionQueues(<a name="line.125"></a>
-<span class="sourceLineNo">126</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.126"></a>
-<span class="sourceLineNo">127</span>      throws IOException {}<a name="line.127"></a>
-<span class="sourceLineNo">128</span>}<a name="line.128"></a>
+<span class="sourceLineNo">109</span>  @Deprecated<a name="line.109"></a>
+<span class="sourceLineNo">110</span>  default void postReplicateLogEntries(<a name="line.110"></a>
+<span class="sourceLineNo">111</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx) throws IOException {<a name="line.111"></a>
+<span class="sourceLineNo">112</span>  }<a name="line.112"></a>
+<span class="sourceLineNo">113</span><a name="line.113"></a>
+<span class="sourceLineNo">114</span>  /**<a name="line.114"></a>
+<span class="sourceLineNo">115</span>   * This will be called before clearing compaction queues<a name="line.115"></a>
+<span class="sourceLineNo">116</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.116"></a>
+<span class="sourceLineNo">117</span>   */<a name="line.117"></a>
+<span class="sourceLineNo">118</span>  default void preClearCompactionQueues(<a name="line.118"></a>
+<span class="sourceLineNo">119</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.119"></a>
+<span class="sourceLineNo">120</span>      throws IOException {}<a name="line.120"></a>
+<span class="sourceLineNo">121</span><a name="line.121"></a>
+<span class="sourceLineNo">122</span>  /**<a name="line.122"></a>
+<span class="sourceLineNo">123</span>   * This will be called after clearing compaction queues<a name="line.123"></a>
+<span class="sourceLineNo">124</span>   * @param ctx the environment to interact with the framework and region server.<a name="line.124"></a>
+<span class="sourceLineNo">125</span>   */<a name="line.125"></a>
+<span class="sourceLineNo">126</span>  default void postClearCompactionQueues(<a name="line.126"></a>
+<span class="sourceLineNo">127</span>      final ObserverContext&lt;RegionServerCoprocessorEnvironment&gt; ctx)<a name="line.127"></a>
+<span class="sourceLineNo">128</span>      throws IOException {}<a name="line.128"></a>
+<span class="sourceLineNo">129</span>}<a name="line.129"></a>
 
 
 


Mime
View raw message