hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject [16/52] [partial] hbase-site git commit: Published site at a55af38689fbe273e716ebbf6191e9515986dbf3.
Date Thu, 14 Jul 2016 19:46:39 GMT
http://git-wip-us.apache.org/repos/asf/hbase-site/blob/975096b1/devapidocs/src-html/org/apache/hadoop/hbase/executor/EventType.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/executor/EventType.html b/devapidocs/src-html/org/apache/hadoop/hbase/executor/EventType.html
index 76462a3..c25dd68 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/executor/EventType.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/executor/EventType.html
@@ -145,179 +145,185 @@
 <span class="sourceLineNo">137</span>   * Master asking RS to close meta.<a name="line.137"></a>
 <span class="sourceLineNo">138</span>   */<a name="line.138"></a>
 <span class="sourceLineNo">139</span>  M_RS_CLOSE_META           (25, ExecutorType.RS_CLOSE_META),<a name="line.139"></a>
-<span class="sourceLineNo">140</span><a name="line.140"></a>
-<span class="sourceLineNo">141</span>  /**<a name="line.141"></a>
-<span class="sourceLineNo">142</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.142"></a>
-<span class="sourceLineNo">143</span>   * C_M_MERGE_REGION&lt;br&gt;<a name="line.143"></a>
-<span class="sourceLineNo">144</span>   * Client asking Master to merge regions.<a name="line.144"></a>
-<span class="sourceLineNo">145</span>   */<a name="line.145"></a>
-<span class="sourceLineNo">146</span>  C_M_MERGE_REGION          (30, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.146"></a>
+<span class="sourceLineNo">140</span>  /**<a name="line.140"></a>
+<span class="sourceLineNo">141</span>   * Messages originating from Master to RS.&lt;br&gt;<a name="line.141"></a>
+<span class="sourceLineNo">142</span>   * M_RS_OPEN_PRIORITY_REGION&lt;br&gt;<a name="line.142"></a>
+<span class="sourceLineNo">143</span>   * Master asking RS to open a  priority region.<a name="line.143"></a>
+<span class="sourceLineNo">144</span>   */<a name="line.144"></a>
+<span class="sourceLineNo">145</span>  M_RS_OPEN_PRIORITY_REGION          (26, ExecutorType.RS_OPEN_PRIORITY_REGION),<a name="line.145"></a>
+<span class="sourceLineNo">146</span><a name="line.146"></a>
 <span class="sourceLineNo">147</span>  /**<a name="line.147"></a>
 <span class="sourceLineNo">148</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.148"></a>
-<span class="sourceLineNo">149</span>   * C_M_DELETE_TABLE&lt;br&gt;<a name="line.149"></a>
-<span class="sourceLineNo">150</span>   * Client asking Master to delete a table.<a name="line.150"></a>
+<span class="sourceLineNo">149</span>   * C_M_MERGE_REGION&lt;br&gt;<a name="line.149"></a>
+<span class="sourceLineNo">150</span>   * Client asking Master to merge regions.<a name="line.150"></a>
 <span class="sourceLineNo">151</span>   */<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  C_M_DELETE_TABLE          (40, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.152"></a>
+<span class="sourceLineNo">152</span>  C_M_MERGE_REGION          (30, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.152"></a>
 <span class="sourceLineNo">153</span>  /**<a name="line.153"></a>
 <span class="sourceLineNo">154</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.154"></a>
-<span class="sourceLineNo">155</span>   * C_M_DISABLE_TABLE&lt;br&gt;<a name="line.155"></a>
-<span class="sourceLineNo">156</span>   * Client asking Master to disable a table.<a name="line.156"></a>
+<span class="sourceLineNo">155</span>   * C_M_DELETE_TABLE&lt;br&gt;<a name="line.155"></a>
+<span class="sourceLineNo">156</span>   * Client asking Master to delete a table.<a name="line.156"></a>
 <span class="sourceLineNo">157</span>   */<a name="line.157"></a>
-<span class="sourceLineNo">158</span>  C_M_DISABLE_TABLE         (41, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.158"></a>
+<span class="sourceLineNo">158</span>  C_M_DELETE_TABLE          (40, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.158"></a>
 <span class="sourceLineNo">159</span>  /**<a name="line.159"></a>
 <span class="sourceLineNo">160</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.160"></a>
-<span class="sourceLineNo">161</span>   * C_M_ENABLE_TABLE&lt;br&gt;<a name="line.161"></a>
-<span class="sourceLineNo">162</span>   * Client asking Master to enable a table.<a name="line.162"></a>
+<span class="sourceLineNo">161</span>   * C_M_DISABLE_TABLE&lt;br&gt;<a name="line.161"></a>
+<span class="sourceLineNo">162</span>   * Client asking Master to disable a table.<a name="line.162"></a>
 <span class="sourceLineNo">163</span>   */<a name="line.163"></a>
-<span class="sourceLineNo">164</span>  C_M_ENABLE_TABLE          (42, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.164"></a>
+<span class="sourceLineNo">164</span>  C_M_DISABLE_TABLE         (41, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.164"></a>
 <span class="sourceLineNo">165</span>  /**<a name="line.165"></a>
 <span class="sourceLineNo">166</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.166"></a>
-<span class="sourceLineNo">167</span>   * C_M_MODIFY_TABLE&lt;br&gt;<a name="line.167"></a>
-<span class="sourceLineNo">168</span>   * Client asking Master to modify a table.<a name="line.168"></a>
+<span class="sourceLineNo">167</span>   * C_M_ENABLE_TABLE&lt;br&gt;<a name="line.167"></a>
+<span class="sourceLineNo">168</span>   * Client asking Master to enable a table.<a name="line.168"></a>
 <span class="sourceLineNo">169</span>   */<a name="line.169"></a>
-<span class="sourceLineNo">170</span>  C_M_MODIFY_TABLE          (43, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.170"></a>
+<span class="sourceLineNo">170</span>  C_M_ENABLE_TABLE          (42, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.170"></a>
 <span class="sourceLineNo">171</span>  /**<a name="line.171"></a>
 <span class="sourceLineNo">172</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.172"></a>
-<span class="sourceLineNo">173</span>   * C_M_ADD_FAMILY&lt;br&gt;<a name="line.173"></a>
-<span class="sourceLineNo">174</span>   * Client asking Master to add family to table.<a name="line.174"></a>
+<span class="sourceLineNo">173</span>   * C_M_MODIFY_TABLE&lt;br&gt;<a name="line.173"></a>
+<span class="sourceLineNo">174</span>   * Client asking Master to modify a table.<a name="line.174"></a>
 <span class="sourceLineNo">175</span>   */<a name="line.175"></a>
-<span class="sourceLineNo">176</span>  C_M_ADD_FAMILY            (44, null),<a name="line.176"></a>
+<span class="sourceLineNo">176</span>  C_M_MODIFY_TABLE          (43, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.176"></a>
 <span class="sourceLineNo">177</span>  /**<a name="line.177"></a>
 <span class="sourceLineNo">178</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.178"></a>
-<span class="sourceLineNo">179</span>   * C_M_DELETE_FAMILY&lt;br&gt;<a name="line.179"></a>
-<span class="sourceLineNo">180</span>   * Client asking Master to delete family of table.<a name="line.180"></a>
+<span class="sourceLineNo">179</span>   * C_M_ADD_FAMILY&lt;br&gt;<a name="line.179"></a>
+<span class="sourceLineNo">180</span>   * Client asking Master to add family to table.<a name="line.180"></a>
 <span class="sourceLineNo">181</span>   */<a name="line.181"></a>
-<span class="sourceLineNo">182</span>  C_M_DELETE_FAMILY         (45, null),<a name="line.182"></a>
+<span class="sourceLineNo">182</span>  C_M_ADD_FAMILY            (44, null),<a name="line.182"></a>
 <span class="sourceLineNo">183</span>  /**<a name="line.183"></a>
 <span class="sourceLineNo">184</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.184"></a>
-<span class="sourceLineNo">185</span>   * C_M_MODIFY_FAMILY&lt;br&gt;<a name="line.185"></a>
-<span class="sourceLineNo">186</span>   * Client asking Master to modify family of table.<a name="line.186"></a>
+<span class="sourceLineNo">185</span>   * C_M_DELETE_FAMILY&lt;br&gt;<a name="line.185"></a>
+<span class="sourceLineNo">186</span>   * Client asking Master to delete family of table.<a name="line.186"></a>
 <span class="sourceLineNo">187</span>   */<a name="line.187"></a>
-<span class="sourceLineNo">188</span>  C_M_MODIFY_FAMILY         (46, null),<a name="line.188"></a>
+<span class="sourceLineNo">188</span>  C_M_DELETE_FAMILY         (45, null),<a name="line.188"></a>
 <span class="sourceLineNo">189</span>  /**<a name="line.189"></a>
 <span class="sourceLineNo">190</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.190"></a>
-<span class="sourceLineNo">191</span>   * C_M_CREATE_TABLE&lt;br&gt;<a name="line.191"></a>
-<span class="sourceLineNo">192</span>   * Client asking Master to create a table.<a name="line.192"></a>
+<span class="sourceLineNo">191</span>   * C_M_MODIFY_FAMILY&lt;br&gt;<a name="line.191"></a>
+<span class="sourceLineNo">192</span>   * Client asking Master to modify family of table.<a name="line.192"></a>
 <span class="sourceLineNo">193</span>   */<a name="line.193"></a>
-<span class="sourceLineNo">194</span>  C_M_CREATE_TABLE          (47, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.194"></a>
+<span class="sourceLineNo">194</span>  C_M_MODIFY_FAMILY         (46, null),<a name="line.194"></a>
 <span class="sourceLineNo">195</span>  /**<a name="line.195"></a>
 <span class="sourceLineNo">196</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.196"></a>
-<span class="sourceLineNo">197</span>   * C_M_SNAPSHOT_TABLE&lt;br&gt;<a name="line.197"></a>
-<span class="sourceLineNo">198</span>   * Client asking Master to snapshot an offline table.<a name="line.198"></a>
+<span class="sourceLineNo">197</span>   * C_M_CREATE_TABLE&lt;br&gt;<a name="line.197"></a>
+<span class="sourceLineNo">198</span>   * Client asking Master to create a table.<a name="line.198"></a>
 <span class="sourceLineNo">199</span>   */<a name="line.199"></a>
-<span class="sourceLineNo">200</span>  C_M_SNAPSHOT_TABLE        (48, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.200"></a>
+<span class="sourceLineNo">200</span>  C_M_CREATE_TABLE          (47, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.200"></a>
 <span class="sourceLineNo">201</span>  /**<a name="line.201"></a>
 <span class="sourceLineNo">202</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.202"></a>
-<span class="sourceLineNo">203</span>   * C_M_RESTORE_SNAPSHOT&lt;br&gt;<a name="line.203"></a>
-<span class="sourceLineNo">204</span>   * Client asking Master to restore a snapshot.<a name="line.204"></a>
+<span class="sourceLineNo">203</span>   * C_M_SNAPSHOT_TABLE&lt;br&gt;<a name="line.203"></a>
+<span class="sourceLineNo">204</span>   * Client asking Master to snapshot an offline table.<a name="line.204"></a>
 <span class="sourceLineNo">205</span>   */<a name="line.205"></a>
-<span class="sourceLineNo">206</span>  C_M_RESTORE_SNAPSHOT      (49, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.206"></a>
-<span class="sourceLineNo">207</span><a name="line.207"></a>
-<span class="sourceLineNo">208</span>  // Updates from master to ZK. This is done by the master and there is<a name="line.208"></a>
-<span class="sourceLineNo">209</span>  // nothing to process by either Master or RS<a name="line.209"></a>
-<span class="sourceLineNo">210</span>  /**<a name="line.210"></a>
-<span class="sourceLineNo">211</span>   * M_ZK_REGION_OFFLINE<a name="line.211"></a>
-<span class="sourceLineNo">212</span>   * Master adds this region as offline in ZK<a name="line.212"></a>
-<span class="sourceLineNo">213</span>   */<a name="line.213"></a>
-<span class="sourceLineNo">214</span>  M_ZK_REGION_OFFLINE       (50, null),<a name="line.214"></a>
-<span class="sourceLineNo">215</span>  /**<a name="line.215"></a>
-<span class="sourceLineNo">216</span>   * M_ZK_REGION_CLOSING<a name="line.216"></a>
-<span class="sourceLineNo">217</span>   * Master adds this region as closing in ZK<a name="line.217"></a>
-<span class="sourceLineNo">218</span>   */<a name="line.218"></a>
-<span class="sourceLineNo">219</span>  M_ZK_REGION_CLOSING       (51, null),<a name="line.219"></a>
-<span class="sourceLineNo">220</span><a name="line.220"></a>
+<span class="sourceLineNo">206</span>  C_M_SNAPSHOT_TABLE        (48, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.206"></a>
+<span class="sourceLineNo">207</span>  /**<a name="line.207"></a>
+<span class="sourceLineNo">208</span>   * Messages originating from Client to Master.&lt;br&gt;<a name="line.208"></a>
+<span class="sourceLineNo">209</span>   * C_M_RESTORE_SNAPSHOT&lt;br&gt;<a name="line.209"></a>
+<span class="sourceLineNo">210</span>   * Client asking Master to restore a snapshot.<a name="line.210"></a>
+<span class="sourceLineNo">211</span>   */<a name="line.211"></a>
+<span class="sourceLineNo">212</span>  C_M_RESTORE_SNAPSHOT      (49, ExecutorType.MASTER_TABLE_OPERATIONS),<a name="line.212"></a>
+<span class="sourceLineNo">213</span><a name="line.213"></a>
+<span class="sourceLineNo">214</span>  // Updates from master to ZK. This is done by the master and there is<a name="line.214"></a>
+<span class="sourceLineNo">215</span>  // nothing to process by either Master or RS<a name="line.215"></a>
+<span class="sourceLineNo">216</span>  /**<a name="line.216"></a>
+<span class="sourceLineNo">217</span>   * M_ZK_REGION_OFFLINE<a name="line.217"></a>
+<span class="sourceLineNo">218</span>   * Master adds this region as offline in ZK<a name="line.218"></a>
+<span class="sourceLineNo">219</span>   */<a name="line.219"></a>
+<span class="sourceLineNo">220</span>  M_ZK_REGION_OFFLINE       (50, null),<a name="line.220"></a>
 <span class="sourceLineNo">221</span>  /**<a name="line.221"></a>
-<span class="sourceLineNo">222</span>   * Master controlled events to be executed on the master<a name="line.222"></a>
-<span class="sourceLineNo">223</span>   * M_SERVER_SHUTDOWN<a name="line.223"></a>
-<span class="sourceLineNo">224</span>   * Master is processing shutdown of a RS<a name="line.224"></a>
-<span class="sourceLineNo">225</span>   */<a name="line.225"></a>
-<span class="sourceLineNo">226</span>  M_SERVER_SHUTDOWN         (70, ExecutorType.MASTER_SERVER_OPERATIONS),<a name="line.226"></a>
+<span class="sourceLineNo">222</span>   * M_ZK_REGION_CLOSING<a name="line.222"></a>
+<span class="sourceLineNo">223</span>   * Master adds this region as closing in ZK<a name="line.223"></a>
+<span class="sourceLineNo">224</span>   */<a name="line.224"></a>
+<span class="sourceLineNo">225</span>  M_ZK_REGION_CLOSING       (51, null),<a name="line.225"></a>
+<span class="sourceLineNo">226</span><a name="line.226"></a>
 <span class="sourceLineNo">227</span>  /**<a name="line.227"></a>
-<span class="sourceLineNo">228</span>   * Master controlled events to be executed on the master.&lt;br&gt;<a name="line.228"></a>
-<span class="sourceLineNo">229</span>   * M_META_SERVER_SHUTDOWN &lt;br&gt;<a name="line.229"></a>
-<span class="sourceLineNo">230</span>   * Master is processing shutdown of RS hosting a meta region (-ROOT- or hbase:meta).<a name="line.230"></a>
+<span class="sourceLineNo">228</span>   * Master controlled events to be executed on the master<a name="line.228"></a>
+<span class="sourceLineNo">229</span>   * M_SERVER_SHUTDOWN<a name="line.229"></a>
+<span class="sourceLineNo">230</span>   * Master is processing shutdown of a RS<a name="line.230"></a>
 <span class="sourceLineNo">231</span>   */<a name="line.231"></a>
-<span class="sourceLineNo">232</span>  M_META_SERVER_SHUTDOWN    (72, ExecutorType.MASTER_META_SERVER_OPERATIONS),<a name="line.232"></a>
+<span class="sourceLineNo">232</span>  M_SERVER_SHUTDOWN         (70, ExecutorType.MASTER_SERVER_OPERATIONS),<a name="line.232"></a>
 <span class="sourceLineNo">233</span>  /**<a name="line.233"></a>
 <span class="sourceLineNo">234</span>   * Master controlled events to be executed on the master.&lt;br&gt;<a name="line.234"></a>
-<span class="sourceLineNo">235</span>   *<a name="line.235"></a>
-<span class="sourceLineNo">236</span>   * M_MASTER_RECOVERY&lt;br&gt;<a name="line.236"></a>
-<span class="sourceLineNo">237</span>   * Master is processing recovery of regions found in ZK RIT<a name="line.237"></a>
-<span class="sourceLineNo">238</span>   */<a name="line.238"></a>
-<span class="sourceLineNo">239</span>  M_MASTER_RECOVERY         (73, ExecutorType.MASTER_SERVER_OPERATIONS),<a name="line.239"></a>
-<span class="sourceLineNo">240</span>  /**<a name="line.240"></a>
-<span class="sourceLineNo">241</span>   * Master controlled events to be executed on the master.&lt;br&gt;<a name="line.241"></a>
-<span class="sourceLineNo">242</span>   *<a name="line.242"></a>
-<span class="sourceLineNo">243</span>   * M_LOG_REPLAY&lt;br&gt;<a name="line.243"></a>
-<span class="sourceLineNo">244</span>   * Master is processing log replay of failed region server<a name="line.244"></a>
-<span class="sourceLineNo">245</span>   */<a name="line.245"></a>
-<span class="sourceLineNo">246</span>  M_LOG_REPLAY              (74, ExecutorType.M_LOG_REPLAY_OPS),<a name="line.246"></a>
-<span class="sourceLineNo">247</span><a name="line.247"></a>
-<span class="sourceLineNo">248</span>  /**<a name="line.248"></a>
-<span class="sourceLineNo">249</span>   * RS controlled events to be executed on the RS.&lt;br&gt;<a name="line.249"></a>
-<span class="sourceLineNo">250</span>   *<a name="line.250"></a>
-<span class="sourceLineNo">251</span>   * RS_PARALLEL_SEEK<a name="line.251"></a>
-<span class="sourceLineNo">252</span>   */<a name="line.252"></a>
-<span class="sourceLineNo">253</span>  RS_PARALLEL_SEEK          (80, ExecutorType.RS_PARALLEL_SEEK),<a name="line.253"></a>
-<span class="sourceLineNo">254</span><a name="line.254"></a>
-<span class="sourceLineNo">255</span>  /**<a name="line.255"></a>
-<span class="sourceLineNo">256</span>   * RS wal recovery work items(either creating recover.edits or directly replay wals)<a name="line.256"></a>
-<span class="sourceLineNo">257</span>   * to be executed on the RS.&lt;br&gt;<a name="line.257"></a>
-<span class="sourceLineNo">258</span>   *<a name="line.258"></a>
-<span class="sourceLineNo">259</span>   * RS_LOG_REPLAY<a name="line.259"></a>
-<span class="sourceLineNo">260</span>   */<a name="line.260"></a>
-<span class="sourceLineNo">261</span>  RS_LOG_REPLAY             (81, ExecutorType.RS_LOG_REPLAY_OPS),<a name="line.261"></a>
-<span class="sourceLineNo">262</span><a name="line.262"></a>
-<span class="sourceLineNo">263</span>  /**<a name="line.263"></a>
-<span class="sourceLineNo">264</span>   * RS flush triggering from secondary region replicas to primary region replica. &lt;br&gt;<a name="line.264"></a>
-<span class="sourceLineNo">265</span>   *<a name="line.265"></a>
-<span class="sourceLineNo">266</span>   * RS_REGION_REPLICA_FLUSH<a name="line.266"></a>
-<span class="sourceLineNo">267</span>   */<a name="line.267"></a>
-<span class="sourceLineNo">268</span>  RS_REGION_REPLICA_FLUSH   (82, ExecutorType.RS_REGION_REPLICA_FLUSH_OPS),<a name="line.268"></a>
-<span class="sourceLineNo">269</span><a name="line.269"></a>
-<span class="sourceLineNo">270</span>  /**<a name="line.270"></a>
-<span class="sourceLineNo">271</span>   * RS compacted files discharger &lt;br&gt;<a name="line.271"></a>
-<span class="sourceLineNo">272</span>   *<a name="line.272"></a>
-<span class="sourceLineNo">273</span>   * RS_COMPACTED_FILES_DISCHARGER<a name="line.273"></a>
-<span class="sourceLineNo">274</span>   */<a name="line.274"></a>
-<span class="sourceLineNo">275</span>  RS_COMPACTED_FILES_DISCHARGER (83, ExecutorType.RS_COMPACTED_FILES_DISCHARGER);<a name="line.275"></a>
-<span class="sourceLineNo">276</span><a name="line.276"></a>
-<span class="sourceLineNo">277</span>  private final int code;<a name="line.277"></a>
-<span class="sourceLineNo">278</span>  private final ExecutorType executor;<a name="line.278"></a>
-<span class="sourceLineNo">279</span><a name="line.279"></a>
-<span class="sourceLineNo">280</span>  /**<a name="line.280"></a>
-<span class="sourceLineNo">281</span>   * Constructor<a name="line.281"></a>
-<span class="sourceLineNo">282</span>   */<a name="line.282"></a>
-<span class="sourceLineNo">283</span>  EventType(final int code, final ExecutorType executor) {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>    this.code = code;<a name="line.284"></a>
-<span class="sourceLineNo">285</span>    this.executor = executor;<a name="line.285"></a>
-<span class="sourceLineNo">286</span>  }<a name="line.286"></a>
-<span class="sourceLineNo">287</span><a name="line.287"></a>
-<span class="sourceLineNo">288</span>  public int getCode() {<a name="line.288"></a>
-<span class="sourceLineNo">289</span>    return this.code;<a name="line.289"></a>
-<span class="sourceLineNo">290</span>  }<a name="line.290"></a>
-<span class="sourceLineNo">291</span><a name="line.291"></a>
-<span class="sourceLineNo">292</span>  public static EventType get(final int code) {<a name="line.292"></a>
-<span class="sourceLineNo">293</span>    // Is this going to be slow?  Its used rare but still...<a name="line.293"></a>
-<span class="sourceLineNo">294</span>    for (EventType et: EventType.values()) {<a name="line.294"></a>
-<span class="sourceLineNo">295</span>      if (et.getCode() == code) return et;<a name="line.295"></a>
-<span class="sourceLineNo">296</span>    }<a name="line.296"></a>
-<span class="sourceLineNo">297</span>    throw new IllegalArgumentException("Unknown code " + code);<a name="line.297"></a>
-<span class="sourceLineNo">298</span>  }<a name="line.298"></a>
-<span class="sourceLineNo">299</span><a name="line.299"></a>
-<span class="sourceLineNo">300</span>  public boolean isOnlineSchemaChangeSupported() {<a name="line.300"></a>
-<span class="sourceLineNo">301</span>    return (<a name="line.301"></a>
-<span class="sourceLineNo">302</span>      this.equals(EventType.C_M_ADD_FAMILY) ||<a name="line.302"></a>
-<span class="sourceLineNo">303</span>      this.equals(EventType.C_M_DELETE_FAMILY) ||<a name="line.303"></a>
-<span class="sourceLineNo">304</span>      this.equals(EventType.C_M_MODIFY_FAMILY) ||<a name="line.304"></a>
-<span class="sourceLineNo">305</span>      this.equals(EventType.C_M_MODIFY_TABLE)<a name="line.305"></a>
-<span class="sourceLineNo">306</span>    );<a name="line.306"></a>
-<span class="sourceLineNo">307</span>  }<a name="line.307"></a>
-<span class="sourceLineNo">308</span><a name="line.308"></a>
-<span class="sourceLineNo">309</span>  ExecutorType getExecutorServiceType() {<a name="line.309"></a>
-<span class="sourceLineNo">310</span>    return this.executor;<a name="line.310"></a>
-<span class="sourceLineNo">311</span>  }<a name="line.311"></a>
-<span class="sourceLineNo">312</span>}<a name="line.312"></a>
+<span class="sourceLineNo">235</span>   * M_META_SERVER_SHUTDOWN &lt;br&gt;<a name="line.235"></a>
+<span class="sourceLineNo">236</span>   * Master is processing shutdown of RS hosting a meta region (-ROOT- or hbase:meta).<a name="line.236"></a>
+<span class="sourceLineNo">237</span>   */<a name="line.237"></a>
+<span class="sourceLineNo">238</span>  M_META_SERVER_SHUTDOWN    (72, ExecutorType.MASTER_META_SERVER_OPERATIONS),<a name="line.238"></a>
+<span class="sourceLineNo">239</span>  /**<a name="line.239"></a>
+<span class="sourceLineNo">240</span>   * Master controlled events to be executed on the master.&lt;br&gt;<a name="line.240"></a>
+<span class="sourceLineNo">241</span>   *<a name="line.241"></a>
+<span class="sourceLineNo">242</span>   * M_MASTER_RECOVERY&lt;br&gt;<a name="line.242"></a>
+<span class="sourceLineNo">243</span>   * Master is processing recovery of regions found in ZK RIT<a name="line.243"></a>
+<span class="sourceLineNo">244</span>   */<a name="line.244"></a>
+<span class="sourceLineNo">245</span>  M_MASTER_RECOVERY         (73, ExecutorType.MASTER_SERVER_OPERATIONS),<a name="line.245"></a>
+<span class="sourceLineNo">246</span>  /**<a name="line.246"></a>
+<span class="sourceLineNo">247</span>   * Master controlled events to be executed on the master.&lt;br&gt;<a name="line.247"></a>
+<span class="sourceLineNo">248</span>   *<a name="line.248"></a>
+<span class="sourceLineNo">249</span>   * M_LOG_REPLAY&lt;br&gt;<a name="line.249"></a>
+<span class="sourceLineNo">250</span>   * Master is processing log replay of failed region server<a name="line.250"></a>
+<span class="sourceLineNo">251</span>   */<a name="line.251"></a>
+<span class="sourceLineNo">252</span>  M_LOG_REPLAY              (74, ExecutorType.M_LOG_REPLAY_OPS),<a name="line.252"></a>
+<span class="sourceLineNo">253</span><a name="line.253"></a>
+<span class="sourceLineNo">254</span>  /**<a name="line.254"></a>
+<span class="sourceLineNo">255</span>   * RS controlled events to be executed on the RS.&lt;br&gt;<a name="line.255"></a>
+<span class="sourceLineNo">256</span>   *<a name="line.256"></a>
+<span class="sourceLineNo">257</span>   * RS_PARALLEL_SEEK<a name="line.257"></a>
+<span class="sourceLineNo">258</span>   */<a name="line.258"></a>
+<span class="sourceLineNo">259</span>  RS_PARALLEL_SEEK          (80, ExecutorType.RS_PARALLEL_SEEK),<a name="line.259"></a>
+<span class="sourceLineNo">260</span><a name="line.260"></a>
+<span class="sourceLineNo">261</span>  /**<a name="line.261"></a>
+<span class="sourceLineNo">262</span>   * RS wal recovery work items(either creating recover.edits or directly replay wals)<a name="line.262"></a>
+<span class="sourceLineNo">263</span>   * to be executed on the RS.&lt;br&gt;<a name="line.263"></a>
+<span class="sourceLineNo">264</span>   *<a name="line.264"></a>
+<span class="sourceLineNo">265</span>   * RS_LOG_REPLAY<a name="line.265"></a>
+<span class="sourceLineNo">266</span>   */<a name="line.266"></a>
+<span class="sourceLineNo">267</span>  RS_LOG_REPLAY             (81, ExecutorType.RS_LOG_REPLAY_OPS),<a name="line.267"></a>
+<span class="sourceLineNo">268</span><a name="line.268"></a>
+<span class="sourceLineNo">269</span>  /**<a name="line.269"></a>
+<span class="sourceLineNo">270</span>   * RS flush triggering from secondary region replicas to primary region replica. &lt;br&gt;<a name="line.270"></a>
+<span class="sourceLineNo">271</span>   *<a name="line.271"></a>
+<span class="sourceLineNo">272</span>   * RS_REGION_REPLICA_FLUSH<a name="line.272"></a>
+<span class="sourceLineNo">273</span>   */<a name="line.273"></a>
+<span class="sourceLineNo">274</span>  RS_REGION_REPLICA_FLUSH   (82, ExecutorType.RS_REGION_REPLICA_FLUSH_OPS),<a name="line.274"></a>
+<span class="sourceLineNo">275</span><a name="line.275"></a>
+<span class="sourceLineNo">276</span>  /**<a name="line.276"></a>
+<span class="sourceLineNo">277</span>   * RS compacted files discharger &lt;br&gt;<a name="line.277"></a>
+<span class="sourceLineNo">278</span>   *<a name="line.278"></a>
+<span class="sourceLineNo">279</span>   * RS_COMPACTED_FILES_DISCHARGER<a name="line.279"></a>
+<span class="sourceLineNo">280</span>   */<a name="line.280"></a>
+<span class="sourceLineNo">281</span>  RS_COMPACTED_FILES_DISCHARGER (83, ExecutorType.RS_COMPACTED_FILES_DISCHARGER);<a name="line.281"></a>
+<span class="sourceLineNo">282</span><a name="line.282"></a>
+<span class="sourceLineNo">283</span>  private final int code;<a name="line.283"></a>
+<span class="sourceLineNo">284</span>  private final ExecutorType executor;<a name="line.284"></a>
+<span class="sourceLineNo">285</span><a name="line.285"></a>
+<span class="sourceLineNo">286</span>  /**<a name="line.286"></a>
+<span class="sourceLineNo">287</span>   * Constructor<a name="line.287"></a>
+<span class="sourceLineNo">288</span>   */<a name="line.288"></a>
+<span class="sourceLineNo">289</span>  EventType(final int code, final ExecutorType executor) {<a name="line.289"></a>
+<span class="sourceLineNo">290</span>    this.code = code;<a name="line.290"></a>
+<span class="sourceLineNo">291</span>    this.executor = executor;<a name="line.291"></a>
+<span class="sourceLineNo">292</span>  }<a name="line.292"></a>
+<span class="sourceLineNo">293</span><a name="line.293"></a>
+<span class="sourceLineNo">294</span>  public int getCode() {<a name="line.294"></a>
+<span class="sourceLineNo">295</span>    return this.code;<a name="line.295"></a>
+<span class="sourceLineNo">296</span>  }<a name="line.296"></a>
+<span class="sourceLineNo">297</span><a name="line.297"></a>
+<span class="sourceLineNo">298</span>  public static EventType get(final int code) {<a name="line.298"></a>
+<span class="sourceLineNo">299</span>    // Is this going to be slow?  Its used rare but still...<a name="line.299"></a>
+<span class="sourceLineNo">300</span>    for (EventType et: EventType.values()) {<a name="line.300"></a>
+<span class="sourceLineNo">301</span>      if (et.getCode() == code) return et;<a name="line.301"></a>
+<span class="sourceLineNo">302</span>    }<a name="line.302"></a>
+<span class="sourceLineNo">303</span>    throw new IllegalArgumentException("Unknown code " + code);<a name="line.303"></a>
+<span class="sourceLineNo">304</span>  }<a name="line.304"></a>
+<span class="sourceLineNo">305</span><a name="line.305"></a>
+<span class="sourceLineNo">306</span>  public boolean isOnlineSchemaChangeSupported() {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>    return (<a name="line.307"></a>
+<span class="sourceLineNo">308</span>      this.equals(EventType.C_M_ADD_FAMILY) ||<a name="line.308"></a>
+<span class="sourceLineNo">309</span>      this.equals(EventType.C_M_DELETE_FAMILY) ||<a name="line.309"></a>
+<span class="sourceLineNo">310</span>      this.equals(EventType.C_M_MODIFY_FAMILY) ||<a name="line.310"></a>
+<span class="sourceLineNo">311</span>      this.equals(EventType.C_M_MODIFY_TABLE)<a name="line.311"></a>
+<span class="sourceLineNo">312</span>    );<a name="line.312"></a>
+<span class="sourceLineNo">313</span>  }<a name="line.313"></a>
+<span class="sourceLineNo">314</span><a name="line.314"></a>
+<span class="sourceLineNo">315</span>  ExecutorType getExecutorServiceType() {<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    return this.executor;<a name="line.316"></a>
+<span class="sourceLineNo">317</span>  }<a name="line.317"></a>
+<span class="sourceLineNo">318</span>}<a name="line.318"></a>
 
 
 

http://git-wip-us.apache.org/repos/asf/hbase-site/blob/975096b1/devapidocs/src-html/org/apache/hadoop/hbase/executor/ExecutorService.Executor.html
----------------------------------------------------------------------
diff --git a/devapidocs/src-html/org/apache/hadoop/hbase/executor/ExecutorService.Executor.html b/devapidocs/src-html/org/apache/hadoop/hbase/executor/ExecutorService.Executor.html
index 94356e6..47fdd86 100644
--- a/devapidocs/src-html/org/apache/hadoop/hbase/executor/ExecutorService.Executor.html
+++ b/devapidocs/src-html/org/apache/hadoop/hbase/executor/ExecutorService.Executor.html
@@ -127,208 +127,217 @@
 <span class="sourceLineNo">119</span>    return executor;<a name="line.119"></a>
 <span class="sourceLineNo">120</span>  }<a name="line.120"></a>
 <span class="sourceLineNo">121</span><a name="line.121"></a>
-<span class="sourceLineNo">122</span><a name="line.122"></a>
-<span class="sourceLineNo">123</span>  public void startExecutorService(final ExecutorType type, final int maxThreads) {<a name="line.123"></a>
-<span class="sourceLineNo">124</span>    String name = type.getExecutorName(this.servername);<a name="line.124"></a>
-<span class="sourceLineNo">125</span>    if (isExecutorServiceRunning(name)) {<a name="line.125"></a>
-<span class="sourceLineNo">126</span>      LOG.debug("Executor service " + toString() + " already running on " +<a name="line.126"></a>
-<span class="sourceLineNo">127</span>          this.servername);<a name="line.127"></a>
-<span class="sourceLineNo">128</span>      return;<a name="line.128"></a>
-<span class="sourceLineNo">129</span>    }<a name="line.129"></a>
-<span class="sourceLineNo">130</span>    startExecutorService(name, maxThreads);<a name="line.130"></a>
-<span class="sourceLineNo">131</span>  }<a name="line.131"></a>
-<span class="sourceLineNo">132</span><a name="line.132"></a>
-<span class="sourceLineNo">133</span>  public void submit(final EventHandler eh) {<a name="line.133"></a>
-<span class="sourceLineNo">134</span>    Executor executor = getExecutor(eh.getEventType().getExecutorServiceType());<a name="line.134"></a>
-<span class="sourceLineNo">135</span>    if (executor == null) {<a name="line.135"></a>
-<span class="sourceLineNo">136</span>      // This happens only when events are submitted after shutdown() was<a name="line.136"></a>
-<span class="sourceLineNo">137</span>      // called, so dropping them should be "ok" since it means we're<a name="line.137"></a>
-<span class="sourceLineNo">138</span>      // shutting down.<a name="line.138"></a>
-<span class="sourceLineNo">139</span>      LOG.error("Cannot submit [" + eh + "] because the executor is missing." +<a name="line.139"></a>
-<span class="sourceLineNo">140</span>        " Is this process shutting down?");<a name="line.140"></a>
-<span class="sourceLineNo">141</span>    } else {<a name="line.141"></a>
-<span class="sourceLineNo">142</span>      executor.submit(eh);<a name="line.142"></a>
-<span class="sourceLineNo">143</span>    }<a name="line.143"></a>
-<span class="sourceLineNo">144</span>  }<a name="line.144"></a>
-<span class="sourceLineNo">145</span><a name="line.145"></a>
-<span class="sourceLineNo">146</span>  public Map&lt;String, ExecutorStatus&gt; getAllExecutorStatuses() {<a name="line.146"></a>
-<span class="sourceLineNo">147</span>    Map&lt;String, ExecutorStatus&gt; ret = Maps.newHashMap();<a name="line.147"></a>
-<span class="sourceLineNo">148</span>    for (Map.Entry&lt;String, Executor&gt; e : executorMap.entrySet()) {<a name="line.148"></a>
-<span class="sourceLineNo">149</span>      ret.put(e.getKey(), e.getValue().getStatus());<a name="line.149"></a>
-<span class="sourceLineNo">150</span>    }<a name="line.150"></a>
-<span class="sourceLineNo">151</span>    return ret;<a name="line.151"></a>
-<span class="sourceLineNo">152</span>  }<a name="line.152"></a>
-<span class="sourceLineNo">153</span>  <a name="line.153"></a>
-<span class="sourceLineNo">154</span>  /**<a name="line.154"></a>
-<span class="sourceLineNo">155</span>   * Executor instance.<a name="line.155"></a>
-<span class="sourceLineNo">156</span>   */<a name="line.156"></a>
-<span class="sourceLineNo">157</span>  static class Executor {<a name="line.157"></a>
-<span class="sourceLineNo">158</span>    // how long to retain excess threads<a name="line.158"></a>
-<span class="sourceLineNo">159</span>    static final long keepAliveTimeInMillis = 1000;<a name="line.159"></a>
-<span class="sourceLineNo">160</span>    // the thread pool executor that services the requests<a name="line.160"></a>
-<span class="sourceLineNo">161</span>    final TrackingThreadPoolExecutor threadPoolExecutor;<a name="line.161"></a>
-<span class="sourceLineNo">162</span>    // work queue to use - unbounded queue<a name="line.162"></a>
-<span class="sourceLineNo">163</span>    final BlockingQueue&lt;Runnable&gt; q = new LinkedBlockingQueue&lt;Runnable&gt;();<a name="line.163"></a>
-<span class="sourceLineNo">164</span>    private final String name;<a name="line.164"></a>
-<span class="sourceLineNo">165</span>    private static final AtomicLong seqids = new AtomicLong(0);<a name="line.165"></a>
-<span class="sourceLineNo">166</span>    private final long id;<a name="line.166"></a>
-<span class="sourceLineNo">167</span><a name="line.167"></a>
-<span class="sourceLineNo">168</span>    protected Executor(String name, int maxThreads) {<a name="line.168"></a>
-<span class="sourceLineNo">169</span>      this.id = seqids.incrementAndGet();<a name="line.169"></a>
-<span class="sourceLineNo">170</span>      this.name = name;<a name="line.170"></a>
-<span class="sourceLineNo">171</span>      // create the thread pool executor<a name="line.171"></a>
-<span class="sourceLineNo">172</span>      this.threadPoolExecutor = new TrackingThreadPoolExecutor(<a name="line.172"></a>
-<span class="sourceLineNo">173</span>          maxThreads, maxThreads,<a name="line.173"></a>
-<span class="sourceLineNo">174</span>          keepAliveTimeInMillis, TimeUnit.MILLISECONDS, q);<a name="line.174"></a>
-<span class="sourceLineNo">175</span>      // name the threads for this threadpool<a name="line.175"></a>
-<span class="sourceLineNo">176</span>      ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();<a name="line.176"></a>
-<span class="sourceLineNo">177</span>      tfb.setNameFormat(this.name + "-%d");<a name="line.177"></a>
-<span class="sourceLineNo">178</span>      this.threadPoolExecutor.setThreadFactory(tfb.build());<a name="line.178"></a>
-<span class="sourceLineNo">179</span>    }<a name="line.179"></a>
-<span class="sourceLineNo">180</span><a name="line.180"></a>
-<span class="sourceLineNo">181</span>    /**<a name="line.181"></a>
-<span class="sourceLineNo">182</span>     * Submit the event to the queue for handling.<a name="line.182"></a>
-<span class="sourceLineNo">183</span>     * @param event<a name="line.183"></a>
-<span class="sourceLineNo">184</span>     */<a name="line.184"></a>
-<span class="sourceLineNo">185</span>    void submit(final EventHandler event) {<a name="line.185"></a>
-<span class="sourceLineNo">186</span>      // If there is a listener for this type, make sure we call the before<a name="line.186"></a>
-<span class="sourceLineNo">187</span>      // and after process methods.<a name="line.187"></a>
-<span class="sourceLineNo">188</span>      this.threadPoolExecutor.execute(event);<a name="line.188"></a>
-<span class="sourceLineNo">189</span>    }<a name="line.189"></a>
-<span class="sourceLineNo">190</span>    <a name="line.190"></a>
-<span class="sourceLineNo">191</span>    public String toString() {<a name="line.191"></a>
-<span class="sourceLineNo">192</span>      return getClass().getSimpleName() + "-" + id + "-" + name;<a name="line.192"></a>
+<span class="sourceLineNo">122</span>  @VisibleForTesting<a name="line.122"></a>
+<span class="sourceLineNo">123</span>  public ThreadPoolExecutor getExecutorThreadPool(final ExecutorType type) {<a name="line.123"></a>
+<span class="sourceLineNo">124</span>    return getExecutor(type).getThreadPoolExecutor();<a name="line.124"></a>
+<span class="sourceLineNo">125</span>  }<a name="line.125"></a>
+<span class="sourceLineNo">126</span><a name="line.126"></a>
+<span class="sourceLineNo">127</span>  public void startExecutorService(final ExecutorType type, final int maxThreads) {<a name="line.127"></a>
+<span class="sourceLineNo">128</span>    String name = type.getExecutorName(this.servername);<a name="line.128"></a>
+<span class="sourceLineNo">129</span>    if (isExecutorServiceRunning(name)) {<a name="line.129"></a>
+<span class="sourceLineNo">130</span>      LOG.debug("Executor service " + toString() + " already running on " +<a name="line.130"></a>
+<span class="sourceLineNo">131</span>          this.servername);<a name="line.131"></a>
+<span class="sourceLineNo">132</span>      return;<a name="line.132"></a>
+<span class="sourceLineNo">133</span>    }<a name="line.133"></a>
+<span class="sourceLineNo">134</span>    startExecutorService(name, maxThreads);<a name="line.134"></a>
+<span class="sourceLineNo">135</span>  }<a name="line.135"></a>
+<span class="sourceLineNo">136</span><a name="line.136"></a>
+<span class="sourceLineNo">137</span>  public void submit(final EventHandler eh) {<a name="line.137"></a>
+<span class="sourceLineNo">138</span>    Executor executor = getExecutor(eh.getEventType().getExecutorServiceType());<a name="line.138"></a>
+<span class="sourceLineNo">139</span>    if (executor == null) {<a name="line.139"></a>
+<span class="sourceLineNo">140</span>      // This happens only when events are submitted after shutdown() was<a name="line.140"></a>
+<span class="sourceLineNo">141</span>      // called, so dropping them should be "ok" since it means we're<a name="line.141"></a>
+<span class="sourceLineNo">142</span>      // shutting down.<a name="line.142"></a>
+<span class="sourceLineNo">143</span>      LOG.error("Cannot submit [" + eh + "] because the executor is missing." +<a name="line.143"></a>
+<span class="sourceLineNo">144</span>        " Is this process shutting down?");<a name="line.144"></a>
+<span class="sourceLineNo">145</span>    } else {<a name="line.145"></a>
+<span class="sourceLineNo">146</span>      executor.submit(eh);<a name="line.146"></a>
+<span class="sourceLineNo">147</span>    }<a name="line.147"></a>
+<span class="sourceLineNo">148</span>  }<a name="line.148"></a>
+<span class="sourceLineNo">149</span><a name="line.149"></a>
+<span class="sourceLineNo">150</span>  public Map&lt;String, ExecutorStatus&gt; getAllExecutorStatuses() {<a name="line.150"></a>
+<span class="sourceLineNo">151</span>    Map&lt;String, ExecutorStatus&gt; ret = Maps.newHashMap();<a name="line.151"></a>
+<span class="sourceLineNo">152</span>    for (Map.Entry&lt;String, Executor&gt; e : executorMap.entrySet()) {<a name="line.152"></a>
+<span class="sourceLineNo">153</span>      ret.put(e.getKey(), e.getValue().getStatus());<a name="line.153"></a>
+<span class="sourceLineNo">154</span>    }<a name="line.154"></a>
+<span class="sourceLineNo">155</span>    return ret;<a name="line.155"></a>
+<span class="sourceLineNo">156</span>  }<a name="line.156"></a>
+<span class="sourceLineNo">157</span><a name="line.157"></a>
+<span class="sourceLineNo">158</span>  /**<a name="line.158"></a>
+<span class="sourceLineNo">159</span>   * Executor instance.<a name="line.159"></a>
+<span class="sourceLineNo">160</span>   */<a name="line.160"></a>
+<span class="sourceLineNo">161</span>  static class Executor {<a name="line.161"></a>
+<span class="sourceLineNo">162</span>    // how long to retain excess threads<a name="line.162"></a>
+<span class="sourceLineNo">163</span>    static final long keepAliveTimeInMillis = 1000;<a name="line.163"></a>
+<span class="sourceLineNo">164</span>    // the thread pool executor that services the requests<a name="line.164"></a>
+<span class="sourceLineNo">165</span>    final TrackingThreadPoolExecutor threadPoolExecutor;<a name="line.165"></a>
+<span class="sourceLineNo">166</span>    // work queue to use - unbounded queue<a name="line.166"></a>
+<span class="sourceLineNo">167</span>    final BlockingQueue&lt;Runnable&gt; q = new LinkedBlockingQueue&lt;Runnable&gt;();<a name="line.167"></a>
+<span class="sourceLineNo">168</span>    private final String name;<a name="line.168"></a>
+<span class="sourceLineNo">169</span>    private static final AtomicLong seqids = new AtomicLong(0);<a name="line.169"></a>
+<span class="sourceLineNo">170</span>    private final long id;<a name="line.170"></a>
+<span class="sourceLineNo">171</span><a name="line.171"></a>
+<span class="sourceLineNo">172</span>    protected Executor(String name, int maxThreads) {<a name="line.172"></a>
+<span class="sourceLineNo">173</span>      this.id = seqids.incrementAndGet();<a name="line.173"></a>
+<span class="sourceLineNo">174</span>      this.name = name;<a name="line.174"></a>
+<span class="sourceLineNo">175</span>      // create the thread pool executor<a name="line.175"></a>
+<span class="sourceLineNo">176</span>      this.threadPoolExecutor = new TrackingThreadPoolExecutor(<a name="line.176"></a>
+<span class="sourceLineNo">177</span>          maxThreads, maxThreads,<a name="line.177"></a>
+<span class="sourceLineNo">178</span>          keepAliveTimeInMillis, TimeUnit.MILLISECONDS, q);<a name="line.178"></a>
+<span class="sourceLineNo">179</span>      // name the threads for this threadpool<a name="line.179"></a>
+<span class="sourceLineNo">180</span>      ThreadFactoryBuilder tfb = new ThreadFactoryBuilder();<a name="line.180"></a>
+<span class="sourceLineNo">181</span>      tfb.setNameFormat(this.name + "-%d");<a name="line.181"></a>
+<span class="sourceLineNo">182</span>      this.threadPoolExecutor.setThreadFactory(tfb.build());<a name="line.182"></a>
+<span class="sourceLineNo">183</span>    }<a name="line.183"></a>
+<span class="sourceLineNo">184</span><a name="line.184"></a>
+<span class="sourceLineNo">185</span>    /**<a name="line.185"></a>
+<span class="sourceLineNo">186</span>     * Submit the event to the queue for handling.<a name="line.186"></a>
+<span class="sourceLineNo">187</span>     * @param event<a name="line.187"></a>
+<span class="sourceLineNo">188</span>     */<a name="line.188"></a>
+<span class="sourceLineNo">189</span>    void submit(final EventHandler event) {<a name="line.189"></a>
+<span class="sourceLineNo">190</span>      // If there is a listener for this type, make sure we call the before<a name="line.190"></a>
+<span class="sourceLineNo">191</span>      // and after process methods.<a name="line.191"></a>
+<span class="sourceLineNo">192</span>      this.threadPoolExecutor.execute(event);<a name="line.192"></a>
 <span class="sourceLineNo">193</span>    }<a name="line.193"></a>
 <span class="sourceLineNo">194</span><a name="line.194"></a>
-<span class="sourceLineNo">195</span>    public ExecutorStatus getStatus() {<a name="line.195"></a>
-<span class="sourceLineNo">196</span>      List&lt;EventHandler&gt; queuedEvents = Lists.newArrayList();<a name="line.196"></a>
-<span class="sourceLineNo">197</span>      for (Runnable r : q) {<a name="line.197"></a>
-<span class="sourceLineNo">198</span>        if (!(r instanceof EventHandler)) {<a name="line.198"></a>
-<span class="sourceLineNo">199</span>          LOG.warn("Non-EventHandler " + r + " queued in " + name);<a name="line.199"></a>
-<span class="sourceLineNo">200</span>          continue;<a name="line.200"></a>
-<span class="sourceLineNo">201</span>        }<a name="line.201"></a>
-<span class="sourceLineNo">202</span>        queuedEvents.add((EventHandler)r);<a name="line.202"></a>
-<span class="sourceLineNo">203</span>      }<a name="line.203"></a>
-<span class="sourceLineNo">204</span>      <a name="line.204"></a>
-<span class="sourceLineNo">205</span>      List&lt;RunningEventStatus&gt; running = Lists.newArrayList();<a name="line.205"></a>
-<span class="sourceLineNo">206</span>      for (Map.Entry&lt;Thread, Runnable&gt; e :<a name="line.206"></a>
-<span class="sourceLineNo">207</span>          threadPoolExecutor.getRunningTasks().entrySet()) {<a name="line.207"></a>
-<span class="sourceLineNo">208</span>        Runnable r = e.getValue();<a name="line.208"></a>
-<span class="sourceLineNo">209</span>        if (!(r instanceof EventHandler)) {<a name="line.209"></a>
-<span class="sourceLineNo">210</span>          LOG.warn("Non-EventHandler " + r + " running in " + name);<a name="line.210"></a>
-<span class="sourceLineNo">211</span>          continue;<a name="line.211"></a>
-<span class="sourceLineNo">212</span>        }<a name="line.212"></a>
-<span class="sourceLineNo">213</span>        running.add(new RunningEventStatus(e.getKey(), (EventHandler)r));<a name="line.213"></a>
-<span class="sourceLineNo">214</span>      }<a name="line.214"></a>
-<span class="sourceLineNo">215</span>      <a name="line.215"></a>
-<span class="sourceLineNo">216</span>      return new ExecutorStatus(this, queuedEvents, running);<a name="line.216"></a>
-<span class="sourceLineNo">217</span>    }<a name="line.217"></a>
-<span class="sourceLineNo">218</span>  }<a name="line.218"></a>
-<span class="sourceLineNo">219</span> <a name="line.219"></a>
-<span class="sourceLineNo">220</span>  /**<a name="line.220"></a>
-<span class="sourceLineNo">221</span>   * A subclass of ThreadPoolExecutor that keeps track of the Runnables that<a name="line.221"></a>
-<span class="sourceLineNo">222</span>   * are executing at any given point in time.<a name="line.222"></a>
-<span class="sourceLineNo">223</span>   */<a name="line.223"></a>
-<span class="sourceLineNo">224</span>  static class TrackingThreadPoolExecutor extends ThreadPoolExecutor {<a name="line.224"></a>
-<span class="sourceLineNo">225</span>    private ConcurrentMap&lt;Thread, Runnable&gt; running = Maps.newConcurrentMap(); <a name="line.225"></a>
-<span class="sourceLineNo">226</span>      <a name="line.226"></a>
-<span class="sourceLineNo">227</span>    public TrackingThreadPoolExecutor(int corePoolSize, int maximumPoolSize,<a name="line.227"></a>
-<span class="sourceLineNo">228</span>        long keepAliveTime, TimeUnit unit, BlockingQueue&lt;Runnable&gt; workQueue) {<a name="line.228"></a>
-<span class="sourceLineNo">229</span>      super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);<a name="line.229"></a>
-<span class="sourceLineNo">230</span>    }<a name="line.230"></a>
-<span class="sourceLineNo">231</span><a name="line.231"></a>
-<span class="sourceLineNo">232</span>    @Override<a name="line.232"></a>
-<span class="sourceLineNo">233</span>    protected void afterExecute(Runnable r, Throwable t) {<a name="line.233"></a>
-<span class="sourceLineNo">234</span>      super.afterExecute(r, t);<a name="line.234"></a>
-<span class="sourceLineNo">235</span>      running.remove(Thread.currentThread());<a name="line.235"></a>
-<span class="sourceLineNo">236</span>    }<a name="line.236"></a>
-<span class="sourceLineNo">237</span><a name="line.237"></a>
-<span class="sourceLineNo">238</span>    @Override<a name="line.238"></a>
-<span class="sourceLineNo">239</span>    protected void beforeExecute(Thread t, Runnable r) {<a name="line.239"></a>
-<span class="sourceLineNo">240</span>      Runnable oldPut = running.put(t, r);<a name="line.240"></a>
-<span class="sourceLineNo">241</span>      assert oldPut == null : "inconsistency for thread " + t;<a name="line.241"></a>
-<span class="sourceLineNo">242</span>      super.beforeExecute(t, r);<a name="line.242"></a>
-<span class="sourceLineNo">243</span>    }<a name="line.243"></a>
-<span class="sourceLineNo">244</span>   <a name="line.244"></a>
-<span class="sourceLineNo">245</span>    /**<a name="line.245"></a>
-<span class="sourceLineNo">246</span>     * @return a map of the threads currently running tasks<a name="line.246"></a>
-<span class="sourceLineNo">247</span>     * inside this executor. Each key is an active thread,<a name="line.247"></a>
-<span class="sourceLineNo">248</span>     * and the value is the task that is currently running.<a name="line.248"></a>
-<span class="sourceLineNo">249</span>     * Note that this is not a stable snapshot of the map.<a name="line.249"></a>
-<span class="sourceLineNo">250</span>     */<a name="line.250"></a>
-<span class="sourceLineNo">251</span>    public ConcurrentMap&lt;Thread, Runnable&gt; getRunningTasks() {<a name="line.251"></a>
-<span class="sourceLineNo">252</span>      return running;<a name="line.252"></a>
-<span class="sourceLineNo">253</span>    }<a name="line.253"></a>
-<span class="sourceLineNo">254</span>  }<a name="line.254"></a>
-<span class="sourceLineNo">255</span><a name="line.255"></a>
-<span class="sourceLineNo">256</span>  /**<a name="line.256"></a>
-<span class="sourceLineNo">257</span>   * A snapshot of the status of a particular executor. This includes<a name="line.257"></a>
-<span class="sourceLineNo">258</span>   * the contents of the executor's pending queue, as well as the<a name="line.258"></a>
-<span class="sourceLineNo">259</span>   * threads and events currently being processed.<a name="line.259"></a>
-<span class="sourceLineNo">260</span>   *<a name="line.260"></a>
-<span class="sourceLineNo">261</span>   * This is a consistent snapshot that is immutable once constructed.<a name="line.261"></a>
-<span class="sourceLineNo">262</span>   */<a name="line.262"></a>
-<span class="sourceLineNo">263</span>  public static class ExecutorStatus {<a name="line.263"></a>
-<span class="sourceLineNo">264</span>    final Executor executor;<a name="line.264"></a>
-<span class="sourceLineNo">265</span>    final List&lt;EventHandler&gt; queuedEvents;<a name="line.265"></a>
-<span class="sourceLineNo">266</span>    final List&lt;RunningEventStatus&gt; running;<a name="line.266"></a>
-<span class="sourceLineNo">267</span><a name="line.267"></a>
-<span class="sourceLineNo">268</span>    ExecutorStatus(Executor executor,<a name="line.268"></a>
-<span class="sourceLineNo">269</span>        List&lt;EventHandler&gt; queuedEvents,<a name="line.269"></a>
-<span class="sourceLineNo">270</span>        List&lt;RunningEventStatus&gt; running) {<a name="line.270"></a>
-<span class="sourceLineNo">271</span>      this.executor = executor;<a name="line.271"></a>
-<span class="sourceLineNo">272</span>      this.queuedEvents = queuedEvents;<a name="line.272"></a>
-<span class="sourceLineNo">273</span>      this.running = running;<a name="line.273"></a>
-<span class="sourceLineNo">274</span>    }<a name="line.274"></a>
-<span class="sourceLineNo">275</span>   <a name="line.275"></a>
-<span class="sourceLineNo">276</span>    /**<a name="line.276"></a>
-<span class="sourceLineNo">277</span>     * Dump a textual representation of the executor's status<a name="line.277"></a>
-<span class="sourceLineNo">278</span>     * to the given writer.<a name="line.278"></a>
-<span class="sourceLineNo">279</span>     *<a name="line.279"></a>
-<span class="sourceLineNo">280</span>     * @param out the stream to write to<a name="line.280"></a>
-<span class="sourceLineNo">281</span>     * @param indent a string prefix for each line, used for indentation<a name="line.281"></a>
-<span class="sourceLineNo">282</span>     */<a name="line.282"></a>
-<span class="sourceLineNo">283</span>    public void dumpTo(Writer out, String indent) throws IOException {<a name="line.283"></a>
-<span class="sourceLineNo">284</span>      out.write(indent + "Status for executor: " + executor + "\n");<a name="line.284"></a>
-<span class="sourceLineNo">285</span>      out.write(indent + "=======================================\n");<a name="line.285"></a>
-<span class="sourceLineNo">286</span>      out.write(indent + queuedEvents.size() + " events queued, " +<a name="line.286"></a>
-<span class="sourceLineNo">287</span>          running.size() + " running\n");<a name="line.287"></a>
-<span class="sourceLineNo">288</span>      if (!queuedEvents.isEmpty()) {<a name="line.288"></a>
-<span class="sourceLineNo">289</span>        out.write(indent + "Queued:\n");<a name="line.289"></a>
-<span class="sourceLineNo">290</span>        for (EventHandler e : queuedEvents) {<a name="line.290"></a>
-<span class="sourceLineNo">291</span>          out.write(indent + "  " + e + "\n");<a name="line.291"></a>
-<span class="sourceLineNo">292</span>        }<a name="line.292"></a>
-<span class="sourceLineNo">293</span>        out.write("\n");<a name="line.293"></a>
-<span class="sourceLineNo">294</span>      }<a name="line.294"></a>
-<span class="sourceLineNo">295</span>      if (!running.isEmpty()) {<a name="line.295"></a>
-<span class="sourceLineNo">296</span>        out.write(indent + "Running:\n");<a name="line.296"></a>
-<span class="sourceLineNo">297</span>        for (RunningEventStatus stat : running) {<a name="line.297"></a>
-<span class="sourceLineNo">298</span>          out.write(indent + "  Running on thread '" +<a name="line.298"></a>
-<span class="sourceLineNo">299</span>              stat.threadInfo.getThreadName() +<a name="line.299"></a>
-<span class="sourceLineNo">300</span>              "': " + stat.event + "\n");<a name="line.300"></a>
-<span class="sourceLineNo">301</span>          out.write(ThreadMonitoring.formatThreadInfo(<a name="line.301"></a>
-<span class="sourceLineNo">302</span>              stat.threadInfo, indent + "  "));<a name="line.302"></a>
-<span class="sourceLineNo">303</span>          out.write("\n");<a name="line.303"></a>
-<span class="sourceLineNo">304</span>        }<a name="line.304"></a>
-<span class="sourceLineNo">305</span>      }<a name="line.305"></a>
-<span class="sourceLineNo">306</span>      out.flush();<a name="line.306"></a>
-<span class="sourceLineNo">307</span>    }<a name="line.307"></a>
-<span class="sourceLineNo">308</span>  }<a name="line.308"></a>
-<span class="sourceLineNo">309</span><a name="line.309"></a>
-<span class="sourceLineNo">310</span>  /**<a name="line.310"></a>
-<span class="sourceLineNo">311</span>   * The status of a particular event that is in the middle of being<a name="line.311"></a>
-<span class="sourceLineNo">312</span>   * handled by an executor.<a name="line.312"></a>
-<span class="sourceLineNo">313</span>   */<a name="line.313"></a>
-<span class="sourceLineNo">314</span>  public static class RunningEventStatus {<a name="line.314"></a>
-<span class="sourceLineNo">315</span>    final ThreadInfo threadInfo;<a name="line.315"></a>
-<span class="sourceLineNo">316</span>    final EventHandler event;<a name="line.316"></a>
-<span class="sourceLineNo">317</span><a name="line.317"></a>
-<span class="sourceLineNo">318</span>    public RunningEventStatus(Thread t, EventHandler event) {<a name="line.318"></a>
-<span class="sourceLineNo">319</span>      this.threadInfo = ThreadMonitoring.getThreadInfo(t);<a name="line.319"></a>
-<span class="sourceLineNo">320</span>      this.event = event;<a name="line.320"></a>
-<span class="sourceLineNo">321</span>    }<a name="line.321"></a>
-<span class="sourceLineNo">322</span>  }<a name="line.322"></a>
-<span class="sourceLineNo">323</span>}<a name="line.323"></a>
+<span class="sourceLineNo">195</span>    TrackingThreadPoolExecutor getThreadPoolExecutor() {<a name="line.195"></a>
+<span class="sourceLineNo">196</span>      return threadPoolExecutor;<a name="line.196"></a>
+<span class="sourceLineNo">197</span>    }<a name="line.197"></a>
+<span class="sourceLineNo">198</span><a name="line.198"></a>
+<span class="sourceLineNo">199</span>    @Override<a name="line.199"></a>
+<span class="sourceLineNo">200</span>    public String toString() {<a name="line.200"></a>
+<span class="sourceLineNo">201</span>      return getClass().getSimpleName() + "-" + id + "-" + name;<a name="line.201"></a>
+<span class="sourceLineNo">202</span>    }<a name="line.202"></a>
+<span class="sourceLineNo">203</span><a name="line.203"></a>
+<span class="sourceLineNo">204</span>    public ExecutorStatus getStatus() {<a name="line.204"></a>
+<span class="sourceLineNo">205</span>      List&lt;EventHandler&gt; queuedEvents = Lists.newArrayList();<a name="line.205"></a>
+<span class="sourceLineNo">206</span>      for (Runnable r : q) {<a name="line.206"></a>
+<span class="sourceLineNo">207</span>        if (!(r instanceof EventHandler)) {<a name="line.207"></a>
+<span class="sourceLineNo">208</span>          LOG.warn("Non-EventHandler " + r + " queued in " + name);<a name="line.208"></a>
+<span class="sourceLineNo">209</span>          continue;<a name="line.209"></a>
+<span class="sourceLineNo">210</span>        }<a name="line.210"></a>
+<span class="sourceLineNo">211</span>        queuedEvents.add((EventHandler)r);<a name="line.211"></a>
+<span class="sourceLineNo">212</span>      }<a name="line.212"></a>
+<span class="sourceLineNo">213</span><a name="line.213"></a>
+<span class="sourceLineNo">214</span>      List&lt;RunningEventStatus&gt; running = Lists.newArrayList();<a name="line.214"></a>
+<span class="sourceLineNo">215</span>      for (Map.Entry&lt;Thread, Runnable&gt; e :<a name="line.215"></a>
+<span class="sourceLineNo">216</span>          threadPoolExecutor.getRunningTasks().entrySet()) {<a name="line.216"></a>
+<span class="sourceLineNo">217</span>        Runnable r = e.getValue();<a name="line.217"></a>
+<span class="sourceLineNo">218</span>        if (!(r instanceof EventHandler)) {<a name="line.218"></a>
+<span class="sourceLineNo">219</span>          LOG.warn("Non-EventHandler " + r + " running in " + name);<a name="line.219"></a>
+<span class="sourceLineNo">220</span>          continue;<a name="line.220"></a>
+<span class="sourceLineNo">221</span>        }<a name="line.221"></a>
+<span class="sourceLineNo">222</span>        running.add(new RunningEventStatus(e.getKey(), (EventHandler)r));<a name="line.222"></a>
+<span class="sourceLineNo">223</span>      }<a name="line.223"></a>
+<span class="sourceLineNo">224</span><a name="line.224"></a>
+<span class="sourceLineNo">225</span>      return new ExecutorStatus(this, queuedEvents, running);<a name="line.225"></a>
+<span class="sourceLineNo">226</span>    }<a name="line.226"></a>
+<span class="sourceLineNo">227</span>  }<a name="line.227"></a>
+<span class="sourceLineNo">228</span><a name="line.228"></a>
+<span class="sourceLineNo">229</span>  /**<a name="line.229"></a>
+<span class="sourceLineNo">230</span>   * A subclass of ThreadPoolExecutor that keeps track of the Runnables that<a name="line.230"></a>
+<span class="sourceLineNo">231</span>   * are executing at any given point in time.<a name="line.231"></a>
+<span class="sourceLineNo">232</span>   */<a name="line.232"></a>
+<span class="sourceLineNo">233</span>  static class TrackingThreadPoolExecutor extends ThreadPoolExecutor {<a name="line.233"></a>
+<span class="sourceLineNo">234</span>    private ConcurrentMap&lt;Thread, Runnable&gt; running = Maps.newConcurrentMap();<a name="line.234"></a>
+<span class="sourceLineNo">235</span><a name="line.235"></a>
+<span class="sourceLineNo">236</span>    public TrackingThreadPoolExecutor(int corePoolSize, int maximumPoolSize,<a name="line.236"></a>
+<span class="sourceLineNo">237</span>        long keepAliveTime, TimeUnit unit, BlockingQueue&lt;Runnable&gt; workQueue) {<a name="line.237"></a>
+<span class="sourceLineNo">238</span>      super(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);<a name="line.238"></a>
+<span class="sourceLineNo">239</span>    }<a name="line.239"></a>
+<span class="sourceLineNo">240</span><a name="line.240"></a>
+<span class="sourceLineNo">241</span>    @Override<a name="line.241"></a>
+<span class="sourceLineNo">242</span>    protected void afterExecute(Runnable r, Throwable t) {<a name="line.242"></a>
+<span class="sourceLineNo">243</span>      super.afterExecute(r, t);<a name="line.243"></a>
+<span class="sourceLineNo">244</span>      running.remove(Thread.currentThread());<a name="line.244"></a>
+<span class="sourceLineNo">245</span>    }<a name="line.245"></a>
+<span class="sourceLineNo">246</span><a name="line.246"></a>
+<span class="sourceLineNo">247</span>    @Override<a name="line.247"></a>
+<span class="sourceLineNo">248</span>    protected void beforeExecute(Thread t, Runnable r) {<a name="line.248"></a>
+<span class="sourceLineNo">249</span>      Runnable oldPut = running.put(t, r);<a name="line.249"></a>
+<span class="sourceLineNo">250</span>      assert oldPut == null : "inconsistency for thread " + t;<a name="line.250"></a>
+<span class="sourceLineNo">251</span>      super.beforeExecute(t, r);<a name="line.251"></a>
+<span class="sourceLineNo">252</span>    }<a name="line.252"></a>
+<span class="sourceLineNo">253</span><a name="line.253"></a>
+<span class="sourceLineNo">254</span>    /**<a name="line.254"></a>
+<span class="sourceLineNo">255</span>     * @return a map of the threads currently running tasks<a name="line.255"></a>
+<span class="sourceLineNo">256</span>     * inside this executor. Each key is an active thread,<a name="line.256"></a>
+<span class="sourceLineNo">257</span>     * and the value is the task that is currently running.<a name="line.257"></a>
+<span class="sourceLineNo">258</span>     * Note that this is not a stable snapshot of the map.<a name="line.258"></a>
+<span class="sourceLineNo">259</span>     */<a name="line.259"></a>
+<span class="sourceLineNo">260</span>    public ConcurrentMap&lt;Thread, Runnable&gt; getRunningTasks() {<a name="line.260"></a>
+<span class="sourceLineNo">261</span>      return running;<a name="line.261"></a>
+<span class="sourceLineNo">262</span>    }<a name="line.262"></a>
+<span class="sourceLineNo">263</span>  }<a name="line.263"></a>
+<span class="sourceLineNo">264</span><a name="line.264"></a>
+<span class="sourceLineNo">265</span>  /**<a name="line.265"></a>
+<span class="sourceLineNo">266</span>   * A snapshot of the status of a particular executor. This includes<a name="line.266"></a>
+<span class="sourceLineNo">267</span>   * the contents of the executor's pending queue, as well as the<a name="line.267"></a>
+<span class="sourceLineNo">268</span>   * threads and events currently being processed.<a name="line.268"></a>
+<span class="sourceLineNo">269</span>   *<a name="line.269"></a>
+<span class="sourceLineNo">270</span>   * This is a consistent snapshot that is immutable once constructed.<a name="line.270"></a>
+<span class="sourceLineNo">271</span>   */<a name="line.271"></a>
+<span class="sourceLineNo">272</span>  public static class ExecutorStatus {<a name="line.272"></a>
+<span class="sourceLineNo">273</span>    final Executor executor;<a name="line.273"></a>
+<span class="sourceLineNo">274</span>    final List&lt;EventHandler&gt; queuedEvents;<a name="line.274"></a>
+<span class="sourceLineNo">275</span>    final List&lt;RunningEventStatus&gt; running;<a name="line.275"></a>
+<span class="sourceLineNo">276</span><a name="line.276"></a>
+<span class="sourceLineNo">277</span>    ExecutorStatus(Executor executor,<a name="line.277"></a>
+<span class="sourceLineNo">278</span>        List&lt;EventHandler&gt; queuedEvents,<a name="line.278"></a>
+<span class="sourceLineNo">279</span>        List&lt;RunningEventStatus&gt; running) {<a name="line.279"></a>
+<span class="sourceLineNo">280</span>      this.executor = executor;<a name="line.280"></a>
+<span class="sourceLineNo">281</span>      this.queuedEvents = queuedEvents;<a name="line.281"></a>
+<span class="sourceLineNo">282</span>      this.running = running;<a name="line.282"></a>
+<span class="sourceLineNo">283</span>    }<a name="line.283"></a>
+<span class="sourceLineNo">284</span><a name="line.284"></a>
+<span class="sourceLineNo">285</span>    /**<a name="line.285"></a>
+<span class="sourceLineNo">286</span>     * Dump a textual representation of the executor's status<a name="line.286"></a>
+<span class="sourceLineNo">287</span>     * to the given writer.<a name="line.287"></a>
+<span class="sourceLineNo">288</span>     *<a name="line.288"></a>
+<span class="sourceLineNo">289</span>     * @param out the stream to write to<a name="line.289"></a>
+<span class="sourceLineNo">290</span>     * @param indent a string prefix for each line, used for indentation<a name="line.290"></a>
+<span class="sourceLineNo">291</span>     */<a name="line.291"></a>
+<span class="sourceLineNo">292</span>    public void dumpTo(Writer out, String indent) throws IOException {<a name="line.292"></a>
+<span class="sourceLineNo">293</span>      out.write(indent + "Status for executor: " + executor + "\n");<a name="line.293"></a>
+<span class="sourceLineNo">294</span>      out.write(indent + "=======================================\n");<a name="line.294"></a>
+<span class="sourceLineNo">295</span>      out.write(indent + queuedEvents.size() + " events queued, " +<a name="line.295"></a>
+<span class="sourceLineNo">296</span>          running.size() + " running\n");<a name="line.296"></a>
+<span class="sourceLineNo">297</span>      if (!queuedEvents.isEmpty()) {<a name="line.297"></a>
+<span class="sourceLineNo">298</span>        out.write(indent + "Queued:\n");<a name="line.298"></a>
+<span class="sourceLineNo">299</span>        for (EventHandler e : queuedEvents) {<a name="line.299"></a>
+<span class="sourceLineNo">300</span>          out.write(indent + "  " + e + "\n");<a name="line.300"></a>
+<span class="sourceLineNo">301</span>        }<a name="line.301"></a>
+<span class="sourceLineNo">302</span>        out.write("\n");<a name="line.302"></a>
+<span class="sourceLineNo">303</span>      }<a name="line.303"></a>
+<span class="sourceLineNo">304</span>      if (!running.isEmpty()) {<a name="line.304"></a>
+<span class="sourceLineNo">305</span>        out.write(indent + "Running:\n");<a name="line.305"></a>
+<span class="sourceLineNo">306</span>        for (RunningEventStatus stat : running) {<a name="line.306"></a>
+<span class="sourceLineNo">307</span>          out.write(indent + "  Running on thread '" +<a name="line.307"></a>
+<span class="sourceLineNo">308</span>              stat.threadInfo.getThreadName() +<a name="line.308"></a>
+<span class="sourceLineNo">309</span>              "': " + stat.event + "\n");<a name="line.309"></a>
+<span class="sourceLineNo">310</span>          out.write(ThreadMonitoring.formatThreadInfo(<a name="line.310"></a>
+<span class="sourceLineNo">311</span>              stat.threadInfo, indent + "  "));<a name="line.311"></a>
+<span class="sourceLineNo">312</span>          out.write("\n");<a name="line.312"></a>
+<span class="sourceLineNo">313</span>        }<a name="line.313"></a>
+<span class="sourceLineNo">314</span>      }<a name="line.314"></a>
+<span class="sourceLineNo">315</span>      out.flush();<a name="line.315"></a>
+<span class="sourceLineNo">316</span>    }<a name="line.316"></a>
+<span class="sourceLineNo">317</span>  }<a name="line.317"></a>
+<span class="sourceLineNo">318</span><a name="line.318"></a>
+<span class="sourceLineNo">319</span>  /**<a name="line.319"></a>
+<span class="sourceLineNo">320</span>   * The status of a particular event that is in the middle of being<a name="line.320"></a>
+<span class="sourceLineNo">321</span>   * handled by an executor.<a name="line.321"></a>
+<span class="sourceLineNo">322</span>   */<a name="line.322"></a>
+<span class="sourceLineNo">323</span>  public static class RunningEventStatus {<a name="line.323"></a>
+<span class="sourceLineNo">324</span>    final ThreadInfo threadInfo;<a name="line.324"></a>
+<span class="sourceLineNo">325</span>    final EventHandler event;<a name="line.325"></a>
+<span class="sourceLineNo">326</span><a name="line.326"></a>
+<span class="sourceLineNo">327</span>    public RunningEventStatus(Thread t, EventHandler event) {<a name="line.327"></a>
+<span class="sourceLineNo">328</span>      this.threadInfo = ThreadMonitoring.getThreadInfo(t);<a name="line.328"></a>
+<span class="sourceLineNo">329</span>      this.event = event;<a name="line.329"></a>
+<span class="sourceLineNo">330</span>    }<a name="line.330"></a>
+<span class="sourceLineNo">331</span>  }<a name="line.331"></a>
+<span class="sourceLineNo">332</span>}<a name="line.332"></a>
 
 
 


Mime
View raw message