giraph-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ekoo...@apache.org
Subject svn commit: r1373684 [31/35] - in /giraph/site: ./ apidocs/ apidocs/org/apache/giraph/ apidocs/org/apache/giraph/benchmark/ apidocs/org/apache/giraph/benchmark/class-use/ apidocs/org/apache/giraph/bsp/ apidocs/org/apache/giraph/bsp/class-use/ apidocs/o...
Date Thu, 16 Aug 2012 01:32:58 GMT
Modified: giraph/site/xref/org/apache/giraph/graph/BspService.html
URL: http://svn.apache.org/viewvc/giraph/site/xref/org/apache/giraph/graph/BspService.html?rev=1373684&r1=1373683&r2=1373684&view=diff
==============================================================================
--- giraph/site/xref/org/apache/giraph/graph/BspService.html (original)
+++ giraph/site/xref/org/apache/giraph/graph/BspService.html Thu Aug 16 01:32:41 2012
@@ -113,1015 +113,1032 @@
 <a name="103" href="#103">103</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_HEALTHY_DIR = <span class="jxr_string">"/_workerHealthyDir"</span>;
 <a name="104" href="#104">104</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Unhealthy workers register here. */</em>
 <a name="105" href="#105">105</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_UNHEALTHY_DIR = <span class="jxr_string">"/_workerUnhealthyDir"</span>;
