helix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1412308 [33/42] - in /incubator/helix/site-content: ./ apidocs/assets/ apidocs/reference/ apidocs/reference/org/apache/helix/ apidocs/reference/org/apache/helix/alerts/ apidocs/reference/org/apache/helix/controller/ apidocs/reference/org/a...
Date Wed, 21 Nov 2012 21:30:26 GMT
Modified: incubator/helix/site-content/xref/org/apache/helix/alerts/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/alerts/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/alerts/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/alerts/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.alerts</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.alerts</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.pipeline</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.pipeline</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/pipeline/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.pipeline</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.pipeline</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.restlet</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.restlet</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/restlet/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.restlet</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.restlet</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/stages/ExternalViewComputeStage.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/stages/ExternalViewComputeStage.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/stages/ExternalViewComputeStage.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/stages/ExternalViewComputeStage.html Wed Nov 21 21:29:07 2012
@@ -44,96 +44,106 @@
 <a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.monitoring.mbeans.ClusterStatusMonitor;
 <a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.log4j.Logger;
 <a class="jxr_linenumber" name="36" href="#36">36</a>  
-<a class="jxr_linenumber" name="37" href="#37">37</a>  
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/helix/controller/stages/ExternalViewComputeStage.html">ExternalViewComputeStage</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/helix/controller/pipeline/AbstractBaseStage.html">AbstractBaseStage</a>
-<a class="jxr_linenumber" name="39" href="#39">39</a>  {
-<a class="jxr_linenumber" name="40" href="#40">40</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Logger log = Logger.getLogger(ExternalViewComputeStage.<strong class="jxr_keyword">class</strong>);
-<a class="jxr_linenumber" name="41" href="#41">41</a>  
-<a class="jxr_linenumber" name="42" href="#42">42</a>    @Override
-<a class="jxr_linenumber" name="43" href="#43">43</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> process(<a href="../../../../../org/apache/helix/controller/stages/ClusterEvent.html">ClusterEvent</a> event) <strong class="jxr_keyword">throws</strong> Exception
-<a class="jxr_linenumber" name="44" href="#44">44</a>    {
-<a class="jxr_linenumber" name="45" href="#45">45</a>      <strong class="jxr_keyword">long</strong> startTime = System.currentTimeMillis();
-<a class="jxr_linenumber" name="46" href="#46">46</a>      log.info(<span class="jxr_string">"START ExternalViewComputeStage.process()"</span>);
-<a class="jxr_linenumber" name="47" href="#47">47</a>  
-<a class="jxr_linenumber" name="48" href="#48">48</a>      <a href="../../../../../org/apache/helix/HelixManager.html">HelixManager</a> manager = event.getAttribute(<span class="jxr_string">"helixmanager"</span>);
-<a class="jxr_linenumber" name="49" href="#49">49</a>      Map&lt;String, Resource&gt; resourceMap =
-<a class="jxr_linenumber" name="50" href="#50">50</a>          event.getAttribute(AttributeName.RESOURCES.toString());
-<a class="jxr_linenumber" name="51" href="#51">51</a>      <a href="../../../../../org/apache/helix/controller/stages/ClusterDataCache.html">ClusterDataCache</a> cache = event.getAttribute(<span class="jxr_string">"ClusterDataCache"</span>);
-<a class="jxr_linenumber" name="52" href="#52">52</a>  
-<a class="jxr_linenumber" name="53" href="#53">53</a>      <strong class="jxr_keyword">if</strong> (manager == <strong class="jxr_keyword">null</strong> || resourceMap == <strong class="jxr_keyword">null</strong> || cache == <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="54" href="#54">54</a>      {
-<a class="jxr_linenumber" name="55" href="#55">55</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/helix/controller/pipeline/StageException.html">StageException</a>(<span class="jxr_string">"Missing attributes in event:"</span> + event
-<a class="jxr_linenumber" name="56" href="#56">56</a>            + <span class="jxr_string">". Requires ClusterManager|RESOURCES|DataCache"</span>);
-<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>      <a href="../../../../../org/apache/helix/HelixDataAccessor.html">HelixDataAccessor</a> dataAccessor = manager.getHelixDataAccessor();
-<a class="jxr_linenumber" name="60" href="#60">60</a>  
-<a class="jxr_linenumber" name="61" href="#61">61</a>      <a href="../../../../../org/apache/helix/controller/stages/CurrentStateOutput.html">CurrentStateOutput</a> currentStateOutput =
-<a class="jxr_linenumber" name="62" href="#62">62</a>          event.getAttribute(AttributeName.CURRENT_STATE.toString());
-<a class="jxr_linenumber" name="63" href="#63">63</a>  
-<a class="jxr_linenumber" name="64" href="#64">64</a>      List&lt;ExternalView&gt; newExtViews = <strong class="jxr_keyword">new</strong> ArrayList&lt;ExternalView&gt;();
-<a class="jxr_linenumber" name="65" href="#65">65</a>      List&lt;PropertyKey&gt; keys = <strong class="jxr_keyword">new</strong> ArrayList&lt;PropertyKey&gt;();
-<a class="jxr_linenumber" name="66" href="#66">66</a>      
-<a class="jxr_linenumber" name="67" href="#67">67</a>      <strong class="jxr_keyword">for</strong> (String resourceName : resourceMap.keySet())
-<a class="jxr_linenumber" name="68" href="#68">68</a>      {
-<a class="jxr_linenumber" name="69" href="#69">69</a>        <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a> view = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a>(resourceName);
-<a class="jxr_linenumber" name="70" href="#70">70</a>        view.setBucketSize(currentStateOutput.getBucketSize(resourceName));
-<a class="jxr_linenumber" name="71" href="#71">71</a>        
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/helix/controller/stages/ExternalViewComputeStage.html">ExternalViewComputeStage</a> <strong class="jxr_keyword">extends</strong> <a href="../../../../../org/apache/helix/controller/pipeline/AbstractBaseStage.html">AbstractBaseStage</a>
+<a class="jxr_linenumber" name="38" href="#38">38</a>  {
+<a class="jxr_linenumber" name="39" href="#39">39</a>    <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> Logger log = Logger.getLogger(ExternalViewComputeStage.<strong class="jxr_keyword">class</strong>);
+<a class="jxr_linenumber" name="40" href="#40">40</a>  
+<a class="jxr_linenumber" name="41" href="#41">41</a>    @Override
+<a class="jxr_linenumber" name="42" href="#42">42</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> process(<a href="../../../../../org/apache/helix/controller/stages/ClusterEvent.html">ClusterEvent</a> event) <strong class="jxr_keyword">throws</strong> Exception
+<a class="jxr_linenumber" name="43" href="#43">43</a>    {
+<a class="jxr_linenumber" name="44" href="#44">44</a>      <strong class="jxr_keyword">long</strong> startTime = System.currentTimeMillis();
+<a class="jxr_linenumber" name="45" href="#45">45</a>      log.info(<span class="jxr_string">"START ExternalViewComputeStage.process()"</span>);
+<a class="jxr_linenumber" name="46" href="#46">46</a>  
+<a class="jxr_linenumber" name="47" href="#47">47</a>      <a href="../../../../../org/apache/helix/HelixManager.html">HelixManager</a> manager = event.getAttribute(<span class="jxr_string">"helixmanager"</span>);
+<a class="jxr_linenumber" name="48" href="#48">48</a>      Map&lt;String, Resource&gt; resourceMap =
+<a class="jxr_linenumber" name="49" href="#49">49</a>          event.getAttribute(AttributeName.RESOURCES.toString());
+<a class="jxr_linenumber" name="50" href="#50">50</a>      <a href="../../../../../org/apache/helix/controller/stages/ClusterDataCache.html">ClusterDataCache</a> cache = event.getAttribute(<span class="jxr_string">"ClusterDataCache"</span>);
+<a class="jxr_linenumber" name="51" href="#51">51</a>  
+<a class="jxr_linenumber" name="52" href="#52">52</a>      <strong class="jxr_keyword">if</strong> (manager == <strong class="jxr_keyword">null</strong> || resourceMap == <strong class="jxr_keyword">null</strong> || cache == <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="53" href="#53">53</a>      {
+<a class="jxr_linenumber" name="54" href="#54">54</a>        <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/helix/controller/pipeline/StageException.html">StageException</a>(<span class="jxr_string">"Missing attributes in event:"</span> + event
+<a class="jxr_linenumber" name="55" href="#55">55</a>            + <span class="jxr_string">". Requires ClusterManager|RESOURCES|DataCache"</span>);
+<a class="jxr_linenumber" name="56" href="#56">56</a>      }
+<a class="jxr_linenumber" name="57" href="#57">57</a>  
+<a class="jxr_linenumber" name="58" href="#58">58</a>      <a href="../../../../../org/apache/helix/HelixDataAccessor.html">HelixDataAccessor</a> dataAccessor = manager.getHelixDataAccessor();
+<a class="jxr_linenumber" name="59" href="#59">59</a>  
+<a class="jxr_linenumber" name="60" href="#60">60</a>      <a href="../../../../../org/apache/helix/controller/stages/CurrentStateOutput.html">CurrentStateOutput</a> currentStateOutput =
+<a class="jxr_linenumber" name="61" href="#61">61</a>          event.getAttribute(AttributeName.CURRENT_STATE.toString());
+<a class="jxr_linenumber" name="62" href="#62">62</a>  
+<a class="jxr_linenumber" name="63" href="#63">63</a>      List&lt;ExternalView&gt; newExtViews = <strong class="jxr_keyword">new</strong> ArrayList&lt;ExternalView&gt;();
+<a class="jxr_linenumber" name="64" href="#64">64</a>      List&lt;PropertyKey&gt; keys = <strong class="jxr_keyword">new</strong> ArrayList&lt;PropertyKey&gt;();
+<a class="jxr_linenumber" name="65" href="#65">65</a>  
+<a class="jxr_linenumber" name="66" href="#66">66</a>      <strong class="jxr_keyword">for</strong> (String resourceName : resourceMap.keySet())
+<a class="jxr_linenumber" name="67" href="#67">67</a>      {
+<a class="jxr_linenumber" name="68" href="#68">68</a>        <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a> view = <strong class="jxr_keyword">new</strong> <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a>(resourceName);
+<a class="jxr_linenumber" name="69" href="#69">69</a>        <em class="jxr_comment">// view.setBucketSize(currentStateOutput.getBucketSize(resourceName));</em>
+<a class="jxr_linenumber" name="70" href="#70">70</a>        <em class="jxr_comment">// if resource ideal state has bucket size, set it</em>
+<a class="jxr_linenumber" name="71" href="#71">71</a>        <em class="jxr_comment">// otherwise resource has been dropped, use bucket size from current state instead</em>
 <a class="jxr_linenumber" name="72" href="#72">72</a>        <a href="../../../../../org/apache/helix/model/Resource.html">Resource</a> resource = resourceMap.get(resourceName);
-<a class="jxr_linenumber" name="73" href="#73">73</a>        <strong class="jxr_keyword">for</strong> (Partition partition : resource.getPartitions())
+<a class="jxr_linenumber" name="73" href="#73">73</a>        <strong class="jxr_keyword">if</strong> (resource.getBucketSize() &gt; 0)
 <a class="jxr_linenumber" name="74" href="#74">74</a>        {
-<a class="jxr_linenumber" name="75" href="#75">75</a>          Map&lt;String, String&gt; currentStateMap =
-<a class="jxr_linenumber" name="76" href="#76">76</a>              currentStateOutput.getCurrentStateMap(resourceName, partition);
-<a class="jxr_linenumber" name="77" href="#77">77</a>          <strong class="jxr_keyword">if</strong> (currentStateMap != <strong class="jxr_keyword">null</strong> &amp;&amp; currentStateMap.size() &gt; 0)
-<a class="jxr_linenumber" name="78" href="#78">78</a>          {
-<a class="jxr_linenumber" name="79" href="#79">79</a>            <em class="jxr_comment">// Set&lt;String&gt; disabledInstances</em>
-<a class="jxr_linenumber" name="80" href="#80">80</a>            <em class="jxr_comment">// = cache.getDisabledInstancesForResource(resource.toString());</em>
-<a class="jxr_linenumber" name="81" href="#81">81</a>            <strong class="jxr_keyword">for</strong> (String instance : currentStateMap.keySet())
-<a class="jxr_linenumber" name="82" href="#82">82</a>            {
-<a class="jxr_linenumber" name="83" href="#83">83</a>              <em class="jxr_comment">// if (!disabledInstances.contains(instance))</em>
-<a class="jxr_linenumber" name="84" href="#84">84</a>              <em class="jxr_comment">// {</em>
-<a class="jxr_linenumber" name="85" href="#85">85</a>              view.setState(partition.getPartitionName(),
-<a class="jxr_linenumber" name="86" href="#86">86</a>                            instance,
-<a class="jxr_linenumber" name="87" href="#87">87</a>                            currentStateMap.get(instance));
-<a class="jxr_linenumber" name="88" href="#88">88</a>              <em class="jxr_comment">// }</em>
-<a class="jxr_linenumber" name="89" href="#89">89</a>            }
-<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>        <em class="jxr_comment">// Update cluster status monitor mbean</em>
-<a class="jxr_linenumber" name="93" href="#93">93</a>        <a href="../../../../../org/apache/helix/monitoring/mbeans/ClusterStatusMonitor.html">ClusterStatusMonitor</a> clusterStatusMonitor =
-<a class="jxr_linenumber" name="94" href="#94">94</a>            (<a href="../../../../../org/apache/helix/monitoring/mbeans/ClusterStatusMonitor.html">ClusterStatusMonitor</a>) event.getAttribute(<span class="jxr_string">"clusterStatusMonitor"</span>);
-<a class="jxr_linenumber" name="95" href="#95">95</a>        <strong class="jxr_keyword">if</strong> (clusterStatusMonitor != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="96" href="#96">96</a>        {
-<a class="jxr_linenumber" name="97" href="#97">97</a>          clusterStatusMonitor.onExternalViewChange(view,
-<a class="jxr_linenumber" name="98" href="#98">98</a>                                                    cache._idealStateMap.get(view.getResourceName()));
-<a class="jxr_linenumber" name="99" href="#99">99</a>        }
-<a class="jxr_linenumber" name="100" href="#100">100</a>       
-<a class="jxr_linenumber" name="101" href="#101">101</a>       <em class="jxr_comment">// compare the new external view with current one, set only on different</em>
-<a class="jxr_linenumber" name="102" href="#102">102</a>       Map&lt;String, ExternalView&gt; curExtViews =
-<a class="jxr_linenumber" name="103" href="#103">103</a>           dataAccessor.getChildValuesMap(manager.getHelixDataAccessor()
-<a class="jxr_linenumber" name="104" href="#104">104</a>                                              .keyBuilder()
-<a class="jxr_linenumber" name="105" href="#105">105</a>                                              .externalViews());
-<a class="jxr_linenumber" name="106" href="#106">106</a> 
-<a class="jxr_linenumber" name="107" href="#107">107</a>       <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a> curExtView = curExtViews.get(resourceName);
-<a class="jxr_linenumber" name="108" href="#108">108</a>       <strong class="jxr_keyword">if</strong> (curExtView == <strong class="jxr_keyword">null</strong> || !curExtView.getRecord().equals(view.getRecord()))
-<a class="jxr_linenumber" name="109" href="#109">109</a>       {
-<a class="jxr_linenumber" name="110" href="#110">110</a>         keys.add(manager.getHelixDataAccessor().keyBuilder().externalView(resourceName));
-<a class="jxr_linenumber" name="111" href="#111">111</a>         newExtViews.add(view);
-<a class="jxr_linenumber" name="112" href="#112">112</a>         <em class="jxr_comment">// dataAccessor.setProperty(PropertyType.EXTERNALVIEW, view,</em>
-<a class="jxr_linenumber" name="113" href="#113">113</a>         <em class="jxr_comment">// resourceName);</em>
-<a class="jxr_linenumber" name="114" href="#114">114</a>       }
-<a class="jxr_linenumber" name="115" href="#115">115</a>     }
-<a class="jxr_linenumber" name="116" href="#116">116</a> 
-<a class="jxr_linenumber" name="117" href="#117">117</a>     <strong class="jxr_keyword">if</strong> (newExtViews.size() &gt; 0)
-<a class="jxr_linenumber" name="118" href="#118">118</a>     {
-<a class="jxr_linenumber" name="119" href="#119">119</a>       dataAccessor.setChildren(keys, newExtViews);
-<a class="jxr_linenumber" name="120" href="#120">120</a>     }
-<a class="jxr_linenumber" name="121" href="#121">121</a>     
-<a class="jxr_linenumber" name="122" href="#122">122</a>     <strong class="jxr_keyword">long</strong> endTime = System.currentTimeMillis();
-<a class="jxr_linenumber" name="123" href="#123">123</a>     log.info(<span class="jxr_string">"END ExternalViewComputeStage.process(). took: "</span> + (endTime - startTime) + <span class="jxr_string">" ms"</span>);
-<a class="jxr_linenumber" name="124" href="#124">124</a>   }
+<a class="jxr_linenumber" name="75" href="#75">75</a>          view.setBucketSize(resource.getBucketSize());
+<a class="jxr_linenumber" name="76" href="#76">76</a>        }
+<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>        {
+<a class="jxr_linenumber" name="79" href="#79">79</a>          view.setBucketSize(currentStateOutput.getBucketSize(resourceName));
+<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>        <strong class="jxr_keyword">for</strong> (Partition partition : resource.getPartitions())
+<a class="jxr_linenumber" name="83" href="#83">83</a>        {
+<a class="jxr_linenumber" name="84" href="#84">84</a>          Map&lt;String, String&gt; currentStateMap =
+<a class="jxr_linenumber" name="85" href="#85">85</a>              currentStateOutput.getCurrentStateMap(resourceName, partition);
+<a class="jxr_linenumber" name="86" href="#86">86</a>          <strong class="jxr_keyword">if</strong> (currentStateMap != <strong class="jxr_keyword">null</strong> &amp;&amp; currentStateMap.size() &gt; 0)
+<a class="jxr_linenumber" name="87" href="#87">87</a>          {
+<a class="jxr_linenumber" name="88" href="#88">88</a>            <em class="jxr_comment">// Set&lt;String&gt; disabledInstances</em>
+<a class="jxr_linenumber" name="89" href="#89">89</a>            <em class="jxr_comment">// = cache.getDisabledInstancesForResource(resource.toString());</em>
+<a class="jxr_linenumber" name="90" href="#90">90</a>            <strong class="jxr_keyword">for</strong> (String instance : currentStateMap.keySet())
+<a class="jxr_linenumber" name="91" href="#91">91</a>            {
+<a class="jxr_linenumber" name="92" href="#92">92</a>              <em class="jxr_comment">// if (!disabledInstances.contains(instance))</em>
+<a class="jxr_linenumber" name="93" href="#93">93</a>              <em class="jxr_comment">// {</em>
+<a class="jxr_linenumber" name="94" href="#94">94</a>              view.setState(partition.getPartitionName(),
+<a class="jxr_linenumber" name="95" href="#95">95</a>                            instance,
+<a class="jxr_linenumber" name="96" href="#96">96</a>                            currentStateMap.get(instance));
+<a class="jxr_linenumber" name="97" href="#97">97</a>              <em class="jxr_comment">// }</em>
+<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>       }
+<a class="jxr_linenumber" name="101" href="#101">101</a>       <em class="jxr_comment">// Update cluster status monitor mbean</em>
+<a class="jxr_linenumber" name="102" href="#102">102</a>       <a href="../../../../../org/apache/helix/monitoring/mbeans/ClusterStatusMonitor.html">ClusterStatusMonitor</a> clusterStatusMonitor =
+<a class="jxr_linenumber" name="103" href="#103">103</a>           (<a href="../../../../../org/apache/helix/monitoring/mbeans/ClusterStatusMonitor.html">ClusterStatusMonitor</a>) event.getAttribute(<span class="jxr_string">"clusterStatusMonitor"</span>);
+<a class="jxr_linenumber" name="104" href="#104">104</a>       <strong class="jxr_keyword">if</strong> (clusterStatusMonitor != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="105" href="#105">105</a>       {
+<a class="jxr_linenumber" name="106" href="#106">106</a>         clusterStatusMonitor.onExternalViewChange(view,
+<a class="jxr_linenumber" name="107" href="#107">107</a>                                                   cache._idealStateMap.get(view.getResourceName()));
+<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_comment">// compare the new external view with current one, set only on different</em>
+<a class="jxr_linenumber" name="111" href="#111">111</a>       Map&lt;String, ExternalView&gt; curExtViews =
+<a class="jxr_linenumber" name="112" href="#112">112</a>           dataAccessor.getChildValuesMap(manager.getHelixDataAccessor()
+<a class="jxr_linenumber" name="113" href="#113">113</a>                                                 .keyBuilder()
+<a class="jxr_linenumber" name="114" href="#114">114</a>                                                 .externalViews());
+<a class="jxr_linenumber" name="115" href="#115">115</a> 
+<a class="jxr_linenumber" name="116" href="#116">116</a>       <a href="../../../../../org/apache/helix/model/ExternalView.html">ExternalView</a> curExtView = curExtViews.get(resourceName);
+<a class="jxr_linenumber" name="117" href="#117">117</a>       <strong class="jxr_keyword">if</strong> (curExtView == <strong class="jxr_keyword">null</strong> || !curExtView.getRecord().equals(view.getRecord()))
+<a class="jxr_linenumber" name="118" href="#118">118</a>       {
+<a class="jxr_linenumber" name="119" href="#119">119</a>         keys.add(manager.getHelixDataAccessor().keyBuilder().externalView(resourceName));
+<a class="jxr_linenumber" name="120" href="#120">120</a>         newExtViews.add(view);
+<a class="jxr_linenumber" name="121" href="#121">121</a>         <em class="jxr_comment">// dataAccessor.setProperty(PropertyType.EXTERNALVIEW, view,</em>
+<a class="jxr_linenumber" name="122" href="#122">122</a>         <em class="jxr_comment">// resourceName);</em>
+<a class="jxr_linenumber" name="123" href="#123">123</a>       }
+<a class="jxr_linenumber" name="124" href="#124">124</a>     }
 <a class="jxr_linenumber" name="125" href="#125">125</a> 
-<a class="jxr_linenumber" name="126" href="#126">126</a> }
+<a class="jxr_linenumber" name="126" href="#126">126</a>     <strong class="jxr_keyword">if</strong> (newExtViews.size() &gt; 0)
+<a class="jxr_linenumber" name="127" href="#127">127</a>     {
+<a class="jxr_linenumber" name="128" href="#128">128</a>       dataAccessor.setChildren(keys, newExtViews);
+<a class="jxr_linenumber" name="129" href="#129">129</a>     }
+<a class="jxr_linenumber" name="130" href="#130">130</a> 
+<a class="jxr_linenumber" name="131" href="#131">131</a>     <strong class="jxr_keyword">long</strong> endTime = System.currentTimeMillis();
+<a class="jxr_linenumber" name="132" href="#132">132</a>     log.info(<span class="jxr_string">"END ExternalViewComputeStage.process(). took: "</span> + (endTime - startTime)
+<a class="jxr_linenumber" name="133" href="#133">133</a>         + <span class="jxr_string">" ms"</span>);
+<a class="jxr_linenumber" name="134" href="#134">134</a>   }
+<a class="jxr_linenumber" name="135" href="#135">135</a> 
+<a class="jxr_linenumber" name="136" href="#136">136</a> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/stages/HealthDataCache.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/stages/HealthDataCache.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/stages/HealthDataCache.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/stages/HealthDataCache.html Wed Nov 21 21:29:07 2012
@@ -33,116 +33,90 @@
 <a class="jxr_linenumber" name="23" href="#23">23</a>  <strong class="jxr_keyword">import</strong> java.util.HashMap;
 <a class="jxr_linenumber" name="24" href="#24">24</a>  <strong class="jxr_keyword">import</strong> java.util.Map;
 <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.helix.DataAccessor;
-<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.HelixDataAccessor;
-<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.HelixProperty;
-<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyType;
-<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyKey.Builder;
-<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.AlertStatus;
-<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.Alerts;
-<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.HealthStat;
-<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.LiveInstance;
-<a class="jxr_linenumber" name="35" href="#35">35</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.PersistentStats;
+<a class="jxr_linenumber" name="26" href="#26">26</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.HelixDataAccessor;
+<a class="jxr_linenumber" name="27" href="#27">27</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.HelixProperty;
+<a class="jxr_linenumber" name="28" href="#28">28</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyType;
+<a class="jxr_linenumber" name="29" href="#29">29</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.PropertyKey.Builder;
+<a class="jxr_linenumber" name="30" href="#30">30</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.AlertStatus;
+<a class="jxr_linenumber" name="31" href="#31">31</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.Alerts;
+<a class="jxr_linenumber" name="32" href="#32">32</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.HealthStat;
+<a class="jxr_linenumber" name="33" href="#33">33</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.LiveInstance;
+<a class="jxr_linenumber" name="34" href="#34">34</a>  <strong class="jxr_keyword">import</strong> org.apache.helix.model.PersistentStats;
+<a class="jxr_linenumber" name="35" href="#35">35</a>  
 <a class="jxr_linenumber" name="36" href="#36">36</a>  
-<a class="jxr_linenumber" name="37" href="#37">37</a>  
-<a class="jxr_linenumber" name="38" href="#38">38</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/helix/controller/stages/HealthDataCache.html">HealthDataCache</a>
-<a class="jxr_linenumber" name="39" href="#39">39</a>  {
-<a class="jxr_linenumber" name="40" href="#40">40</a>    Map&lt;String, LiveInstance&gt; _liveInstanceMap;
-<a class="jxr_linenumber" name="41" href="#41">41</a>  
-<a class="jxr_linenumber" name="42" href="#42">42</a>    Map&lt;String, Map&lt;String, HealthStat&gt;&gt; _healthStatMap;
-<a class="jxr_linenumber" name="43" href="#43">43</a>    <a href="../../../../../org/apache/helix/model/HealthStat.html">HealthStat</a> _globalStats; <em class="jxr_comment">// DON'T THINK I WILL USE THIS ANYMORE</em>
-<a class="jxr_linenumber" name="44" href="#44">44</a>    <a href="../../../../../org/apache/helix/model/PersistentStats.html">PersistentStats</a> _persistentStats;
-<a class="jxr_linenumber" name="45" href="#45">45</a>    <a href="../../../../../org/apache/helix/model/Alerts.html">Alerts</a> _alerts;
-<a class="jxr_linenumber" name="46" href="#46">46</a>    <a href="../../../../../org/apache/helix/model/AlertStatus.html">AlertStatus</a> _alertStatus;
-<a class="jxr_linenumber" name="47" href="#47">47</a>  
-<a class="jxr_linenumber" name="48" href="#48">48</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> refresh(<a href="../../../../../org/apache/helix/DataAccessor.html">DataAccessor</a> accessor)
-<a class="jxr_linenumber" name="49" href="#49">49</a>    {
-<a class="jxr_linenumber" name="50" href="#50">50</a>      _liveInstanceMap = accessor.getChildValuesMap(LiveInstance.<strong class="jxr_keyword">class</strong>,
-<a class="jxr_linenumber" name="51" href="#51">51</a>          PropertyType.LIVEINSTANCES);
-<a class="jxr_linenumber" name="52" href="#52">52</a>  
-<a class="jxr_linenumber" name="53" href="#53">53</a>      Map&lt;String, Map&lt;String, HealthStat&gt;&gt; hsMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Map&lt;String, HealthStat&gt;&gt;();
-<a class="jxr_linenumber" name="54" href="#54">54</a>  
-<a class="jxr_linenumber" name="55" href="#55">55</a>      <strong class="jxr_keyword">for</strong> (String instanceName : _liveInstanceMap.keySet())
-<a class="jxr_linenumber" name="56" href="#56">56</a>      {
-<a class="jxr_linenumber" name="57" href="#57">57</a>        <em class="jxr_comment">// xxx clearly getting znodes for the instance here...so get the</em>
-<a class="jxr_linenumber" name="58" href="#58">58</a>        <em class="jxr_comment">// timestamp!</em>
-<a class="jxr_linenumber" name="59" href="#59">59</a>  
-<a class="jxr_linenumber" name="60" href="#60">60</a>        hsMap.put(instanceName, accessor.getChildValuesMap(HealthStat.<strong class="jxr_keyword">class</strong>,
-<a class="jxr_linenumber" name="61" href="#61">61</a>            PropertyType.HEALTHREPORT, instanceName));
-<a class="jxr_linenumber" name="62" href="#62">62</a>      }
-<a class="jxr_linenumber" name="63" href="#63">63</a>      _healthStatMap = Collections.unmodifiableMap(hsMap);
-<a class="jxr_linenumber" name="64" href="#64">64</a>      _persistentStats = accessor.getProperty(PersistentStats.<strong class="jxr_keyword">class</strong>,
-<a class="jxr_linenumber" name="65" href="#65">65</a>          PropertyType.PERSISTENTSTATS);
-<a class="jxr_linenumber" name="66" href="#66">66</a>      _alerts = accessor.getProperty(Alerts.<strong class="jxr_keyword">class</strong>, PropertyType.ALERTS);
-<a class="jxr_linenumber" name="67" href="#67">67</a>      _alertStatus = accessor.getProperty(AlertStatus.<strong class="jxr_keyword">class</strong>,
-<a class="jxr_linenumber" name="68" href="#68">68</a>          PropertyType.ALERT_STATUS);
-<a class="jxr_linenumber" name="69" href="#69">69</a>  
-<a class="jxr_linenumber" name="70" href="#70">70</a>      <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
-<a class="jxr_linenumber" name="71" href="#71">71</a>    }
-<a class="jxr_linenumber" name="72" href="#72">72</a>  
-<a class="jxr_linenumber" name="73" href="#73">73</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/HealthStat.html">HealthStat</a> getGlobalStats()
-<a class="jxr_linenumber" name="74" href="#74">74</a>    {
-<a class="jxr_linenumber" name="75" href="#75">75</a>      <strong class="jxr_keyword">return</strong> _globalStats;
-<a class="jxr_linenumber" name="76" href="#76">76</a>    }
-<a class="jxr_linenumber" name="77" href="#77">77</a>  
-<a class="jxr_linenumber" name="78" href="#78">78</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/PersistentStats.html">PersistentStats</a> getPersistentStats()
-<a class="jxr_linenumber" name="79" href="#79">79</a>    {
-<a class="jxr_linenumber" name="80" href="#80">80</a>      <strong class="jxr_keyword">return</strong> _persistentStats;
-<a class="jxr_linenumber" name="81" href="#81">81</a>    }
-<a class="jxr_linenumber" name="82" href="#82">82</a>  
-<a class="jxr_linenumber" name="83" href="#83">83</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/Alerts.html">Alerts</a> getAlerts()
-<a class="jxr_linenumber" name="84" href="#84">84</a>    {
-<a class="jxr_linenumber" name="85" href="#85">85</a>      <strong class="jxr_keyword">return</strong> _alerts;
-<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">public</strong> <a href="../../../../../org/apache/helix/model/AlertStatus.html">AlertStatus</a> getAlertStatus()
-<a class="jxr_linenumber" name="89" href="#89">89</a>    {
-<a class="jxr_linenumber" name="90" href="#90">90</a>      <strong class="jxr_keyword">return</strong> _alertStatus;
-<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>    <strong class="jxr_keyword">public</strong> Map&lt;String, HealthStat&gt; getHealthStats(String instanceName)
-<a class="jxr_linenumber" name="94" href="#94">94</a>    {
-<a class="jxr_linenumber" name="95" href="#95">95</a>      Map&lt;String, HealthStat&gt; map = _healthStatMap.get(instanceName);
-<a class="jxr_linenumber" name="96" href="#96">96</a>      <strong class="jxr_keyword">if</strong> (map != <strong class="jxr_keyword">null</strong>)
-<a class="jxr_linenumber" name="97" href="#97">97</a>      {
-<a class="jxr_linenumber" name="98" href="#98">98</a>        <strong class="jxr_keyword">return</strong> map;
-<a class="jxr_linenumber" name="99" href="#99">99</a>      } <strong class="jxr_keyword">else</strong>
-<a class="jxr_linenumber" name="100" href="#100">100</a>     {
-<a class="jxr_linenumber" name="101" href="#101">101</a>       <strong class="jxr_keyword">return</strong> Collections.emptyMap();
-<a class="jxr_linenumber" name="102" href="#102">102</a>     }
-<a class="jxr_linenumber" name="103" href="#103">103</a>   }
+<a class="jxr_linenumber" name="37" href="#37">37</a>  <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/helix/controller/stages/HealthDataCache.html">HealthDataCache</a>
+<a class="jxr_linenumber" name="38" href="#38">38</a>  {
+<a class="jxr_linenumber" name="39" href="#39">39</a>    Map&lt;String, LiveInstance&gt; _liveInstanceMap;
+<a class="jxr_linenumber" name="40" href="#40">40</a>  
+<a class="jxr_linenumber" name="41" href="#41">41</a>    Map&lt;String, Map&lt;String, HealthStat&gt;&gt; _healthStatMap;
+<a class="jxr_linenumber" name="42" href="#42">42</a>    <a href="../../../../../org/apache/helix/model/HealthStat.html">HealthStat</a> _globalStats; <em class="jxr_comment">// DON'T THINK I WILL USE THIS ANYMORE</em>
+<a class="jxr_linenumber" name="43" href="#43">43</a>    <a href="../../../../../org/apache/helix/model/PersistentStats.html">PersistentStats</a> _persistentStats;
+<a class="jxr_linenumber" name="44" href="#44">44</a>    <a href="../../../../../org/apache/helix/model/Alerts.html">Alerts</a> _alerts;
+<a class="jxr_linenumber" name="45" href="#45">45</a>    <a href="../../../../../org/apache/helix/model/AlertStatus.html">AlertStatus</a> _alertStatus;
+<a class="jxr_linenumber" name="46" href="#46">46</a>  
+<a class="jxr_linenumber" name="47" href="#47">47</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/HealthStat.html">HealthStat</a> getGlobalStats()
+<a class="jxr_linenumber" name="48" href="#48">48</a>    {
+<a class="jxr_linenumber" name="49" href="#49">49</a>      <strong class="jxr_keyword">return</strong> _globalStats;
+<a class="jxr_linenumber" name="50" href="#50">50</a>    }
+<a class="jxr_linenumber" name="51" href="#51">51</a>  
+<a class="jxr_linenumber" name="52" href="#52">52</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/PersistentStats.html">PersistentStats</a> getPersistentStats()
+<a class="jxr_linenumber" name="53" href="#53">53</a>    {
+<a class="jxr_linenumber" name="54" href="#54">54</a>      <strong class="jxr_keyword">return</strong> _persistentStats;
+<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> <a href="../../../../../org/apache/helix/model/Alerts.html">Alerts</a> getAlerts()
+<a class="jxr_linenumber" name="58" href="#58">58</a>    {
+<a class="jxr_linenumber" name="59" href="#59">59</a>      <strong class="jxr_keyword">return</strong> _alerts;
+<a class="jxr_linenumber" name="60" href="#60">60</a>    }
+<a class="jxr_linenumber" name="61" href="#61">61</a>  
+<a class="jxr_linenumber" name="62" href="#62">62</a>    <strong class="jxr_keyword">public</strong> <a href="../../../../../org/apache/helix/model/AlertStatus.html">AlertStatus</a> getAlertStatus()
+<a class="jxr_linenumber" name="63" href="#63">63</a>    {
+<a class="jxr_linenumber" name="64" href="#64">64</a>      <strong class="jxr_keyword">return</strong> _alertStatus;
+<a class="jxr_linenumber" name="65" href="#65">65</a>    }
+<a class="jxr_linenumber" name="66" href="#66">66</a>  
+<a class="jxr_linenumber" name="67" href="#67">67</a>    <strong class="jxr_keyword">public</strong> Map&lt;String, HealthStat&gt; getHealthStats(String instanceName)
+<a class="jxr_linenumber" name="68" href="#68">68</a>    {
+<a class="jxr_linenumber" name="69" href="#69">69</a>      Map&lt;String, HealthStat&gt; map = _healthStatMap.get(instanceName);
+<a class="jxr_linenumber" name="70" href="#70">70</a>      <strong class="jxr_keyword">if</strong> (map != <strong class="jxr_keyword">null</strong>)
+<a class="jxr_linenumber" name="71" href="#71">71</a>      {
+<a class="jxr_linenumber" name="72" href="#72">72</a>        <strong class="jxr_keyword">return</strong> map;
+<a class="jxr_linenumber" name="73" href="#73">73</a>      } <strong class="jxr_keyword">else</strong>
+<a class="jxr_linenumber" name="74" href="#74">74</a>      {
+<a class="jxr_linenumber" name="75" href="#75">75</a>        <strong class="jxr_keyword">return</strong> Collections.emptyMap();
+<a class="jxr_linenumber" name="76" href="#76">76</a>      }
+<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">public</strong> Map&lt;String, LiveInstance&gt; getLiveInstances()
+<a class="jxr_linenumber" name="80" href="#80">80</a>    {
+<a class="jxr_linenumber" name="81" href="#81">81</a>      <strong class="jxr_keyword">return</strong> _liveInstanceMap;
+<a class="jxr_linenumber" name="82" href="#82">82</a>    }
+<a class="jxr_linenumber" name="83" href="#83">83</a>  
+<a class="jxr_linenumber" name="84" href="#84">84</a>    <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> refresh(<a href="../../../../../org/apache/helix/HelixDataAccessor.html">HelixDataAccessor</a> accessor)
+<a class="jxr_linenumber" name="85" href="#85">85</a>    {
+<a class="jxr_linenumber" name="86" href="#86">86</a>      <a href="../../../../../org/apache/helix/PropertyKey.html">Builder</a> keyBuilder = accessor.keyBuilder();
+<a class="jxr_linenumber" name="87" href="#87">87</a>      _liveInstanceMap = accessor.getChildValuesMap(keyBuilder.liveInstances());
+<a class="jxr_linenumber" name="88" href="#88">88</a>  
+<a class="jxr_linenumber" name="89" href="#89">89</a>      Map&lt;String, Map&lt;String, HealthStat&gt;&gt; hsMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Map&lt;String, HealthStat&gt;&gt;();
+<a class="jxr_linenumber" name="90" href="#90">90</a>  
+<a class="jxr_linenumber" name="91" href="#91">91</a>      <strong class="jxr_keyword">for</strong> (String instanceName : _liveInstanceMap.keySet())
+<a class="jxr_linenumber" name="92" href="#92">92</a>      {
+<a class="jxr_linenumber" name="93" href="#93">93</a>        <em class="jxr_comment">// xxx clearly getting znodes for the instance here...so get the</em>
+<a class="jxr_linenumber" name="94" href="#94">94</a>        <em class="jxr_comment">// timestamp!</em>
+<a class="jxr_linenumber" name="95" href="#95">95</a>  
+<a class="jxr_linenumber" name="96" href="#96">96</a>        Map&lt;String, HealthStat&gt; childValuesMap = accessor
+<a class="jxr_linenumber" name="97" href="#97">97</a>            .getChildValuesMap(keyBuilder.healthReports(instanceName));
+<a class="jxr_linenumber" name="98" href="#98">98</a>        hsMap.put(instanceName, childValuesMap);
+<a class="jxr_linenumber" name="99" href="#99">99</a>      }
+<a class="jxr_linenumber" name="100" href="#100">100</a>     _healthStatMap = Collections.unmodifiableMap(hsMap);
+<a class="jxr_linenumber" name="101" href="#101">101</a>     _persistentStats = accessor.getProperty(keyBuilder.persistantStat());
+<a class="jxr_linenumber" name="102" href="#102">102</a>     _alerts = accessor.getProperty(keyBuilder.alerts());
+<a class="jxr_linenumber" name="103" href="#103">103</a>     _alertStatus = accessor.getProperty(keyBuilder.alertStatus());
 <a class="jxr_linenumber" name="104" href="#104">104</a> 
-<a class="jxr_linenumber" name="105" href="#105">105</a>   <strong class="jxr_keyword">public</strong> Map&lt;String, LiveInstance&gt; getLiveInstances()
-<a class="jxr_linenumber" name="106" href="#106">106</a>   {
-<a class="jxr_linenumber" name="107" href="#107">107</a>     <strong class="jxr_keyword">return</strong> _liveInstanceMap;
-<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>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">boolean</strong> refresh(<a href="../../../../../org/apache/helix/HelixDataAccessor.html">HelixDataAccessor</a> accessor)
-<a class="jxr_linenumber" name="111" href="#111">111</a>   {
-<a class="jxr_linenumber" name="112" href="#112">112</a>     <a href="../../../../../org/apache/helix/PropertyKey.html">Builder</a> keyBuilder = accessor.keyBuilder();
-<a class="jxr_linenumber" name="113" href="#113">113</a>     _liveInstanceMap = accessor.getChildValuesMap(keyBuilder.liveInstances());
-<a class="jxr_linenumber" name="114" href="#114">114</a> 
-<a class="jxr_linenumber" name="115" href="#115">115</a>     Map&lt;String, Map&lt;String, HealthStat&gt;&gt; hsMap = <strong class="jxr_keyword">new</strong> HashMap&lt;String, Map&lt;String, HealthStat&gt;&gt;();
-<a class="jxr_linenumber" name="116" href="#116">116</a> 
-<a class="jxr_linenumber" name="117" href="#117">117</a>     <strong class="jxr_keyword">for</strong> (String instanceName : _liveInstanceMap.keySet())
-<a class="jxr_linenumber" name="118" href="#118">118</a>     {
-<a class="jxr_linenumber" name="119" href="#119">119</a>       <em class="jxr_comment">// xxx clearly getting znodes for the instance here...so get the</em>
-<a class="jxr_linenumber" name="120" href="#120">120</a>       <em class="jxr_comment">// timestamp!</em>
-<a class="jxr_linenumber" name="121" href="#121">121</a> 
-<a class="jxr_linenumber" name="122" href="#122">122</a>       Map&lt;String, HealthStat&gt; childValuesMap = accessor
-<a class="jxr_linenumber" name="123" href="#123">123</a>           .getChildValuesMap(keyBuilder.healthReports(instanceName));
-<a class="jxr_linenumber" name="124" href="#124">124</a>       hsMap.put(instanceName, childValuesMap);
-<a class="jxr_linenumber" name="125" href="#125">125</a>     }
-<a class="jxr_linenumber" name="126" href="#126">126</a>     _healthStatMap = Collections.unmodifiableMap(hsMap);
-<a class="jxr_linenumber" name="127" href="#127">127</a>     _persistentStats = accessor.getProperty(keyBuilder.persistantStat());
-<a class="jxr_linenumber" name="128" href="#128">128</a>     _alerts = accessor.getProperty(keyBuilder.alerts());
-<a class="jxr_linenumber" name="129" href="#129">129</a>     _alertStatus = accessor.getProperty(keyBuilder.alertStatus());
-<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> <strong class="jxr_keyword">true</strong>;
-<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> 
-<a class="jxr_linenumber" name="135" href="#135">135</a> }
+<a class="jxr_linenumber" name="105" href="#105">105</a>     <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">true</strong>;
+<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> }
 </pre>
 <hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
 </html>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.stages</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.stages</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/controller/stages/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.stages</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.controller.stages</title>
 		<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/examples/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/examples/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/examples/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/examples/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.examples</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.examples</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/examples/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/examples/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/examples/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/examples/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.examples</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.examples</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.healthcheck</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.healthcheck</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/healthcheck/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.healthcheck</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.healthcheck</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/josql/package-frame.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/josql/package-frame.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/josql/package-frame.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/josql/package-frame.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.josql</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.josql</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>

Modified: incubator/helix/site-content/xref/org/apache/helix/josql/package-summary.html
URL: http://svn.apache.org/viewvc/incubator/helix/site-content/xref/org/apache/helix/josql/package-summary.html?rev=1412308&r1=1412307&r2=1412308&view=diff
==============================================================================
--- incubator/helix/site-content/xref/org/apache/helix/josql/package-summary.html (original)
+++ incubator/helix/site-content/xref/org/apache/helix/josql/package-summary.html Wed Nov 21 21:29:07 2012
@@ -3,7 +3,7 @@
 <html xml:lang="en" lang="en">
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
-		<title>Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.josql</title>
+		<title>Apache Helix 0.6-incubating-SNAPSHOT Reference Package org.apache.helix.josql</title>
 		<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" />
 	</head>
 	<body>



Mime
View raw message