hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [35/51] [partial] hbase-site git commit: HBASE-17121 Undo the building of xref as part of site build; remove xref dirs
Date Fri, 18 Nov 2016 18:56:30 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7b604147/xref-test/org/apache/hadoop/hbase/IntegrationTestingUtility.html
----------------------------------------------------------------------
diff --git a/xref-test/org/apache/hadoop/hbase/IntegrationTestingUtility.html b/xref-test/org/apache/hadoop/hbase/IntegrationTestingUtility.html
deleted file mode 100644
index b97b80a..0000000
--- a/xref-test/org/apache/hadoop/hbase/IntegrationTestingUtility.html
+++ /dev/null
@@ -1,158 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<title>IntegrationTestingUtility xref</title>
-<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
-</head>
-<body>
-<div id="overview"><a href="../../../../../testdevapidocs/org/apache/hadoop/hbase/IntegrationTestingUtility.html">View Javadoc</a></div><pre>
-
-<a class="jxr_linenumber" name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
-<a class="jxr_linenumber" name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
-<a class="jxr_linenumber" name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
-<a class="jxr_linenumber" name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
-<a class="jxr_linenumber" name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
-<a class="jxr_linenumber" name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
-<a class="jxr_linenumber" name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
-<a class="jxr_linenumber" name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
-<a class="jxr_linenumber" name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
-<a class="jxr_linenumber" name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
-<a class="jxr_linenumber" name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
-<a class="jxr_linenumber" name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
-<a class="jxr_linenumber" name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
-<a class="jxr_linenumber" name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="18" href="#18">18</a>  
-<a class="jxr_linenumber" name="19" href="#19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.hadoop.hbase;
-<a class="jxr_linenumber" name="20" href="#20">20</a>  
-<a class="jxr_linenumber" name="21" href="#21">21</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
-<a class="jxr_linenumber" name="22" href="#22">22</a>  
-<a class="jxr_linenumber" name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.conf.Configuration;
-<a class="jxr_linenumber" name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.ReflectionUtils;
-<a class="jxr_linenumber" name="25" href="#25">25</a>  
-<a class="jxr_linenumber" name="26" href="#26">26</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <em class="jxr_javadoccomment"> * Facility for &lt;strong&gt;integration/system&lt;/strong&gt; tests. This extends {@link HBaseTestingUtility}</em>
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <em class="jxr_javadoccomment"> * and adds-in the functionality needed by integration and system tests. This class understands</em>
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <em class="jxr_javadoccomment"> * distributed and pseudo-distributed/local cluster deployments, and abstracts those from the tests</em>
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * in this module.</em>
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <em class="jxr_javadoccomment"> * IntegrationTestingUtility is constructed and used by the integration tests, but the tests</em>
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <em class="jxr_javadoccomment"> * themselves should not assume a particular deployment. They can rely on the methods in this</em>
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <em class="jxr_javadoccomment"> * class and HBaseCluster. Before the testing begins, the test should initialize the cluster by</em>
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <em class="jxr_javadoccomment"> * calling {@link #initializeCluster(int)}.</em>
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * &lt;p&gt;</em>
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> * The cluster that is used defaults to a mini cluster, but it can be forced to use a distributed</em>
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <em class="jxr_javadoccomment"> * cluster by calling {@link #setUseDistributedCluster(Configuration)}. This method is invoked by</em>
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <em class="jxr_javadoccomment"> * test drivers (maven, IntegrationTestsDriver, etc) before initializing the cluster</em>
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <em class="jxr_javadoccomment"> * via {@link #initializeCluster(int)}. Individual tests should not directly call</em>
-<a class="jxr_linenumber" name="41" href="#41">41</a>  <em class="jxr_javadoccomment"> * {@link #setUseDistributedCluster(Configuration)}.</em>
-<a class="jxr_linenumber" name="42" href="#42">42</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="43" href="#43">43</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestingUtility.html">IntegrationTestingUtility</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../org/apache/hadoop/hbase/HBaseTestingUtility.html">HBaseTestingUtility</a> {
-<a class="jxr_linenumber" name="44" href="#44">44</a>  
-<a class="jxr_linenumber" name="45" href="#45">45</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestingUtility.html">IntegrationTestingUtility</a>() {
-<a class="jxr_linenumber" name="46" href="#46">46</a>      <strong class="jxr_keyword">this</strong>(HBaseConfiguration.create());
-<a class="jxr_linenumber" name="47" href="#47">47</a>    }
-<a class="jxr_linenumber" name="48" href="#48">48</a>  
-<a class="jxr_linenumber" name="49" href="#49">49</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestingUtility.html">IntegrationTestingUtility</a>(Configuration conf) {
-<a class="jxr_linenumber" name="50" href="#50">50</a>      <strong class="jxr_keyword">super</strong>(conf);
-<a class="jxr_linenumber" name="51" href="#51">51</a>    }
-<a class="jxr_linenumber" name="52" href="#52">52</a>  
-<a class="jxr_linenumber" name="53" href="#53">53</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="54" href="#54">54</a>  <em class="jxr_javadoccomment">   * Configuration that controls whether this utility assumes a running/deployed cluster.</em>
-<a class="jxr_linenumber" name="55" href="#55">55</a>  <em class="jxr_javadoccomment">   * This is different than "hbase.cluster.distributed" since that parameter indicates whether the</em>
-<a class="jxr_linenumber" name="56" href="#56">56</a>  <em class="jxr_javadoccomment">   * cluster is in an actual distributed environment, while this shows that there is a</em>
-<a class="jxr_linenumber" name="57" href="#57">57</a>  <em class="jxr_javadoccomment">   * deployed (distributed or pseudo-distributed) cluster running, and we do not need to</em>
-<a class="jxr_linenumber" name="58" href="#58">58</a>  <em class="jxr_javadoccomment">   * start a mini-cluster for tests.</em>
-<a class="jxr_linenumber" name="59" href="#59">59</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="60" href="#60">60</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String IS_DISTRIBUTED_CLUSTER = <span class="jxr_string">"hbase.test.cluster.distributed"</span>;
-<a class="jxr_linenumber" name="61" href="#61">61</a>  
-<a class="jxr_linenumber" name="62" href="#62">62</a>    <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Config for pluggable hbase cluster manager */</em>
-<a class="jxr_linenumber" name="63" href="#63">63</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String HBASE_CLUSTER_MANAGER_CLASS = <span class="jxr_string">"hbase.it.clustermanager.class"</span>;
-<a class="jxr_linenumber" name="64" href="#64">64</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Class&lt;? <strong class="jxr_keyword">extends</strong> ClusterManager&gt; DEFAULT_HBASE_CLUSTER_MANAGER_CLASS = 
-<a class="jxr_linenumber" name="65" href="#65">65</a>      HBaseClusterManager.<strong class="jxr_keyword">class</strong>;
-<a class="jxr_linenumber" name="66" href="#66">66</a>    
-<a class="jxr_linenumber" name="67" href="#67">67</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="68" href="#68">68</a>  <em class="jxr_javadoccomment">   * Initializes the state of the cluster. It starts a new in-process mini cluster, OR</em>
-<a class="jxr_linenumber" name="69" href="#69">69</a>  <em class="jxr_javadoccomment">   * if we are given an already deployed distributed cluster it initializes the state.</em>
-<a class="jxr_linenumber" name="70" href="#70">70</a>  <em class="jxr_javadoccomment">   * @param numSlaves Number of slaves to start up if we are booting a mini cluster. Otherwise</em>
-<a class="jxr_linenumber" name="71" href="#71">71</a>  <em class="jxr_javadoccomment">   * we check whether this many nodes are available and throw an exception if not.</em>
-<a class="jxr_linenumber" name="72" href="#72">72</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="73" href="#73">73</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> initializeCluster(<strong class="jxr_keyword">int</strong> numSlaves) <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="74" href="#74">74</a>      <strong class="jxr_keyword">if</strong> (isDistributedCluster()) {
-<a class="jxr_linenumber" name="75" href="#75">75</a>        createDistributedHBaseCluster();
-<a class="jxr_linenumber" name="76" href="#76">76</a>        checkNodeCount(numSlaves);
-<a class="jxr_linenumber" name="77" href="#77">77</a>      } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="78" href="#78">78</a>        startMiniCluster(numSlaves);
-<a class="jxr_linenumber" name="79" href="#79">79</a>      }
-<a class="jxr_linenumber" name="80" href="#80">80</a>    }
-<a class="jxr_linenumber" name="81" href="#81">81</a>  
-<a class="jxr_linenumber" name="82" href="#82">82</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="83" href="#83">83</a>  <em class="jxr_javadoccomment">   * Checks whether we have more than numSlaves nodes. Throws an</em>
-<a class="jxr_linenumber" name="84" href="#84">84</a>  <em class="jxr_javadoccomment">   * exception otherwise.</em>
-<a class="jxr_linenumber" name="85" href="#85">85</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="86" href="#86">86</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> checkNodeCount(<strong class="jxr_keyword">int</strong> numSlaves) <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="87" href="#87">87</a>      <a href="../../../../org/apache/hadoop/hbase/HBaseCluster.html">HBaseCluster</a> cluster = getHBaseClusterInterface();
-<a class="jxr_linenumber" name="88" href="#88">88</a>      <strong class="jxr_keyword">if</strong> (cluster.getClusterStatus().getServers().size() &lt; numSlaves) {
-<a class="jxr_linenumber" name="89" href="#89">89</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> Exception(<span class="jxr_string">"Cluster does not have enough nodes:"</span> + numSlaves);
-<a class="jxr_linenumber" name="90" href="#90">90</a>      }
-<a class="jxr_linenumber" name="91" href="#91">91</a>    }
-<a class="jxr_linenumber" name="92" href="#92">92</a>  
-<a class="jxr_linenumber" name="93" href="#93">93</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="94" href="#94">94</a>  <em class="jxr_javadoccomment">   * Restores the cluster to the initial state if it is a distributed cluster, otherwise, shutdowns the</em>
-<a class="jxr_linenumber" name="95" href="#95">95</a>  <em class="jxr_javadoccomment">   * mini cluster.</em>
-<a class="jxr_linenumber" name="96" href="#96">96</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="97" href="#97">97</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> restoreCluster() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="98" href="#98">98</a>      <strong class="jxr_keyword">if</strong> (isDistributedCluster()) {
-<a class="jxr_linenumber" name="99" href="#99">99</a>        getHBaseClusterInterface().restoreInitialStatus();
-<a class="jxr_linenumber" name="100" href="#100">100</a>     } <strong class="jxr_keyword">else</strong> {
-<a class="jxr_linenumber" name="101" href="#101">101</a>       <strong class="jxr_keyword">try</strong> {
-<a class="jxr_linenumber" name="102" href="#102">102</a>         shutdownMiniCluster();
-<a class="jxr_linenumber" name="103" href="#103">103</a>       } <strong class="jxr_keyword">catch</strong> (Exception e) {
-<a class="jxr_linenumber" name="104" href="#104">104</a>         <em class="jxr_comment">// re-wrap into IOException</em>
-<a class="jxr_linenumber" name="105" href="#105">105</a>         <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IOException(e);
-<a class="jxr_linenumber" name="106" href="#106">106</a>       }
-<a class="jxr_linenumber" name="107" href="#107">107</a>     }
-<a class="jxr_linenumber" name="108" href="#108">108</a>   }
-<a class="jxr_linenumber" name="109" href="#109">109</a> 
-<a class="jxr_linenumber" name="110" href="#110">110</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="111" href="#111">111</a> <em class="jxr_javadoccomment">   * Sets the configuration property to use a distributed cluster for the integration tests. Test drivers</em>
-<a class="jxr_linenumber" name="112" href="#112">112</a> <em class="jxr_javadoccomment">   * should use this to enforce cluster deployment.</em>
-<a class="jxr_linenumber" name="113" href="#113">113</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="114" href="#114">114</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> setUseDistributedCluster(Configuration conf) {
-<a class="jxr_linenumber" name="115" href="#115">115</a>     conf.setBoolean(IS_DISTRIBUTED_CLUSTER, <strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="116" href="#116">116</a>     System.setProperty(IS_DISTRIBUTED_CLUSTER, <span class="jxr_string">"true"</span>);
-<a class="jxr_linenumber" name="117" href="#117">117</a>   }
-<a class="jxr_linenumber" name="118" href="#118">118</a> 
-<a class="jxr_linenumber" name="119" href="#119">119</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="120" href="#120">120</a> <em class="jxr_javadoccomment">   * @return whether we are interacting with a distributed cluster as opposed to and in-process mini</em>
-<a class="jxr_linenumber" name="121" href="#121">121</a> <em class="jxr_javadoccomment">   * cluster or a local cluster.</em>
-<a class="jxr_linenumber" name="122" href="#122">122</a> <em class="jxr_javadoccomment">   * @see IntegrationTestingUtility#setUseDistributedCluster(Configuration)</em>
-<a class="jxr_linenumber" name="123" href="#123">123</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="124" href="#124">124</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isDistributedCluster() {
-<a class="jxr_linenumber" name="125" href="#125">125</a>     Configuration conf = getConfiguration();
-<a class="jxr_linenumber" name="126" href="#126">126</a>     <strong class="jxr_keyword">boolean</strong> isDistributedCluster = false;
-<a class="jxr_linenumber" name="127" href="#127">127</a>     isDistributedCluster = Boolean.parseBoolean(System.getProperty(IS_DISTRIBUTED_CLUSTER, <span class="jxr_string">"false"</span>));
-<a class="jxr_linenumber" name="128" href="#128">128</a>     <strong class="jxr_keyword">if</strong> (!isDistributedCluster) {
-<a class="jxr_linenumber" name="129" href="#129">129</a>       isDistributedCluster = conf.getBoolean(IS_DISTRIBUTED_CLUSTER, false);
-<a class="jxr_linenumber" name="130" href="#130">130</a>     }
-<a class="jxr_linenumber" name="131" href="#131">131</a>     <strong class="jxr_keyword">return</strong> isDistributedCluster;
-<a class="jxr_linenumber" name="132" href="#132">132</a>   }
-<a class="jxr_linenumber" name="133" href="#133">133</a> 
-<a class="jxr_linenumber" name="134" href="#134">134</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> createDistributedHBaseCluster() <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="135" href="#135">135</a>     Configuration conf = getConfiguration();
-<a class="jxr_linenumber" name="136" href="#136">136</a>     Class&lt;? <strong class="jxr_keyword">extends</strong> ClusterManager&gt; clusterManagerClass = conf.getClass(HBASE_CLUSTER_MANAGER_CLASS,
-<a class="jxr_linenumber" name="137" href="#137">137</a>       DEFAULT_HBASE_CLUSTER_MANAGER_CLASS, ClusterManager.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="138" href="#138">138</a>     <a href="../../../../org/apache/hadoop/hbase/ClusterManager.html">ClusterManager</a> clusterManager = ReflectionUtils.newInstance(
-<a class="jxr_linenumber" name="139" href="#139">139</a>       clusterManagerClass, conf);
-<a class="jxr_linenumber" name="140" href="#140">140</a>     setHBaseCluster(<strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/DistributedHBaseCluster.html">DistributedHBaseCluster</a>(conf, clusterManager));
-<a class="jxr_linenumber" name="141" href="#141">141</a>     getHBaseAdmin();
-<a class="jxr_linenumber" name="142" href="#142">142</a>   }
-<a class="jxr_linenumber" name="143" href="#143">143</a> 
-<a class="jxr_linenumber" name="144" href="#144">144</a> }
-</pre>
-<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
-</html>
-

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7b604147/xref-test/org/apache/hadoop/hbase/IntegrationTestsDriver.html
----------------------------------------------------------------------
diff --git a/xref-test/org/apache/hadoop/hbase/IntegrationTestsDriver.html b/xref-test/org/apache/hadoop/hbase/IntegrationTestsDriver.html
deleted file mode 100644
index 410b914..0000000
--- a/xref-test/org/apache/hadoop/hbase/IntegrationTestsDriver.html
+++ /dev/null
@@ -1,129 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<title>IntegrationTestsDriver xref</title>
-<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
-</head>
-<body>
-<div id="overview"><a href="../../../../../testdevapidocs/org/apache/hadoop/hbase/IntegrationTestsDriver.html">View Javadoc</a></div><pre>
-
-<a class="jxr_linenumber" name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
-<a class="jxr_linenumber" name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
-<a class="jxr_linenumber" name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
-<a class="jxr_linenumber" name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
-<a class="jxr_linenumber" name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
-<a class="jxr_linenumber" name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
-<a class="jxr_linenumber" name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
-<a class="jxr_linenumber" name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
-<a class="jxr_linenumber" name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
-<a class="jxr_linenumber" name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
-<a class="jxr_linenumber" name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
-<a class="jxr_linenumber" name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
-<a class="jxr_linenumber" name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
-<a class="jxr_linenumber" name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="18" href="#18">18</a>  
-<a class="jxr_linenumber" name="19" href="#19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.hadoop.hbase;
-<a class="jxr_linenumber" name="20" href="#20">20</a>  
-<a class="jxr_linenumber" name="21" href="#21">21</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
-<a class="jxr_linenumber" name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> java.util.Set;
-<a class="jxr_linenumber" name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> java.util.regex.Pattern;
-<a class="jxr_linenumber" name="24" href="#24">24</a>  
-<a class="jxr_linenumber" name="25" href="#25">25</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.cli.CommandLine;
-<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.Log;
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.commons.logging.LogFactory;
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.testclassification.IntegrationTests;
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.util.AbstractHBaseTool;
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.util.ToolRunner;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.junit.internal.TextListener;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.junit.runner.JUnitCore;
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.junit.runner.Result;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <em class="jxr_javadoccomment"> * This class drives the Integration test suite execution. Executes all</em>
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <em class="jxr_javadoccomment"> * tests having @Category(IntegrationTests.class) annotation against an</em>
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <em class="jxr_javadoccomment"> * already deployed distributed cluster.</em>
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestsDriver</a> <strong class="jxr_keyword">extends</strong> AbstractHBaseTool {
-<a class="jxr_linenumber" name="41" href="#41">41</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SHORT_REGEX_ARG = <span class="jxr_string">"r"</span>;
-<a class="jxr_linenumber" name="42" href="#42">42</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String LONG_REGEX_ARG = <span class="jxr_string">"regex"</span>;
-<a class="jxr_linenumber" name="43" href="#43">43</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Log LOG = LogFactory.getLog(IntegrationTestsDriver.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="44" href="#44">44</a>    <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestFilter</a> intTestFilter = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestFilter</a>();
-<a class="jxr_linenumber" name="45" href="#45">45</a>  
-<a class="jxr_linenumber" name="46" href="#46">46</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> main(String[] args) <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="47" href="#47">47</a>      <strong class="jxr_keyword">int</strong> ret = ToolRunner.run(<strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestsDriver</a>(), args);
-<a class="jxr_linenumber" name="48" href="#48">48</a>      System.exit(ret);
-<a class="jxr_linenumber" name="49" href="#49">49</a>    }
-<a class="jxr_linenumber" name="50" href="#50">50</a>  
-<a class="jxr_linenumber" name="51" href="#51">51</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestFilter</a> <strong class="jxr_keyword">extends</strong> ClassTestFinder.TestClassFilter {
-<a class="jxr_linenumber" name="52" href="#52">52</a>      <strong class="jxr_keyword">private</strong> Pattern testFilterRe = Pattern.compile(<span class="jxr_string">".*&#92;&#92;.IntegrationTest.*"</span>);
-<a class="jxr_linenumber" name="53" href="#53">53</a>      <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/hadoop/hbase/IntegrationTestsDriver.html">IntegrationTestFilter</a>() {
-<a class="jxr_linenumber" name="54" href="#54">54</a>        <strong class="jxr_keyword">super</strong>(IntegrationTests.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="55" href="#55">55</a>      }
-<a class="jxr_linenumber" name="56" href="#56">56</a>  
-<a class="jxr_linenumber" name="57" href="#57">57</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> setPattern(String pattern) {
-<a class="jxr_linenumber" name="58" href="#58">58</a>        testFilterRe = Pattern.compile(pattern);
-<a class="jxr_linenumber" name="59" href="#59">59</a>      }
-<a class="jxr_linenumber" name="60" href="#60">60</a>  
-<a class="jxr_linenumber" name="61" href="#61">61</a>      @Override
-<a class="jxr_linenumber" name="62" href="#62">62</a>      <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> isCandidateClass(Class&lt;?&gt; c) {
-<a class="jxr_linenumber" name="63" href="#63">63</a>        <strong class="jxr_keyword">return</strong> testFilterRe.matcher(c.getName()).find() &amp;&amp;
-<a class="jxr_linenumber" name="64" href="#64">64</a>          <em class="jxr_comment">// Our pattern will match the below NON-IntegrationTest. Rather than</em>
-<a class="jxr_linenumber" name="65" href="#65">65</a>          <em class="jxr_comment">// do exotic regex, just filter it out here</em>
-<a class="jxr_linenumber" name="66" href="#66">66</a>          !c.getName().contains(<span class="jxr_string">"IntegrationTestingUtility"</span>) &amp;&amp;
-<a class="jxr_linenumber" name="67" href="#67">67</a>          <strong class="jxr_keyword">super</strong>.isCandidateClass(c);
-<a class="jxr_linenumber" name="68" href="#68">68</a>      }
-<a class="jxr_linenumber" name="69" href="#69">69</a>    }
-<a class="jxr_linenumber" name="70" href="#70">70</a>  
-<a class="jxr_linenumber" name="71" href="#71">71</a>    @Override
-<a class="jxr_linenumber" name="72" href="#72">72</a>    <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> addOptions() {
-<a class="jxr_linenumber" name="73" href="#73">73</a>      addOptWithArg(SHORT_REGEX_ARG, LONG_REGEX_ARG,
-<a class="jxr_linenumber" name="74" href="#74">74</a>        <span class="jxr_string">"Java regex to use selecting tests to run: e.g. .*TestBig.*"</span> +
-<a class="jxr_linenumber" name="75" href="#75">75</a>        <span class="jxr_string">" will select all tests that include TestBig in their name.  Default: "</span> +
-<a class="jxr_linenumber" name="76" href="#76">76</a>        <span class="jxr_string">".*IntegrationTest.*"</span>);
-<a class="jxr_linenumber" name="77" href="#77">77</a>    }
-<a class="jxr_linenumber" name="78" href="#78">78</a>  
-<a class="jxr_linenumber" name="79" href="#79">79</a>    @Override
-<a class="jxr_linenumber" name="80" href="#80">80</a>    <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">void</strong> processOptions(CommandLine cmd) {
-<a class="jxr_linenumber" name="81" href="#81">81</a>      String testFilterString = cmd.getOptionValue(SHORT_REGEX_ARG, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="82" href="#82">82</a>      <strong class="jxr_keyword">if</strong> (testFilterString != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="83" href="#83">83</a>        intTestFilter.setPattern(testFilterString);
-<a class="jxr_linenumber" name="84" href="#84">84</a>      }
-<a class="jxr_linenumber" name="85" href="#85">85</a>    }
-<a class="jxr_linenumber" name="86" href="#86">86</a>  
-<a class="jxr_linenumber" name="87" href="#87">87</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="88" href="#88">88</a>  <em class="jxr_javadoccomment">   * Returns test classes annotated with @Category(IntegrationTests.class),</em>
-<a class="jxr_linenumber" name="89" href="#89">89</a>  <em class="jxr_javadoccomment">   * according to the filter specific on the command line (if any).</em>
-<a class="jxr_linenumber" name="90" href="#90">90</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="91" href="#91">91</a>    <strong class="jxr_keyword">private</strong> Class&lt;?&gt;[] findIntegrationTestClasses()
-<a class="jxr_linenumber" name="92" href="#92">92</a>      <strong class="jxr_keyword">throws</strong> ClassNotFoundException, LinkageError, IOException {
-<a class="jxr_linenumber" name="93" href="#93">93</a>      ClassTestFinder.TestFileNameFilter nameFilter = <strong class="jxr_keyword">new</strong> ClassTestFinder.TestFileNameFilter();
-<a class="jxr_linenumber" name="94" href="#94">94</a>      <a href="../../../../org/apache/hadoop/hbase/ClassFinder.html">ClassFinder</a> classFinder = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/hadoop/hbase/ClassFinder.html">ClassFinder</a>(nameFilter, nameFilter, intTestFilter);
-<a class="jxr_linenumber" name="95" href="#95">95</a>      Set&lt;Class&lt;?&gt;&gt; classes = classFinder.findClasses(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">return</strong> classes.toArray(<strong class="jxr_keyword">new</strong> Class&lt;?&gt;[classes.size()]);
-<a class="jxr_linenumber" name="97" href="#97">97</a>    }
-<a class="jxr_linenumber" name="98" href="#98">98</a>  
-<a class="jxr_linenumber" name="99" href="#99">99</a>  
-<a class="jxr_linenumber" name="100" href="#100">100</a>   @Override
-<a class="jxr_linenumber" name="101" href="#101">101</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">int</strong> doWork() <strong class="jxr_keyword">throws</strong> Exception {
-<a class="jxr_linenumber" name="102" href="#102">102</a>     <em class="jxr_comment">//this is called from the command line, so we should set to use the distributed cluster</em>
-<a class="jxr_linenumber" name="103" href="#103">103</a>     IntegrationTestingUtility.setUseDistributedCluster(conf);
-<a class="jxr_linenumber" name="104" href="#104">104</a>     Class&lt;?&gt;[] classes = findIntegrationTestClasses();
-<a class="jxr_linenumber" name="105" href="#105">105</a>     LOG.info(<span class="jxr_string">"Found "</span> + classes.length + <span class="jxr_string">" integration tests to run:"</span>);
-<a class="jxr_linenumber" name="106" href="#106">106</a>     <strong class="jxr_keyword">for</strong> (Class&lt;?&gt; aClass : classes) {
-<a class="jxr_linenumber" name="107" href="#107">107</a>       LOG.info(<span class="jxr_string">"  "</span> + aClass);
-<a class="jxr_linenumber" name="108" href="#108">108</a>     }
-<a class="jxr_linenumber" name="109" href="#109">109</a>     JUnitCore junit = <strong class="jxr_keyword">new</strong> JUnitCore();
-<a class="jxr_linenumber" name="110" href="#110">110</a>     junit.addListener(<strong class="jxr_keyword">new</strong> TextListener(System.out));
-<a class="jxr_linenumber" name="111" href="#111">111</a>     Result result = junit.run(classes);
-<a class="jxr_linenumber" name="112" href="#112">112</a> 
-<a class="jxr_linenumber" name="113" href="#113">113</a>     <strong class="jxr_keyword">return</strong> result.wasSuccessful() ? 0 : 1;
-<a class="jxr_linenumber" name="114" href="#114">114</a>   }
-<a class="jxr_linenumber" name="115" href="#115">115</a> }
-</pre>
-<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
-</html>
-

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/7b604147/xref-test/org/apache/hadoop/hbase/MetaMockingUtil.html
----------------------------------------------------------------------
diff --git a/xref-test/org/apache/hadoop/hbase/MetaMockingUtil.html b/xref-test/org/apache/hadoop/hbase/MetaMockingUtil.html
deleted file mode 100644
index 8aabc0d..0000000
--- a/xref-test/org/apache/hadoop/hbase/MetaMockingUtil.html
+++ /dev/null
@@ -1,135 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-<head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-<title>MetaMockingUtil xref</title>
-<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
-</head>
-<body>
-<div id="overview"><a href="../../../../../testdevapidocs/org/apache/hadoop/hbase/MetaMockingUtil.html">View Javadoc</a></div><pre>
-
-<a class="jxr_linenumber" name="1" href="#1">1</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="2" href="#2">2</a>   <em class="jxr_javadoccomment"> * Licensed to the Apache Software Foundation (ASF) under one</em>
-<a class="jxr_linenumber" name="3" href="#3">3</a>   <em class="jxr_javadoccomment"> * or more contributor license agreements.  See the NOTICE file</em>
-<a class="jxr_linenumber" name="4" href="#4">4</a>   <em class="jxr_javadoccomment"> * distributed with this work for additional information</em>
-<a class="jxr_linenumber" name="5" href="#5">5</a>   <em class="jxr_javadoccomment"> * regarding copyright ownership.  The ASF licenses this file</em>
-<a class="jxr_linenumber" name="6" href="#6">6</a>   <em class="jxr_javadoccomment"> * to you under the Apache License, Version 2.0 (the</em>
-<a class="jxr_linenumber" name="7" href="#7">7</a>   <em class="jxr_javadoccomment"> * "License"); you may not use this file except in compliance</em>
-<a class="jxr_linenumber" name="8" href="#8">8</a>   <em class="jxr_javadoccomment"> * with the License.  You may obtain a copy of the License at</em>
-<a class="jxr_linenumber" name="9" href="#9">9</a>   <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="10" href="#10">10</a>  <em class="jxr_javadoccomment"> *     <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
-<a class="jxr_linenumber" name="11" href="#11">11</a>  <em class="jxr_javadoccomment"> *</em>
-<a class="jxr_linenumber" name="12" href="#12">12</a>  <em class="jxr_javadoccomment"> * Unless required by applicable law or agreed to in writing, software</em>
-<a class="jxr_linenumber" name="13" href="#13">13</a>  <em class="jxr_javadoccomment"> * distributed under the License is distributed on an "AS IS" BASIS,</em>
-<a class="jxr_linenumber" name="14" href="#14">14</a>  <em class="jxr_javadoccomment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
-<a class="jxr_linenumber" name="15" href="#15">15</a>  <em class="jxr_javadoccomment"> * See the License for the specific language governing permissions and</em>
-<a class="jxr_linenumber" name="16" href="#16">16</a>  <em class="jxr_javadoccomment"> * limitations under the License.</em>
-<a class="jxr_linenumber" name="17" href="#17">17</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="18" href="#18">18</a>  
-<a class="jxr_linenumber" name="19" href="#19">19</a>  <strong class="jxr_keyword">package</strong> org.apache.hadoop.hbase;
-<a class="jxr_linenumber" name="20" href="#20">20</a>  
-<a class="jxr_linenumber" name="21" href="#21">21</a>  <strong class="jxr_keyword">import</strong> java.io.IOException;
-<a class="jxr_linenumber" name="22" href="#22">22</a>  <strong class="jxr_keyword">import</strong> java.util.ArrayList;
-<a class="jxr_linenumber" name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> java.util.Collections;
-<a class="jxr_linenumber" name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> java.util.List;
-<a class="jxr_linenumber" name="25" href="#25">25</a>  
-<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.client.Result;
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.hadoop.hbase.util.Bytes;
-<a class="jxr_linenumber" name="28" href="#28">28</a>  
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <em class="jxr_javadoccomment"> * Mocking utility for common hbase:meta functionality</em>
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <em class="jxr_javadoccomment"> */</em>
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/hadoop/hbase/MetaMockingUtil.html">MetaMockingUtil</a> {
-<a class="jxr_linenumber" name="33" href="#33">33</a>  
-<a class="jxr_linenumber" name="34" href="#34">34</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <em class="jxr_javadoccomment">   * Returns a Result object constructed from the given region information simulating</em>
-<a class="jxr_linenumber" name="36" href="#36">36</a>  <em class="jxr_javadoccomment">   * a catalog table result.</em>
-<a class="jxr_linenumber" name="37" href="#37">37</a>  <em class="jxr_javadoccomment">   * @param region the HRegionInfo object or null</em>
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <em class="jxr_javadoccomment">   * @return A mocked up Result that fakes a Get on a row in the &lt;code&gt;hbase:meta&lt;/code&gt; table.</em>
-<a class="jxr_linenumber" name="39" href="#39">39</a>  <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="40" href="#40">40</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="41" href="#41">41</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Result getMetaTableRowResult(<strong class="jxr_keyword">final</strong> HRegionInfo region)
-<a class="jxr_linenumber" name="42" href="#42">42</a>        <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="43" href="#43">43</a>      <strong class="jxr_keyword">return</strong> getMetaTableRowResult(region, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="44" href="#44">44</a>    }
-<a class="jxr_linenumber" name="45" href="#45">45</a>  
-<a class="jxr_linenumber" name="46" href="#46">46</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="47" href="#47">47</a>  <em class="jxr_javadoccomment">   * Returns a Result object constructed from the given region information simulating</em>
-<a class="jxr_linenumber" name="48" href="#48">48</a>  <em class="jxr_javadoccomment">   * a catalog table result.</em>
-<a class="jxr_linenumber" name="49" href="#49">49</a>  <em class="jxr_javadoccomment">   * @param region the HRegionInfo object or null</em>
-<a class="jxr_linenumber" name="50" href="#50">50</a>  <em class="jxr_javadoccomment">   * @param sn to use making startcode and server hostname:port in meta or null</em>
-<a class="jxr_linenumber" name="51" href="#51">51</a>  <em class="jxr_javadoccomment">   * @return A mocked up Result that fakes a Get on a row in the &lt;code&gt;hbase:meta&lt;/code&gt; table.</em>
-<a class="jxr_linenumber" name="52" href="#52">52</a>  <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="53" href="#53">53</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="54" href="#54">54</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Result getMetaTableRowResult(<strong class="jxr_keyword">final</strong> HRegionInfo region, <strong class="jxr_keyword">final</strong> ServerName sn)
-<a class="jxr_linenumber" name="55" href="#55">55</a>        <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="56" href="#56">56</a>      <strong class="jxr_keyword">return</strong> getMetaTableRowResult(region, sn, <strong class="jxr_keyword">null</strong>, <strong class="jxr_keyword">null</strong>);
-<a class="jxr_linenumber" name="57" href="#57">57</a>    }
-<a class="jxr_linenumber" name="58" href="#58">58</a>  
-<a class="jxr_linenumber" name="59" href="#59">59</a>    <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="60" href="#60">60</a>  <em class="jxr_javadoccomment">   * Returns a Result object constructed from the given region information simulating</em>
-<a class="jxr_linenumber" name="61" href="#61">61</a>  <em class="jxr_javadoccomment">   * a catalog table result.</em>
-<a class="jxr_linenumber" name="62" href="#62">62</a>  <em class="jxr_javadoccomment">   * @param region the HRegionInfo object or null</em>
-<a class="jxr_linenumber" name="63" href="#63">63</a>  <em class="jxr_javadoccomment">   * @param sn to use making startcode and server hostname:port in meta or null</em>
-<a class="jxr_linenumber" name="64" href="#64">64</a>  <em class="jxr_javadoccomment">   * @param splita daughter region or null</em>
-<a class="jxr_linenumber" name="65" href="#65">65</a>  <em class="jxr_javadoccomment">   * @param splitb  daughter region or null</em>
-<a class="jxr_linenumber" name="66" href="#66">66</a>  <em class="jxr_javadoccomment">   * @return A mocked up Result that fakes a Get on a row in the &lt;code&gt;hbase:meta&lt;/code&gt; table.</em>
-<a class="jxr_linenumber" name="67" href="#67">67</a>  <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="68" href="#68">68</a>  <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="69" href="#69">69</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Result getMetaTableRowResult(HRegionInfo region, <strong class="jxr_keyword">final</strong> ServerName sn,
-<a class="jxr_linenumber" name="70" href="#70">70</a>        HRegionInfo splita, HRegionInfo splitb) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="71" href="#71">71</a>      List&lt;Cell&gt; kvs = <strong class="jxr_keyword">new</strong> ArrayList&lt;Cell&gt;();
-<a class="jxr_linenumber" name="72" href="#72">72</a>      <strong class="jxr_keyword">if</strong> (region != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="73" href="#73">73</a>        kvs.add(<strong class="jxr_keyword">new</strong> KeyValue(
-<a class="jxr_linenumber" name="74" href="#74">74</a>          region.getRegionName(),
-<a class="jxr_linenumber" name="75" href="#75">75</a>          HConstants.CATALOG_FAMILY, HConstants.REGIONINFO_QUALIFIER,
-<a class="jxr_linenumber" name="76" href="#76">76</a>          region.toByteArray()));
-<a class="jxr_linenumber" name="77" href="#77">77</a>      }
-<a class="jxr_linenumber" name="78" href="#78">78</a>  
-<a class="jxr_linenumber" name="79" href="#79">79</a>      <strong class="jxr_keyword">if</strong> (sn != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="80" href="#80">80</a>        kvs.add(<strong class="jxr_keyword">new</strong> KeyValue(region.getRegionName(),
-<a class="jxr_linenumber" name="81" href="#81">81</a>          HConstants.CATALOG_FAMILY, HConstants.SERVER_QUALIFIER,
-<a class="jxr_linenumber" name="82" href="#82">82</a>          Bytes.toBytes(sn.getHostAndPort())));
-<a class="jxr_linenumber" name="83" href="#83">83</a>        kvs.add(<strong class="jxr_keyword">new</strong> KeyValue(region.getRegionName(),
-<a class="jxr_linenumber" name="84" href="#84">84</a>          HConstants.CATALOG_FAMILY, HConstants.STARTCODE_QUALIFIER,
-<a class="jxr_linenumber" name="85" href="#85">85</a>          Bytes.toBytes(sn.getStartcode())));
-<a class="jxr_linenumber" name="86" href="#86">86</a>      }
-<a class="jxr_linenumber" name="87" href="#87">87</a>  
-<a class="jxr_linenumber" name="88" href="#88">88</a>      <strong class="jxr_keyword">if</strong> (splita != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="89" href="#89">89</a>        kvs.add(<strong class="jxr_keyword">new</strong> KeyValue(
-<a class="jxr_linenumber" name="90" href="#90">90</a>            region.getRegionName(),
-<a class="jxr_linenumber" name="91" href="#91">91</a>            HConstants.CATALOG_FAMILY, HConstants.SPLITA_QUALIFIER,
-<a class="jxr_linenumber" name="92" href="#92">92</a>            splita.toByteArray()));
-<a class="jxr_linenumber" name="93" href="#93">93</a>      }
-<a class="jxr_linenumber" name="94" href="#94">94</a>  
-<a class="jxr_linenumber" name="95" href="#95">95</a>      <strong class="jxr_keyword">if</strong> (splitb != <strong class="jxr_keyword">null</strong>) {
-<a class="jxr_linenumber" name="96" href="#96">96</a>        kvs.add(<strong class="jxr_keyword">new</strong> KeyValue(
-<a class="jxr_linenumber" name="97" href="#97">97</a>            region.getRegionName(),
-<a class="jxr_linenumber" name="98" href="#98">98</a>            HConstants.CATALOG_FAMILY, HConstants.SPLITB_QUALIFIER,
-<a class="jxr_linenumber" name="99" href="#99">99</a>            splitb.toByteArray()));
-<a class="jxr_linenumber" name="100" href="#100">100</a>     }
-<a class="jxr_linenumber" name="101" href="#101">101</a> 
-<a class="jxr_linenumber" name="102" href="#102">102</a>     <em class="jxr_comment">//important: sort the kvs so that binary search work</em>
-<a class="jxr_linenumber" name="103" href="#103">103</a>     Collections.sort(kvs, CellComparator.META_COMPARATOR);
-<a class="jxr_linenumber" name="104" href="#104">104</a> 
-<a class="jxr_linenumber" name="105" href="#105">105</a>     <strong class="jxr_keyword">return</strong> Result.create(kvs);
-<a class="jxr_linenumber" name="106" href="#106">106</a>   }
-<a class="jxr_linenumber" name="107" href="#107">107</a> 
-<a class="jxr_linenumber" name="108" href="#108">108</a>   <em class="jxr_javadoccomment">/**</em>
-<a class="jxr_linenumber" name="109" href="#109">109</a> <em class="jxr_javadoccomment">   * @param sn  ServerName to use making startcode and server in meta</em>
-<a class="jxr_linenumber" name="110" href="#110">110</a> <em class="jxr_javadoccomment">   * @param hri Region to serialize into HRegionInfo</em>
-<a class="jxr_linenumber" name="111" href="#111">111</a> <em class="jxr_javadoccomment">   * @return A mocked up Result that fakes a Get on a row in the &lt;code&gt;hbase:meta&lt;/code&gt; table.</em>
-<a class="jxr_linenumber" name="112" href="#112">112</a> <em class="jxr_javadoccomment">   * @throws IOException</em>
-<a class="jxr_linenumber" name="113" href="#113">113</a> <em class="jxr_javadoccomment">   */</em>
-<a class="jxr_linenumber" name="114" href="#114">114</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> Result getMetaTableRowResultAsSplitRegion(<strong class="jxr_keyword">final</strong> HRegionInfo hri,
-<a class="jxr_linenumber" name="115" href="#115">115</a>       <strong class="jxr_keyword">final</strong> ServerName sn) <strong class="jxr_keyword">throws</strong> IOException {
-<a class="jxr_linenumber" name="116" href="#116">116</a>     hri.setOffline(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="117" href="#117">117</a>     hri.setSplit(<strong class="jxr_keyword">true</strong>);
-<a class="jxr_linenumber" name="118" href="#118">118</a>     <strong class="jxr_keyword">return</strong> getMetaTableRowResult(hri, sn);
-<a class="jxr_linenumber" name="119" href="#119">119</a>   }
-<a class="jxr_linenumber" name="120" href="#120">120</a> 
-<a class="jxr_linenumber" name="121" href="#121">121</a> }
-</pre>
-<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
-</html>
-


Mime
View raw message