-<a name="106" href="#106">106</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Finished workers notify here */</em>
-<a name="107" href="#107">107</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_FINISHED_DIR = <span class="jxr_string">"/_workerFinishedDir"</span>;
-<a name="108" href="#108">108</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Where the partition assignments are set */</em>
-<a name="109" href="#109">109</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PARTITION_ASSIGNMENTS_DIR =
-<a name="110" href="#110">110</a>       <span class="jxr_string">"/_partitionAssignments"</span>;
-<a name="111" href="#111">111</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Helps coordinate the partition exchnages */</em>
-<a name="112" href="#112">112</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PARTITION_EXCHANGE_DIR =
-<a name="113" href="#113">113</a>       <span class="jxr_string">"/_partitionExchangeDir"</span>;
-<a name="114" href="#114">114</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Denotes that the superstep is done */</em>
-<a name="115" href="#115">115</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SUPERSTEP_FINISHED_NODE = <span class="jxr_string">"/_superstepFinished"</span>;
-<a name="116" href="#116">116</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Denotes which workers have been cleaned up */</em>
-<a name="117" href="#117">117</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CLEANED_UP_DIR = <span class="jxr_string">"/_cleanedUpDir"</span>;
-<a name="118" href="#118">118</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON aggregator value array key */</em>
-<a name="119" href="#119">119</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_AGGREGATOR_VALUE_ARRAY_KEY =
-<a name="120" href="#120">120</a>       <span class="jxr_string">"_aggregatorValueArrayKey"</span>;
-<a name="121" href="#121">121</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON partition stats key */</em>
-<a name="122" href="#122">122</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PARTITION_STATS_KEY =
-<a name="123" href="#123">123</a>       <span class="jxr_string">"_partitionStatsKey"</span>;
-<a name="124" href="#124">124</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON finished vertices key */</em>
-<a name="125" href="#125">125</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_FINISHED_VERTICES_KEY =
-<a name="126" href="#126">126</a>       <span class="jxr_string">"_verticesFinishedKey"</span>;
-<a name="127" href="#127">127</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON vertex count key */</em>
-<a name="128" href="#128">128</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_VERTICES_KEY = <span class="jxr_string">"_numVerticesKey"</span>;
-<a name="129" href="#129">129</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON edge count key */</em>
-<a name="130" href="#130">130</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_EDGES_KEY = <span class="jxr_string">"_numEdgesKey"</span>;
-<a name="131" href="#131">131</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON message count key */</em>
-<a name="132" href="#132">132</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_MESSAGES_KEY = <span class="jxr_string">"_numMsgsKey"</span>;
-<a name="133" href="#133">133</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON hostname id key */</em>
-<a name="134" href="#134">134</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_HOSTNAME_ID_KEY = <span class="jxr_string">"_hostnameIdKey"</span>;
-<a name="135" href="#135">135</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON max vertex index key */</em>
-<a name="136" href="#136">136</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_MAX_VERTEX_INDEX_KEY =
-<a name="137" href="#137">137</a>       <span class="jxr_string">"_maxVertexIndexKey"</span>;
-<a name="138" href="#138">138</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON hostname key */</em>
-<a name="139" href="#139">139</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_HOSTNAME_KEY = <span class="jxr_string">"_hostnameKey"</span>;
-<a name="140" href="#140">140</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON port key */</em>
-<a name="141" href="#141">141</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PORT_KEY = <span class="jxr_string">"_portKey"</span>;
-<a name="142" href="#142">142</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON checkpoint file prefix key */</em>
-<a name="143" href="#143">143</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_CHECKPOINT_FILE_PREFIX_KEY =
-<a name="144" href="#144">144</a>       <span class="jxr_string">"_checkpointFilePrefixKey"</span>;
-<a name="145" href="#145">145</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON previous hostname key */</em>
-<a name="146" href="#146">146</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PREVIOUS_HOSTNAME_KEY =
-<a name="147" href="#147">147</a>       <span class="jxr_string">"_previousHostnameKey"</span>;
-<a name="148" href="#148">148</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON previous port key */</em>
-<a name="149" href="#149">149</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PREVIOUS_PORT_KEY = <span class="jxr_string">"_previousPortKey"</span>;
-<a name="150" href="#150">150</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON state key */</em>
-<a name="151" href="#151">151</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_STATE_KEY = <span class="jxr_string">"_stateKey"</span>;
-<a name="152" href="#152">152</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON application attempt key */</em>
-<a name="153" href="#153">153</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_APPLICATION_ATTEMPT_KEY =
-<a name="154" href="#154">154</a>       <span class="jxr_string">"_applicationAttemptKey"</span>;
-<a name="155" href="#155">155</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON superstep key */</em>
-<a name="156" href="#156">156</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_SUPERSTEP_KEY =
-<a name="157" href="#157">157</a>       <span class="jxr_string">"_superstepKey"</span>;
-<a name="158" href="#158">158</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> name key */</em>
-<a name="159" href="#159">159</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_NAME_KEY = <span class="jxr_string">"_aggregatorNameKey"</span>;
-<a name="160" href="#160">160</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> class name key */</em>
-<a name="161" href="#161">161</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_CLASS_NAME_KEY =
-<a name="162" href="#162">162</a>       <span class="jxr_string">"_aggregatorClassNameKey"</span>;
-<a name="163" href="#163">163</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> value key */</em>
-<a name="164" href="#164">164</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_VALUE_KEY = <span class="jxr_string">"_aggregatorValueKey"</span>;
-<a name="165" href="#165">165</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Suffix denotes a worker */</em>
-<a name="166" href="#166">166</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_SUFFIX = <span class="jxr_string">"_worker"</span>;
-<a name="167" href="#167">167</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Suffix denotes a master */</em>
-<a name="168" href="#168">168</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String MASTER_SUFFIX = <span class="jxr_string">"_master"</span>;
-<a name="169" href="#169">169</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> If at the end of a checkpoint file, indicates metadata */</em>
-<a name="170" href="#170">170</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_METADATA_POSTFIX = <span class="jxr_string">".metadata"</span>;
-<a name="171" href="#171">171</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="172" href="#172">172</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates vertices, edges,</em>
-<a name="173" href="#173">173</a> <em class="jxr_javadoccomment">   * messages, etc.</em>
-<a name="174" href="#174">174</a> <em class="jxr_javadoccomment">   */</em>
-<a name="175" href="#175">175</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_VERTICES_POSTFIX = <span class="jxr_string">".vertices"</span>;
-<a name="176" href="#176">176</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="177" href="#177">177</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates metadata and data is valid</em>
-<a name="178" href="#178">178</a> <em class="jxr_javadoccomment">   * for the same filenames without .valid</em>
-<a name="179" href="#179">179</a> <em class="jxr_javadoccomment">   */</em>
-<a name="180" href="#180">180</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_VALID_POSTFIX = <span class="jxr_string">".valid"</span>;
-<a name="181" href="#181">181</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="182" href="#182">182</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates the stitched checkpoint</em>
-<a name="183" href="#183">183</a> <em class="jxr_javadoccomment">   * file prefixes.  A checkpoint is not valid if this file does not exist.</em>
-<a name="184" href="#184">184</a> <em class="jxr_javadoccomment">   */</em>
-<a name="185" href="#185">185</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_FINALIZED_POSTFIX = <span class="jxr_string">".finalized"</span>;
-<a name="186" href="#186">186</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Class logger */</em>
-<a name="187" href="#187">187</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOG = Logger.getLogger(BspService.<strong class="jxr_keyword">class</strong>);
-<a name="188" href="#188">188</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the job's root */</em>
-<a name="189" href="#189">189</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String basePath;
-<a name="190" href="#190">190</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the job state determined by the master (informative only) */</em>
-<a name="191" href="#191">191</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String masterJobStatePath;
-<a name="192" href="#192">192</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits written by the master */</em>
-<a name="193" href="#193">193</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsPath;
-<a name="194" href="#194">194</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits all ready to be processed by workers */</em>
-<a name="195" href="#195">195</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsAllReadyPath;
-<a name="196" href="#196">196</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits done */</em>
-<a name="197" href="#197">197</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsDonePath;
-<a name="198" href="#198">198</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits all done to notify the workers to proceed */</em>
-<a name="199" href="#199">199</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsAllDonePath;
-<a name="200" href="#200">200</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the application attempts) */</em>
-<a name="201" href="#201">201</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String applicationAttemptsPath;
-<a name="202" href="#202">202</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the cleaned up notifications */</em>
-<a name="203" href="#203">203</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String cleanedUpPath;
-<a name="204" href="#204">204</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the checkpoint's root (including job id) */</em>
-<a name="205" href="#205">205</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String checkpointBasePath;
-<a name="206" href="#206">206</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the master election path */</em>
-<a name="207" href="#207">207</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String masterElectionPath;
-<a name="208" href="#208">208</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Private ZooKeeper instance that implements the service */</em>
-<a name="209" href="#209">209</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/ZooKeeperExt.html">ZooKeeperExt</a> zk;
-<a name="210" href="#210">210</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Has the Connection occurred? */</em>
-<a name="211" href="#211">211</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> connectedEvent;
-<a name="212" href="#212">212</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Has worker registration changed (either healthy or unhealthy) */</em>
-<a name="213" href="#213">213</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> workerHealthRegistrationChanged;
-<a name="214" href="#214">214</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplits are ready for consumption by workers */</em>
-<a name="215" href="#215">215</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsAllReadyChanged;
-<a name="216" href="#216">216</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplit reservation or finished notification and synchronization */</em>
-<a name="217" href="#217">217</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsStateChanged;
-<a name="218" href="#218">218</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplits are done being processed by workers */</em>
-<a name="219" href="#219">219</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsAllDoneChanged;
-<a name="220" href="#220">220</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplit done by a worker finished notification and synchronization */</em>
-<a name="221" href="#221">221</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsDoneStateChanged;
-<a name="222" href="#222">222</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Are the partition assignments to workers ready? */</em>
-<a name="223" href="#223">223</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> partitionAssignmentsReadyChanged;
-<a name="224" href="#224">224</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Application attempt changed */</em>
-<a name="225" href="#225">225</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> applicationAttemptChanged;
-<a name="226" href="#226">226</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Superstep finished synchronization */</em>
-<a name="227" href="#227">227</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> superstepFinished;
-<a name="228" href="#228">228</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Master election changed for any waited on attempt */</em>
-<a name="229" href="#229">229</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> masterElectionChildrenChanged;
-<a name="230" href="#230">230</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cleaned up directory children changed*/</em>
-<a name="231" href="#231">231</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> cleanedUpChildrenChanged;
-<a name="232" href="#232">232</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Registered list of BspEvents */</em>
-<a name="233" href="#233">233</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> List&lt;BspEvent&gt; registeredBspEvents =
-<a name="234" href="#234">234</a>       <strong class="jxr_keyword">new</strong> ArrayList&lt;BspEvent&gt;();
-<a name="235" href="#235">235</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Configuration of the job*/</em>
-<a name="236" href="#236">236</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> Configuration conf;
-<a name="237" href="#237">237</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Job context (mainly for progress) */</em>
-<a name="238" href="#238">238</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> Mapper&lt;?, ?, ?, ?&gt;.Context context;
-<a name="239" href="#239">239</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cached superstep (from ZooKeeper) */</em>
-<a name="240" href="#240">240</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> cachedSuperstep = UNSET_SUPERSTEP;
-<a name="241" href="#241">241</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Restarted from a checkpoint (manual or automatic) */</em>
-<a name="242" href="#242">242</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> restartedSuperstep = UNSET_SUPERSTEP;
-<a name="243" href="#243">243</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cached application attempt (from ZooKeeper) */</em>
-<a name="244" href="#244">244</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> cachedApplicationAttempt = UNSET_APPLICATION_ATTEMPT;
-<a name="245" href="#245">245</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Job id, to ensure uniqueness */</em>
-<a name="246" href="#246">246</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String jobId;
-<a name="247" href="#247">247</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Task partition, to ensure uniqueness */</em>
-<a name="248" href="#248">248</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> taskPartition;
-<a name="249" href="#249">249</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> My hostname */</em>
-<a name="250" href="#250">250</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String hostname;
-<a name="251" href="#251">251</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Combination of hostname '_' partition (unique id) */</em>
-<a name="252" href="#252">252</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String hostnamePartitionId;
-<a name="253" href="#253">253</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Graph partitioner */</em>
-<a name="254" href="#254">254</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> GraphPartitionerFactory&lt;I, V, E, M&gt; graphPartitionerFactory;
-<a name="255" href="#255">255</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Mapper that will do the graph computation */</em>
-<a name="256" href="#256">256</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> GraphMapper&lt;I, V, E, M&gt; graphMapper;
-<a name="257" href="#257">257</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> File system */</em>
-<a name="258" href="#258">258</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> FileSystem fs;
-<a name="259" href="#259">259</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Checkpoint frequency */</em>
-<a name="260" href="#260">260</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> checkpointFrequency;
-<a name="261" href="#261">261</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Map of aggregators */</em>
-<a name="262" href="#262">262</a>   <strong class="jxr_keyword">private</strong> Map&lt;String, AggregatorWrapper&lt;Writable&gt;&gt; aggregatorMap =
-<a name="263" href="#263">263</a>       <strong class="jxr_keyword">new</strong> TreeMap&lt;String, AggregatorWrapper&lt;Writable&gt;&gt;();
-<a name="264" href="#264">264</a> 
-<a name="265" href="#265">265</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="266" href="#266">266</a> <em class="jxr_javadoccomment">   * Constructor.</em>
-<a name="267" href="#267">267</a> <em class="jxr_javadoccomment">   *</em>
-<a name="268" href="#268">268</a> <em class="jxr_javadoccomment">   * @param serverPortList ZooKeeper server port list</em>
-<a name="269" href="#269">269</a> <em class="jxr_javadoccomment">   * @param sessionMsecTimeout ZooKeeper session timeount in milliseconds</em>
-<a name="270" href="#270">270</a> <em class="jxr_javadoccomment">   * @param context Mapper context</em>
-<a name="271" href="#271">271</a> <em class="jxr_javadoccomment">   * @param graphMapper Graph mapper reference</em>
-<a name="272" href="#272">272</a> <em class="jxr_javadoccomment">   */</em>
-<a name="273" href="#273">273</a>   <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/giraph/graph/BspService.html">BspService</a>(String serverPortList,
-<a name="274" href="#274">274</a>       <strong class="jxr_keyword">int</strong> sessionMsecTimeout,
-<a name="275" href="#275">275</a>       Mapper&lt;?, ?, ?, ?&gt;.Context context,
-<a name="276" href="#276">276</a>       GraphMapper&lt;I, V, E, M&gt; graphMapper) {
-<a name="277" href="#277">277</a>     <strong class="jxr_keyword">this</strong>.connectedEvent = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="278" href="#278">278</a>     <strong class="jxr_keyword">this</strong>.workerHealthRegistrationChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="279" href="#279">279</a>     <strong class="jxr_keyword">this</strong>.inputSplitsAllReadyChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="280" href="#280">280</a>     <strong class="jxr_keyword">this</strong>.inputSplitsStateChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="281" href="#281">281</a>     <strong class="jxr_keyword">this</strong>.inputSplitsAllDoneChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="282" href="#282">282</a>     <strong class="jxr_keyword">this</strong>.inputSplitsDoneStateChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="283" href="#283">283</a>     <strong class="jxr_keyword">this</strong>.partitionAssignmentsReadyChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="284" href="#284">284</a>     <strong class="jxr_keyword">this</strong>.applicationAttemptChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="285" href="#285">285</a>     <strong class="jxr_keyword">this</strong>.superstepFinished = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="286" href="#286">286</a>     <strong class="jxr_keyword">this</strong>.masterElectionChildrenChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="287" href="#287">287</a>     <strong class="jxr_keyword">this</strong>.cleanedUpChildrenChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
-<a name="288" href="#288">288</a> 
-<a name="289" href="#289">289</a>     registerBspEvent(connectedEvent);
-<a name="290" href="#290">290</a>     registerBspEvent(workerHealthRegistrationChanged);
-<a name="291" href="#291">291</a>     registerBspEvent(inputSplitsAllReadyChanged);
-<a name="292" href="#292">292</a>     registerBspEvent(inputSplitsStateChanged);
-<a name="293" href="#293">293</a>     registerBspEvent(partitionAssignmentsReadyChanged);
-<a name="294" href="#294">294</a>     registerBspEvent(applicationAttemptChanged);
-<a name="295" href="#295">295</a>     registerBspEvent(superstepFinished);
-<a name="296" href="#296">296</a>     registerBspEvent(masterElectionChildrenChanged);
-<a name="297" href="#297">297</a>     registerBspEvent(cleanedUpChildrenChanged);
-<a name="298" href="#298">298</a> 
-<a name="299" href="#299">299</a>     <strong class="jxr_keyword">this</strong>.context = context;
-<a name="300" href="#300">300</a>     <strong class="jxr_keyword">this</strong>.graphMapper = graphMapper;
-<a name="301" href="#301">301</a>     <strong class="jxr_keyword">this</strong>.conf = context.getConfiguration();
-<a name="302" href="#302">302</a>     <strong class="jxr_keyword">this</strong>.jobId = conf.get(<span class="jxr_string">"mapred.job.id"</span>, <span class="jxr_string">"Unknown Job"</span>);
-<a name="303" href="#303">303</a>     <strong class="jxr_keyword">this</strong>.taskPartition = conf.getInt(<span class="jxr_string">"mapred.task.partition"</span>, -1);
-<a name="304" href="#304">304</a>     <strong class="jxr_keyword">this</strong>.restartedSuperstep = conf.getLong(GiraphJob.RESTART_SUPERSTEP,
-<a name="305" href="#305">305</a>         UNSET_SUPERSTEP);
-<a name="306" href="#306">306</a>     <strong class="jxr_keyword">this</strong>.cachedSuperstep = restartedSuperstep;
-<a name="307" href="#307">307</a>     <strong class="jxr_keyword">if</strong> ((restartedSuperstep != UNSET_SUPERSTEP) &amp;&amp;
-<a name="308" href="#308">308</a>         (restartedSuperstep &lt; 0)) {
-<a name="309" href="#309">309</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(
-<a name="310" href="#310">310</a>           <span class="jxr_string">"BspService: Invalid superstep to restart - "</span> +
-<a name="311" href="#311">311</a>               restartedSuperstep);
-<a name="312" href="#312">312</a>     }
-<a name="313" href="#313">313</a>     <strong class="jxr_keyword">try</strong> {
-<a name="314" href="#314">314</a>       <strong class="jxr_keyword">this</strong>.hostname = InetAddress.getLocalHost().getHostName();
-<a name="315" href="#315">315</a>     } <strong class="jxr_keyword">catch</strong> (UnknownHostException e) {
-<a name="316" href="#316">316</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(e);
-<a name="317" href="#317">317</a>     }
-<a name="318" href="#318">318</a>     <strong class="jxr_keyword">this</strong>.hostnamePartitionId = hostname + <span class="jxr_string">"_"</span> + getTaskPartition();
-<a name="319" href="#319">319</a>     <strong class="jxr_keyword">this</strong>.graphPartitionerFactory =
-<a name="320" href="#320">320</a>         BspUtils.&lt;I, V, E, M&gt;createGraphPartitioner(conf);
-<a name="321" href="#321">321</a> 
-<a name="322" href="#322">322</a>     <strong class="jxr_keyword">this</strong>.checkpointFrequency =
-<a name="323" href="#323">323</a>         conf.getInt(GiraphJob.CHECKPOINT_FREQUENCY,
-<a name="324" href="#324">324</a>             GiraphJob.CHECKPOINT_FREQUENCY_DEFAULT);
-<a name="325" href="#325">325</a> 
-<a name="326" href="#326">326</a>     basePath = ZooKeeperManager.getBasePath(conf) + BASE_DIR + <span class="jxr_string">"/"</span> + jobId;
-<a name="327" href="#327">327</a>     masterJobStatePath = basePath + MASTER_JOB_STATE_NODE;
-<a name="328" href="#328">328</a>     inputSplitsPath = basePath + INPUT_SPLIT_DIR;
-<a name="329" href="#329">329</a>     inputSplitsAllReadyPath = basePath + INPUT_SPLITS_ALL_READY_NODE;
-<a name="330" href="#330">330</a>     inputSplitsDonePath = basePath + INPUT_SPLIT_DONE_DIR;
-<a name="331" href="#331">331</a>     inputSplitsAllDonePath = basePath + INPUT_SPLITS_ALL_DONE_NODE;
-<a name="332" href="#332">332</a>     applicationAttemptsPath = basePath + APPLICATION_ATTEMPTS_DIR;
-<a name="333" href="#333">333</a>     cleanedUpPath = basePath + CLEANED_UP_DIR;
-<a name="334" href="#334">334</a>     checkpointBasePath =
-<a name="335" href="#335">335</a>         getConfiguration().get(
-<a name="336" href="#336">336</a>             GiraphJob.CHECKPOINT_DIRECTORY,
-<a name="337" href="#337">337</a>             GiraphJob.CHECKPOINT_DIRECTORY_DEFAULT + <span class="jxr_string">"/"</span> + getJobId());
-<a name="338" href="#338">338</a>     masterElectionPath = basePath + MASTER_ELECTION_DIR;
-<a name="339" href="#339">339</a>     <strong class="jxr_keyword">if</strong> (LOG.isInfoEnabled()) {
-<a name="340" href="#340">340</a>       LOG.info(<span class="jxr_string">"BspService: Connecting to ZooKeeper with job "</span> + jobId +
-<a name="341" href="#341">341</a>           <span class="jxr_string">", "</span> + getTaskPartition() + <span class="jxr_string">" on "</span> + serverPortList);
-<a name="342" href="#342">342</a>     }
-<a name="343" href="#343">343</a>     <strong class="jxr_keyword">try</strong> {
-<a name="344" href="#344">344</a>       <strong class="jxr_keyword">this</strong>.zk = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/ZooKeeperExt.html">ZooKeeperExt</a>(serverPortList, sessionMsecTimeout, <strong class="jxr_keyword">this</strong>);
-<a name="345" href="#345">345</a>       connectedEvent.waitForever();
-<a name="346" href="#346">346</a>       <strong class="jxr_keyword">this</strong>.fs = FileSystem.get(getConfiguration());
-<a name="347" href="#347">347</a>     } <strong class="jxr_keyword">catch</strong> (IOException e) {
-<a name="348" href="#348">348</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> RuntimeException(e);
-<a name="349" href="#349">349</a>     }
-<a name="350" href="#350">350</a>   }
-<a name="351" href="#351">351</a> 
-<a name="352" href="#352">352</a> 
-<a name="353" href="#353">353</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="354" href="#354">354</a> <em class="jxr_javadoccomment">   * Get the superstep from a ZooKeeper path</em>
-<a name="355" href="#355">355</a> <em class="jxr_javadoccomment">   *</em>
-<a name="356" href="#356">356</a> <em class="jxr_javadoccomment">   * @param path Path to parse for the superstep</em>
-<a name="357" href="#357">357</a> <em class="jxr_javadoccomment">   * @return Superstep from the path.</em>
-<a name="358" href="#358">358</a> <em class="jxr_javadoccomment">   */</em>
-<a name="359" href="#359">359</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">long</strong> getSuperstepFromPath(String path) {
-<a name="360" href="#360">360</a>     <strong class="jxr_keyword">int</strong> foundSuperstepStart = path.indexOf(SUPERSTEP_DIR);
-<a name="361" href="#361">361</a>     <strong class="jxr_keyword">if</strong> (foundSuperstepStart == -1) {
-<a name="362" href="#362">362</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(
-<a name="363" href="#363">363</a>           <span class="jxr_string">"getSuperstepFromPath: Cannot find "</span> + SUPERSTEP_DIR +
-<a name="364" href="#364">364</a>           <span class="jxr_string">"from "</span> + path);
-<a name="365" href="#365">365</a>     }
-<a name="366" href="#366">366</a>     foundSuperstepStart += SUPERSTEP_DIR.length() + 1;
-<a name="367" href="#367">367</a>     <strong class="jxr_keyword">int</strong> endIndex = foundSuperstepStart +
-<a name="368" href="#368">368</a>         path.substring(foundSuperstepStart).indexOf(<span class="jxr_string">"/"</span>);
-<a name="369" href="#369">369</a>     <strong class="jxr_keyword">if</strong> (endIndex == -1) {
-<a name="370" href="#370">370</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(
-<a name="371" href="#371">371</a>           <span class="jxr_string">"getSuperstepFromPath: Cannot find end of superstep from "</span> +
-<a name="372" href="#372">372</a>               path);
-<a name="373" href="#373">373</a>     }
-<a name="374" href="#374">374</a>     <strong class="jxr_keyword">if</strong> (LOG.isDebugEnabled()) {
-<a name="375" href="#375">375</a>       LOG.debug(<span class="jxr_string">"getSuperstepFromPath: Got path="</span> + path +
-<a name="376" href="#376">376</a>           <span class="jxr_string">", start="</span> + foundSuperstepStart + <span class="jxr_string">", end="</span> + endIndex);
-<a name="377" href="#377">377</a>     }
-<a name="378" href="#378">378</a>     <strong class="jxr_keyword">return</strong> Long.parseLong(path.substring(foundSuperstepStart, endIndex));
-<a name="379" href="#379">379</a>   }
-<a name="380" href="#380">380</a> 
-<a name="381" href="#381">381</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="382" href="#382">382</a> <em class="jxr_javadoccomment">   * Get the hostname and id from a "healthy" worker path</em>
-<a name="383" href="#383">383</a> <em class="jxr_javadoccomment">   *</em>
-<a name="384" href="#384">384</a> <em class="jxr_javadoccomment">   * @param path Path to check</em>
-<a name="385" href="#385">385</a> <em class="jxr_javadoccomment">   * @return Hostname and id from path</em>
-<a name="386" href="#386">386</a> <em class="jxr_javadoccomment">   */</em>
-<a name="387" href="#387">387</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> String getHealthyHostnameIdFromPath(String path) {
-<a name="388" href="#388">388</a>     <strong class="jxr_keyword">int</strong> foundWorkerHealthyStart = path.indexOf(WORKER_HEALTHY_DIR);
-<a name="389" href="#389">389</a>     <strong class="jxr_keyword">if</strong> (foundWorkerHealthyStart == -1) {
-<a name="390" href="#390">390</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(
-<a name="391" href="#391">391</a>           <span class="jxr_string">"getHealthyHostnameidFromPath: Couldn't find "</span> +
-<a name="392" href="#392">392</a>               WORKER_HEALTHY_DIR + <span class="jxr_string">" from "</span> + path);
-<a name="393" href="#393">393</a>     }
-<a name="394" href="#394">394</a>     foundWorkerHealthyStart += WORKER_HEALTHY_DIR.length();
-<a name="395" href="#395">395</a>     <strong class="jxr_keyword">return</strong> path.substring(foundWorkerHealthyStart);
-<a name="396" href="#396">396</a>   }
-<a name="397" href="#397">397</a> 
-<a name="398" href="#398">398</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="399" href="#399">399</a> <em class="jxr_javadoccomment">   * Generate the base superstep directory path for a given application</em>
-<a name="400" href="#400">400</a> <em class="jxr_javadoccomment">   * attempt</em>
-<a name="401" href="#401">401</a> <em class="jxr_javadoccomment">   *</em>
-<a name="402" href="#402">402</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="403" href="#403">403</a> <em class="jxr_javadoccomment">   * @return directory path based on the an attempt</em>
-<a name="404" href="#404">404</a> <em class="jxr_javadoccomment">   */</em>
-<a name="405" href="#405">405</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getSuperstepPath(<strong class="jxr_keyword">long</strong> attempt) {
-<a name="406" href="#406">406</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt + SUPERSTEP_DIR;
-<a name="407" href="#407">407</a>   }
-<a name="408" href="#408">408</a> 
-<a name="409" href="#409">409</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="410" href="#410">410</a> <em class="jxr_javadoccomment">   * Generate the worker information "healthy" directory path for a</em>
-<a name="411" href="#411">411</a> <em class="jxr_javadoccomment">   * superstep</em>
-<a name="412" href="#412">412</a> <em class="jxr_javadoccomment">   *</em>
-<a name="413" href="#413">413</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="414" href="#414">414</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="415" href="#415">415</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="416" href="#416">416</a> <em class="jxr_javadoccomment">   */</em>
-<a name="417" href="#417">417</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getWorkerInfoHealthyPath(<strong class="jxr_keyword">long</strong> attempt,
-<a name="418" href="#418">418</a>       <strong class="jxr_keyword">long</strong> superstep) {
-<a name="419" href="#419">419</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="420" href="#420">420</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + WORKER_HEALTHY_DIR;
-<a name="421" href="#421">421</a>   }
-<a name="422" href="#422">422</a> 
-<a name="423" href="#423">423</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="424" href="#424">424</a> <em class="jxr_javadoccomment">   * Generate the worker information "unhealthy" directory path for a</em>
-<a name="425" href="#425">425</a> <em class="jxr_javadoccomment">   * superstep</em>
-<a name="426" href="#426">426</a> <em class="jxr_javadoccomment">   *</em>
-<a name="427" href="#427">427</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="428" href="#428">428</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="429" href="#429">429</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="430" href="#430">430</a> <em class="jxr_javadoccomment">   */</em>
-<a name="431" href="#431">431</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getWorkerInfoUnhealthyPath(<strong class="jxr_keyword">long</strong> attempt,
-<a name="432" href="#432">432</a>       <strong class="jxr_keyword">long</strong> superstep) {
-<a name="433" href="#433">433</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="434" href="#434">434</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + WORKER_UNHEALTHY_DIR;
-<a name="435" href="#435">435</a>   }
-<a name="436" href="#436">436</a> 
-<a name="437" href="#437">437</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="438" href="#438">438</a> <em class="jxr_javadoccomment">   * Generate the worker "finished" directory path for a</em>
-<a name="439" href="#439">439</a> <em class="jxr_javadoccomment">   * superstep</em>
-<a name="440" href="#440">440</a> <em class="jxr_javadoccomment">   *</em>
-<a name="441" href="#441">441</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="442" href="#442">442</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="443" href="#443">443</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="444" href="#444">444</a> <em class="jxr_javadoccomment">   */</em>
-<a name="445" href="#445">445</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getWorkerFinishedPath(<strong class="jxr_keyword">long</strong> attempt, <strong class="jxr_keyword">long</strong> superstep) {
-<a name="446" href="#446">446</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="447" href="#447">447</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + WORKER_FINISHED_DIR;
-<a name="448" href="#448">448</a>   }
-<a name="449" href="#449">449</a> 
-<a name="450" href="#450">450</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="451" href="#451">451</a> <em class="jxr_javadoccomment">   * Generate the "partiton assignments" directory path for a superstep</em>
-<a name="452" href="#452">452</a> <em class="jxr_javadoccomment">   *</em>
-<a name="453" href="#453">453</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="454" href="#454">454</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="455" href="#455">455</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="456" href="#456">456</a> <em class="jxr_javadoccomment">   */</em>
-<a name="457" href="#457">457</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getPartitionAssignmentsPath(<strong class="jxr_keyword">long</strong> attempt,
-<a name="458" href="#458">458</a>       <strong class="jxr_keyword">long</strong> superstep) {
-<a name="459" href="#459">459</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="460" href="#460">460</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + PARTITION_ASSIGNMENTS_DIR;
-<a name="461" href="#461">461</a>   }
-<a name="462" href="#462">462</a> 
-<a name="463" href="#463">463</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="464" href="#464">464</a> <em class="jxr_javadoccomment">   * Generate the "partition exchange" directory path for a superstep</em>
-<a name="465" href="#465">465</a> <em class="jxr_javadoccomment">   *</em>
-<a name="466" href="#466">466</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="467" href="#467">467</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="468" href="#468">468</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="469" href="#469">469</a> <em class="jxr_javadoccomment">   */</em>
-<a name="470" href="#470">470</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getPartitionExchangePath(<strong class="jxr_keyword">long</strong> attempt,
-<a name="471" href="#471">471</a>       <strong class="jxr_keyword">long</strong> superstep) {
-<a name="472" href="#472">472</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="473" href="#473">473</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + PARTITION_EXCHANGE_DIR;
-<a name="474" href="#474">474</a>   }
-<a name="475" href="#475">475</a> 
-<a name="476" href="#476">476</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="477" href="#477">477</a> <em class="jxr_javadoccomment">   * Based on the superstep, worker info, and attempt, get the appropriate</em>
-<a name="478" href="#478">478</a> <em class="jxr_javadoccomment">   * worker path for the exchange.</em>
-<a name="479" href="#479">479</a> <em class="jxr_javadoccomment">   *</em>
-<a name="480" href="#480">480</a> <em class="jxr_javadoccomment">   * @param attempt Application attempt</em>
-<a name="481" href="#481">481</a> <em class="jxr_javadoccomment">   * @param superstep Superstep</em>
-<a name="482" href="#482">482</a> <em class="jxr_javadoccomment">   * @param workerInfo Worker info of the exchange.</em>
-<a name="483" href="#483">483</a> <em class="jxr_javadoccomment">   * @return Path of the desired worker</em>
-<a name="484" href="#484">484</a> <em class="jxr_javadoccomment">   */</em>
-<a name="485" href="#485">485</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getPartitionExchangeWorkerPath(<strong class="jxr_keyword">long</strong> attempt,
-<a name="486" href="#486">486</a>       <strong class="jxr_keyword">long</strong> superstep,
-<a name="487" href="#487">487</a>       <a href="../../../../org/apache/giraph/graph/WorkerInfo.html">WorkerInfo</a> workerInfo) {
-<a name="488" href="#488">488</a>     <strong class="jxr_keyword">return</strong> getPartitionExchangePath(attempt, superstep) +
-<a name="489" href="#489">489</a>         <span class="jxr_string">"/"</span> + workerInfo.getHostnameId();
-<a name="490" href="#490">490</a>   }
-<a name="491" href="#491">491</a> 
-<a name="492" href="#492">492</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="493" href="#493">493</a> <em class="jxr_javadoccomment">   * Generate the merged aggregator directory path for a superstep</em>
-<a name="494" href="#494">494</a> <em class="jxr_javadoccomment">   *</em>
-<a name="495" href="#495">495</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="496" href="#496">496</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="497" href="#497">497</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="498" href="#498">498</a> <em class="jxr_javadoccomment">   */</em>
-<a name="499" href="#499">499</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getMergedAggregatorPath(<strong class="jxr_keyword">long</strong> attempt, <strong class="jxr_keyword">long</strong> superstep) {
-<a name="500" href="#500">500</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="501" href="#501">501</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + MERGED_AGGREGATOR_DIR;
-<a name="502" href="#502">502</a>   }
-<a name="503" href="#503">503</a> 
-<a name="504" href="#504">504</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="505" href="#505">505</a> <em class="jxr_javadoccomment">   * Generate the "superstep finished" directory path for a superstep</em>
-<a name="506" href="#506">506</a> <em class="jxr_javadoccomment">   *</em>
-<a name="507" href="#507">507</a> <em class="jxr_javadoccomment">   * @param attempt application attempt number</em>
-<a name="508" href="#508">508</a> <em class="jxr_javadoccomment">   * @param superstep superstep to use</em>
-<a name="509" href="#509">509</a> <em class="jxr_javadoccomment">   * @return directory path based on the a superstep</em>
-<a name="510" href="#510">510</a> <em class="jxr_javadoccomment">   */</em>
-<a name="511" href="#511">511</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getSuperstepFinishedPath(<strong class="jxr_keyword">long</strong> attempt, <strong class="jxr_keyword">long</strong> superstep) {
-<a name="512" href="#512">512</a>     <strong class="jxr_keyword">return</strong> applicationAttemptsPath + <span class="jxr_string">"/"</span> + attempt +
-<a name="513" href="#513">513</a>         SUPERSTEP_DIR + <span class="jxr_string">"/"</span> + superstep + SUPERSTEP_FINISHED_NODE;
-<a name="514" href="#514">514</a>   }
-<a name="515" href="#515">515</a> 
-<a name="516" href="#516">516</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="517" href="#517">517</a> <em class="jxr_javadoccomment">   * Generate the base superstep directory path for a given application</em>
-<a name="518" href="#518">518</a> <em class="jxr_javadoccomment">   * attempt</em>
-<a name="519" href="#519">519</a> <em class="jxr_javadoccomment">   *</em>
-<a name="520" href="#520">520</a> <em class="jxr_javadoccomment">   * @param superstep Superstep to use</em>
-<a name="521" href="#521">521</a> <em class="jxr_javadoccomment">   * @return Directory path based on the a superstep</em>
-<a name="522" href="#522">522</a> <em class="jxr_javadoccomment">   */</em>
-<a name="523" href="#523">523</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">final</strong> String getCheckpointBasePath(<strong class="jxr_keyword">long</strong> superstep) {
-<a name="524" href="#524">524</a>     <strong class="jxr_keyword">return</strong> checkpointBasePath + <span class="jxr_string">"/"</span> + superstep;
-<a name="525" href="#525">525</a>   }
-<a name="526" href="#526">526</a> 
-<a name="527" href="#527">527</a>   <em class="jxr_javadoccomment">/**</em>
-<a name="528" href="#528">528</a> <em class="jxr_javadoccomment">   * Get the checkpoint from a finalized checkpoint path</em>
-<a name="529" href="#529">529</a> <em class="jxr_javadoccomment">   *</em>
-<a name="530" href="#530">530</a> <em class="jxr_javadoccomment">   * @param finalizedPath Path of the finalized checkpoint</em>
-<a name="531" href="#531">531</a> <em class="jxr_javadoccomment">   * @return Superstep referring to a checkpoint of the finalized path</em>
-<a name="532" href="#532">532</a> <em class="jxr_javadoccomment">   */</em>
-<a name="533" href="#533">533</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">long</strong> getCheckpoint(Path finalizedPath) {
-<a name="534" href="#534">534</a>     <strong class="jxr_keyword">if</strong> (!finalizedPath.getName().endsWith(CHECKPOINT_FINALIZED_POSTFIX)) {
-<a name="535" href="#535">535</a>       <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> InvalidParameterException(
-<a name="536" href="#536">536</a>           <span class="jxr_string">"getCheckpoint: "</span> + finalizedPath + <span class="jxr_string">"Doesn't end in "</span> +
-<a name="537" href="#537">537</a>               CHECKPOINT_FINALIZED_POSTFIX);
-<a name="538" href="#538">538</a>     }
-<a name="539" href="#539">539</a>     String checkpointString =
-<a name="540" href="#540">540</a>         finalizedPath.getName().replace(CHECKPOINT_FINALIZED_POSTFIX, <span class="jxr_string">""</span>);
-<a name="541" href="#541">541</a>     <strong class="jxr_keyword">return</strong> Long.parseLong(checkpointString);
+<a name="106" href="#106">106</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Workers which wrote checkpoint notify here */</em>
+<a name="107" href="#107">107</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_WROTE_CHECKPOINT_DIR =
+<a name="108" href="#108">108</a>       <span class="jxr_string">"/_workerWroteCheckpointDir"</span>;
+<a name="109" href="#109">109</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Finished workers notify here */</em>
+<a name="110" href="#110">110</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_FINISHED_DIR = <span class="jxr_string">"/_workerFinishedDir"</span>;
+<a name="111" href="#111">111</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Where the partition assignments are set */</em>
+<a name="112" href="#112">112</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PARTITION_ASSIGNMENTS_DIR =
+<a name="113" href="#113">113</a>       <span class="jxr_string">"/_partitionAssignments"</span>;
+<a name="114" href="#114">114</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Helps coordinate the partition exchnages */</em>
+<a name="115" href="#115">115</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String PARTITION_EXCHANGE_DIR =
+<a name="116" href="#116">116</a>       <span class="jxr_string">"/_partitionExchangeDir"</span>;
+<a name="117" href="#117">117</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Denotes that the superstep is done */</em>
+<a name="118" href="#118">118</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String SUPERSTEP_FINISHED_NODE = <span class="jxr_string">"/_superstepFinished"</span>;
+<a name="119" href="#119">119</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Denotes which workers have been cleaned up */</em>
+<a name="120" href="#120">120</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CLEANED_UP_DIR = <span class="jxr_string">"/_cleanedUpDir"</span>;
+<a name="121" href="#121">121</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON aggregator value array key */</em>
+<a name="122" href="#122">122</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_AGGREGATOR_VALUE_ARRAY_KEY =
+<a name="123" href="#123">123</a>       <span class="jxr_string">"_aggregatorValueArrayKey"</span>;
+<a name="124" href="#124">124</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON partition stats key */</em>
+<a name="125" href="#125">125</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PARTITION_STATS_KEY =
+<a name="126" href="#126">126</a>       <span class="jxr_string">"_partitionStatsKey"</span>;
+<a name="127" href="#127">127</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON finished vertices key */</em>
+<a name="128" href="#128">128</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_FINISHED_VERTICES_KEY =
+<a name="129" href="#129">129</a>       <span class="jxr_string">"_verticesFinishedKey"</span>;
+<a name="130" href="#130">130</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON vertex count key */</em>
+<a name="131" href="#131">131</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_VERTICES_KEY = <span class="jxr_string">"_numVerticesKey"</span>;
+<a name="132" href="#132">132</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON edge count key */</em>
+<a name="133" href="#133">133</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_EDGES_KEY = <span class="jxr_string">"_numEdgesKey"</span>;
+<a name="134" href="#134">134</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON message count key */</em>
+<a name="135" href="#135">135</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_NUM_MESSAGES_KEY = <span class="jxr_string">"_numMsgsKey"</span>;
+<a name="136" href="#136">136</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON hostname id key */</em>
+<a name="137" href="#137">137</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_HOSTNAME_ID_KEY = <span class="jxr_string">"_hostnameIdKey"</span>;
+<a name="138" href="#138">138</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON max vertex index key */</em>
+<a name="139" href="#139">139</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_MAX_VERTEX_INDEX_KEY =
+<a name="140" href="#140">140</a>       <span class="jxr_string">"_maxVertexIndexKey"</span>;
+<a name="141" href="#141">141</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON hostname key */</em>
+<a name="142" href="#142">142</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_HOSTNAME_KEY = <span class="jxr_string">"_hostnameKey"</span>;
+<a name="143" href="#143">143</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON port key */</em>
+<a name="144" href="#144">144</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PORT_KEY = <span class="jxr_string">"_portKey"</span>;
+<a name="145" href="#145">145</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON checkpoint file prefix key */</em>
+<a name="146" href="#146">146</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_CHECKPOINT_FILE_PREFIX_KEY =
+<a name="147" href="#147">147</a>       <span class="jxr_string">"_checkpointFilePrefixKey"</span>;
+<a name="148" href="#148">148</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON previous hostname key */</em>
+<a name="149" href="#149">149</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PREVIOUS_HOSTNAME_KEY =
+<a name="150" href="#150">150</a>       <span class="jxr_string">"_previousHostnameKey"</span>;
+<a name="151" href="#151">151</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON previous port key */</em>
+<a name="152" href="#152">152</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_PREVIOUS_PORT_KEY = <span class="jxr_string">"_previousPortKey"</span>;
+<a name="153" href="#153">153</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON state key */</em>
+<a name="154" href="#154">154</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_STATE_KEY = <span class="jxr_string">"_stateKey"</span>;
+<a name="155" href="#155">155</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON application attempt key */</em>
+<a name="156" href="#156">156</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_APPLICATION_ATTEMPT_KEY =
+<a name="157" href="#157">157</a>       <span class="jxr_string">"_applicationAttemptKey"</span>;
+<a name="158" href="#158">158</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> JSON superstep key */</em>
+<a name="159" href="#159">159</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String JSONOBJ_SUPERSTEP_KEY =
+<a name="160" href="#160">160</a>       <span class="jxr_string">"_superstepKey"</span>;
+<a name="161" href="#161">161</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> name key */</em>
+<a name="162" href="#162">162</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_NAME_KEY = <span class="jxr_string">"_aggregatorNameKey"</span>;
+<a name="163" href="#163">163</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> class name key */</em>
+<a name="164" href="#164">164</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_CLASS_NAME_KEY =
+<a name="165" href="#165">165</a>       <span class="jxr_string">"_aggregatorClassNameKey"</span>;
+<a name="166" href="#166">166</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> <a href="../../../../org/apache/giraph/graph/Aggregator.html">Aggregator</a> value key */</em>
+<a name="167" href="#167">167</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String AGGREGATOR_VALUE_KEY = <span class="jxr_string">"_aggregatorValueKey"</span>;
+<a name="168" href="#168">168</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Suffix denotes a worker */</em>
+<a name="169" href="#169">169</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String WORKER_SUFFIX = <span class="jxr_string">"_worker"</span>;
+<a name="170" href="#170">170</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Suffix denotes a master */</em>
+<a name="171" href="#171">171</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String MASTER_SUFFIX = <span class="jxr_string">"_master"</span>;
+<a name="172" href="#172">172</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> If at the end of a checkpoint file, indicates metadata */</em>
+<a name="173" href="#173">173</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_METADATA_POSTFIX = <span class="jxr_string">".metadata"</span>;
+<a name="174" href="#174">174</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="175" href="#175">175</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates vertices, edges,</em>
+<a name="176" href="#176">176</a> <em class="jxr_javadoccomment">   * messages, etc.</em>
+<a name="177" href="#177">177</a> <em class="jxr_javadoccomment">   */</em>
+<a name="178" href="#178">178</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_VERTICES_POSTFIX = <span class="jxr_string">".vertices"</span>;
+<a name="179" href="#179">179</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="180" href="#180">180</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates metadata and data is valid</em>
+<a name="181" href="#181">181</a> <em class="jxr_javadoccomment">   * for the same filenames without .valid</em>
+<a name="182" href="#182">182</a> <em class="jxr_javadoccomment">   */</em>
+<a name="183" href="#183">183</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_VALID_POSTFIX = <span class="jxr_string">".valid"</span>;
+<a name="184" href="#184">184</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="185" href="#185">185</a> <em class="jxr_javadoccomment">   * If at the end of a checkpoint file, indicates the stitched checkpoint</em>
+<a name="186" href="#186">186</a> <em class="jxr_javadoccomment">   * file prefixes.  A checkpoint is not valid if this file does not exist.</em>
+<a name="187" href="#187">187</a> <em class="jxr_javadoccomment">   */</em>
+<a name="188" href="#188">188</a>   <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> String CHECKPOINT_FINALIZED_POSTFIX = <span class="jxr_string">".finalized"</span>;
+<a name="189" href="#189">189</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Class logger */</em>
+<a name="190" href="#190">190</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> Logger LOG = Logger.getLogger(BspService.<strong class="jxr_keyword">class</strong>);
+<a name="191" href="#191">191</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the job's root */</em>
+<a name="192" href="#192">192</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String basePath;
+<a name="193" href="#193">193</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the job state determined by the master (informative only) */</em>
+<a name="194" href="#194">194</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String masterJobStatePath;
+<a name="195" href="#195">195</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits written by the master */</em>
+<a name="196" href="#196">196</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsPath;
+<a name="197" href="#197">197</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits all ready to be processed by workers */</em>
+<a name="198" href="#198">198</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsAllReadyPath;
+<a name="199" href="#199">199</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits done */</em>
+<a name="200" href="#200">200</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsDonePath;
+<a name="201" href="#201">201</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the input splits all done to notify the workers to proceed */</em>
+<a name="202" href="#202">202</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String inputSplitsAllDonePath;
+<a name="203" href="#203">203</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the application attempts) */</em>
+<a name="204" href="#204">204</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String applicationAttemptsPath;
+<a name="205" href="#205">205</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the cleaned up notifications */</em>
+<a name="206" href="#206">206</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String cleanedUpPath;
+<a name="207" href="#207">207</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the checkpoint's root (including job id) */</em>
+<a name="208" href="#208">208</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String checkpointBasePath;
+<a name="209" href="#209">209</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Path to the master election path */</em>
+<a name="210" href="#210">210</a>   <strong class="jxr_keyword">protected</strong> <strong class="jxr_keyword">final</strong> String masterElectionPath;
+<a name="211" href="#211">211</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Private ZooKeeper instance that implements the service */</em>
+<a name="212" href="#212">212</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/ZooKeeperExt.html">ZooKeeperExt</a> zk;
+<a name="213" href="#213">213</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Has the Connection occurred? */</em>
+<a name="214" href="#214">214</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> connectedEvent;
+<a name="215" href="#215">215</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Has worker registration changed (either healthy or unhealthy) */</em>
+<a name="216" href="#216">216</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> workerHealthRegistrationChanged;
+<a name="217" href="#217">217</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplits are ready for consumption by workers */</em>
+<a name="218" href="#218">218</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsAllReadyChanged;
+<a name="219" href="#219">219</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplit reservation or finished notification and synchronization */</em>
+<a name="220" href="#220">220</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsStateChanged;
+<a name="221" href="#221">221</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplits are done being processed by workers */</em>
+<a name="222" href="#222">222</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsAllDoneChanged;
+<a name="223" href="#223">223</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> InputSplit done by a worker finished notification and synchronization */</em>
+<a name="224" href="#224">224</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> inputSplitsDoneStateChanged;
+<a name="225" href="#225">225</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Are the partition assignments to workers ready? */</em>
+<a name="226" href="#226">226</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> partitionAssignmentsReadyChanged;
+<a name="227" href="#227">227</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Application attempt changed */</em>
+<a name="228" href="#228">228</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> applicationAttemptChanged;
+<a name="229" href="#229">229</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Superstep finished synchronization */</em>
+<a name="230" href="#230">230</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> superstepFinished;
+<a name="231" href="#231">231</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Master election changed for any waited on attempt */</em>
+<a name="232" href="#232">232</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> masterElectionChildrenChanged;
+<a name="233" href="#233">233</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cleaned up directory children changed*/</em>
+<a name="234" href="#234">234</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <a href="../../../../org/apache/giraph/zk/BspEvent.html">BspEvent</a> cleanedUpChildrenChanged;
+<a name="235" href="#235">235</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Registered list of BspEvents */</em>
+<a name="236" href="#236">236</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> List&lt;BspEvent&gt; registeredBspEvents =
+<a name="237" href="#237">237</a>       <strong class="jxr_keyword">new</strong> ArrayList&lt;BspEvent&gt;();
+<a name="238" href="#238">238</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Configuration of the job*/</em>
+<a name="239" href="#239">239</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> Configuration conf;
+<a name="240" href="#240">240</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Job context (mainly for progress) */</em>
+<a name="241" href="#241">241</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> Mapper&lt;?, ?, ?, ?&gt;.Context context;
+<a name="242" href="#242">242</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cached superstep (from ZooKeeper) */</em>
+<a name="243" href="#243">243</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> cachedSuperstep = UNSET_SUPERSTEP;
+<a name="244" href="#244">244</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Restarted from a checkpoint (manual or automatic) */</em>
+<a name="245" href="#245">245</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> restartedSuperstep = UNSET_SUPERSTEP;
+<a name="246" href="#246">246</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Cached application attempt (from ZooKeeper) */</em>
+<a name="247" href="#247">247</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> cachedApplicationAttempt = UNSET_APPLICATION_ATTEMPT;
+<a name="248" href="#248">248</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Job id, to ensure uniqueness */</em>
+<a name="249" href="#249">249</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String jobId;
+<a name="250" href="#250">250</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Task partition, to ensure uniqueness */</em>
+<a name="251" href="#251">251</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> taskPartition;
+<a name="252" href="#252">252</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> My hostname */</em>
+<a name="253" href="#253">253</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String hostname;
+<a name="254" href="#254">254</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Combination of hostname '_' partition (unique id) */</em>
+<a name="255" href="#255">255</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> String hostnamePartitionId;
+<a name="256" href="#256">256</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Graph partitioner */</em>
+<a name="257" href="#257">257</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> GraphPartitionerFactory&lt;I, V, E, M&gt; graphPartitionerFactory;
+<a name="258" href="#258">258</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Mapper that will do the graph computation */</em>
+<a name="259" href="#259">259</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> GraphMapper&lt;I, V, E, M&gt; graphMapper;
+<a name="260" href="#260">260</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> File system */</em>
+<a name="261" href="#261">261</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> FileSystem fs;
+<a name="262" href="#262">262</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Checkpoint frequency */</em>
+<a name="263" href="#263">263</a>   <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> checkpointFrequency;
+<a name="264" href="#264">264</a>   <em class="jxr_javadoccomment">/**</em><em class="jxr_javadoccomment"> Map of aggregators */</em>
+<a name="265" href="#265">265</a>   <strong class="jxr_keyword">private</strong> Map&lt;String, AggregatorWrapper&lt;Writable&gt;&gt; aggregatorMap =
+<a name="266" href="#266">266</a>       <strong class="jxr_keyword">new</strong> TreeMap&lt;String, AggregatorWrapper&lt;Writable&gt;&gt;();
+<a name="267" href="#267">267</a> 
+<a name="268" href="#268">268</a>   <em class="jxr_javadoccomment">/**</em>
+<a name="269" href="#269">269</a> <em class="jxr_javadoccomment">   * Constructor.</em>
+<a name="270" href="#270">270</a> <em class="jxr_javadoccomment">   *</em>
+<a name="271" href="#271">271</a> <em class="jxr_javadoccomment">   * @param serverPortList ZooKeeper server port list</em>
+<a name="272" href="#272">272</a> <em class="jxr_javadoccomment">   * @param sessionMsecTimeout ZooKeeper session timeount in milliseconds</em>
+<a name="273" href="#273">273</a> <em class="jxr_javadoccomment">   * @param context Mapper context</em>
+<a name="274" href="#274">274</a> <em class="jxr_javadoccomment">   * @param graphMapper Graph mapper reference</em>
+<a name="275" href="#275">275</a> <em class="jxr_javadoccomment">   */</em>
+<a name="276" href="#276">276</a>   <strong class="jxr_keyword">public</strong> <a href="../../../../org/apache/giraph/graph/BspService.html">BspService</a>(String serverPortList,
+<a name="277" href="#277">277</a>       <strong class="jxr_keyword">int</strong> sessionMsecTimeout,
+<a name="278" href="#278">278</a>       Mapper&lt;?, ?, ?, ?&gt;.Context context,
+<a name="279" href="#279">279</a>       GraphMapper&lt;I, V, E, M&gt; graphMapper) {
+<a name="280" href="#280">280</a>     <strong class="jxr_keyword">this</strong>.connectedEvent = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="281" href="#281">281</a>     <strong class="jxr_keyword">this</strong>.workerHealthRegistrationChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="282" href="#282">282</a>     <strong class="jxr_keyword">this</strong>.inputSplitsAllReadyChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="283" href="#283">283</a>     <strong class="jxr_keyword">this</strong>.inputSplitsStateChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="284" href="#284">284</a>     <strong class="jxr_keyword">this</strong>.inputSplitsAllDoneChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="285" href="#285">285</a>     <strong class="jxr_keyword">this</strong>.inputSplitsDoneStateChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="286" href="#286">286</a>     <strong class="jxr_keyword">this</strong>.partitionAssignmentsReadyChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="287" href="#287">287</a>     <strong class="jxr_keyword">this</strong>.applicationAttemptChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="288" href="#288">288</a>     <strong class="jxr_keyword">this</strong>.superstepFinished = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="289" href="#289">289</a>     <strong class="jxr_keyword">this</strong>.masterElectionChildrenChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="290" href="#290">290</a>     <strong class="jxr_keyword">this</strong>.cleanedUpChildrenChanged = <strong class="jxr_keyword">new</strong> <a href="../../../../org/apache/giraph/zk/PredicateLock.html">PredicateLock</a>(context);
+<a name="291" href="#291">291</a> 
+<a name="292" href="#292">292</a>     registerBspEvent(connectedEvent);
+<a name="293" href="#293">293</a>     registerBspEvent(workerHealthRegistrationChanged);
+<a name="294" href="#294">294</a>     registerBspEvent(inputSplitsAllReadyChanged);
+<a name="295" href="#295">295</a>     registerBspEvent(inputSplitsStateChanged);
+<a name="296" href="#296">296</a>     registerBspEvent(partitionAssignmentsReadyChanged);
+<a name="297" href="#297">297</a>     registerBspEvent(applicationAttemptChanged);
+<a name="298" href="#298">298</a>     registerBspEvent(superstepFinished);
+<a name="299" href="#299">299</a>     registerBspEvent(masterElectionChildrenChanged);
+<a name="300" href="#300">300</a>     registerBspEvent(cleanedUpChildrenChanged);
+<a name="301" href="#301">301</a> 
+<a name="302" href="#302">302</a>     <strong class="jxr_keyword">this</strong>.context = context;
+<a name="303" href="#303">303</a>     <strong class="jxr_keyword">this</strong>.graphMapper = graphMapper;
+<a name="304" href="#304">304</a>     <strong class="jxr_keyword">this</strong>.conf = context.getConfiguration();

[... 1387 lines stripped ...]


Mime
View raw message