http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/blob/49afadb4/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html ---------------------------------------------------------------------- diff --git a/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html b/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html new file mode 100644 index 0000000..a868727 --- /dev/null +++ b/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html @@ -0,0 +1,336 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc (1.8.0_92) on Sun Jan 08 19:29:06 PST 2017 --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>ConsistentHashRoutingService.Builder (Apache DistributedLog for Java, version 0.4.0-incubating)</title> +<meta name="date" content="2017-01-08"> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="ConsistentHashRoutingService.Builder (Apache DistributedLog for Java, version 0.4.0-incubating)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10}; +var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/ConsistentHashRoutingService.Builder.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/distributedlog/client/routing/RegionsRoutingService.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" target="_top">Frames</a></li> +<li><a href="ConsistentHashRoutingService.Builder.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.distributedlog.client.routing</div> +<h2 title="Class ConsistentHashRoutingService.Builder" class="title">Class ConsistentHashRoutingService.Builder</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.distributedlog.client.routing.ConsistentHashRoutingService.Builder</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.Builder</a></dd> +</dl> +<dl> +<dt>Enclosing class:</dt> +<dd><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService</a></dd> +</dl> +<hr> +<br> +<pre>public static class <span class="typeNameLabel">ConsistentHashRoutingService.Builder</span> +extends <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a> +implements <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.Builder</a></pre> +<div class="block">Builder for building consistent hash based routing service.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#blackoutSeconds-int-">blackoutSeconds</a></span>(int seconds)</code> </td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#build--">build</a></span>()</code> +<div class="block">Build the routing service.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#numReplicas-int-">numReplicas</a></span>(int numReplicas)</code> </td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#resolveFromName-boolean-">resolveFromName</a></span>(boolean enabled)</code> </td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#serverSet-com.twitter.common.zookeeper.ServerSet-">serverSet</a></span>(com.twitter.common.zookeeper.ServerSet serverSet)</code> </td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html#statsReceiver-com.twitter.finagle.stats.StatsReceiver-">statsReceiver</a></span>(com.twitter.finagle.stats.StatsReceiver statsReceiver)</code> +<div class="block">Build routing service with stats receiver.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com /javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="serverSet-com.twitter.common.zookeeper.ServerSet-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>serverSet</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> serverSet(com.twitter.common.zookeeper.ServerSet serverSet)</pre> +</li> +</ul> +<a name="resolveFromName-boolean-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>resolveFromName</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> resolveFromName(boolean enabled)</pre> +</li> +</ul> +<a name="numReplicas-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>numReplicas</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> numReplicas(int numReplicas)</pre> +</li> +</ul> +<a name="blackoutSeconds-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>blackoutSeconds</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> blackoutSeconds(int seconds)</pre> +</li> +</ul> +<a name="statsReceiver-com.twitter.finagle.stats.StatsReceiver-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>statsReceiver</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> statsReceiver(com.twitter.finagle.stats.StatsReceiver statsReceiver)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html#statsReceiver-com.twitter.finagle.stats.StatsReceiver-">RoutingService.Builder</a></code></span></div> +<div class="block">Build routing service with stats receiver.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html#statsReceiver-com.twitter.finagle.stats.StatsReceiver-">statsReceiver</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.Builder</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>statsReceiver</code> - stats receiver</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>built routing service</dd> +</dl> +</li> +</ul> +<a name="build--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>build</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a> build()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html#build--">RoutingService.Builder</a></code></span></div> +<div class="block">Build the routing service.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html#build--">build</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.Builder.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.Builder</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>built routing service</dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/ConsistentHashRoutingService.Builder.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Prev Class</span></a></li> +<li><a href="../../../../../org/apache/distributedlog/client/routing/RegionsRoutingService.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" target="_top">Frames</a></li> +<li><a href="ConsistentHashRoutingService.Builder.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li>Nested | </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li>Field | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016-2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> +</body> +</html>
http://git-wip-us.apache.org/repos/asf/incubator-distributedlog/blob/49afadb4/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html ---------------------------------------------------------------------- diff --git a/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html b/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html new file mode 100644 index 0000000..1cebd6a --- /dev/null +++ b/docs/0.4.0-incubating/api/java/org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html @@ -0,0 +1,694 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<!-- NewPage --> +<html lang="en"> +<head> +<!-- Generated by javadoc (1.8.0_92) on Sun Jan 08 19:29:06 PST 2017 --> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<title>ConsistentHashRoutingService (Apache DistributedLog for Java, version 0.4.0-incubating)</title> +<meta name="date" content="2017-01-08"> +<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> +<script type="text/javascript" src="../../../../../script.js"></script> +</head> +<body> +<script type="text/javascript"><!-- + try { + if (location.href.indexOf('is-external=true') == -1) { + parent.document.title="ConsistentHashRoutingService (Apache DistributedLog for Java, version 0.4.0-incubating)"; + } + } + catch(err) { + } +//--> +var methods = {"i0":10,"i1":10,"i2":9,"i3":41,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10}; +var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]}; +var altColor = "altColor"; +var rowColor = "rowColor"; +var tableTab = "tableTab"; +var activeTableTab = "activeTableTab"; +</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="topNav"><a name="navbar.top"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.top.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/ConsistentHashRoutingService.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li>Prev Class</li> +<li><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" target="_top">Frames</a></li> +<li><a href="ConsistentHashRoutingService.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_top"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_top"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li><a href="#nested.class.summary">Nested</a> | </li> +<li><a href="#field.summary">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.top"> +<!-- --> +</a></div> +<!-- ========= END OF TOP NAVBAR ========= --> +<!-- ======== START OF CLASS DATA ======== --> +<div class="header"> +<div class="subTitle">org.apache.distributedlog.client.routing</div> +<h2 title="Class ConsistentHashRoutingService" class="title">Class ConsistentHashRoutingService</h2> +</div> +<div class="contentContainer"> +<ul class="inheritance"> +<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> +<li> +<ul class="inheritance"> +<li><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">java.lang.Thread</a></li> +<li> +<ul class="inheritance"> +<li>org.apache.distributedlog.client.routing.ConsistentHashRoutingService</li> +</ul> +</li> +</ul> +</li> +</ul> +<div class="description"> +<ul class="blockList"> +<li class="blockList"> +<dl> +<dt>All Implemented Interfaces:</dt> +<dd><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a>, <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></dd> +</dl> +<hr> +<br> +<pre>public class <span class="typeNameLabel">ConsistentHashRoutingService</span> +extends <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">Thread</a></pre> +<div class="block">Consistent Hashing Based <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing"><code>RoutingService</code></a>.</div> +</li> +</ul> +</div> +<div class="summary"> +<ul class="blockList"> +<li class="blockList"> +<!-- ======== NESTED CLASS SUMMARY ======== --> +<ul class="blockList"> +<li class="blockList"><a name="nested.class.summary"> +<!-- --> +</a> +<h3>Nested Class Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Nested Class Summary table, listing nested classes, and an explanation"> +<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Class and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>static class </code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></span></code> +<div class="block">Builder for building consistent hash based routing service.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="nested.classes.inherited.from.class.java.lang.Thread"> +<!-- --> +</a> +<h3>Nested classes/interfaces inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">Thread</a></h3> +<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.State.html?is-external=true" title="class or interface in java.lang">Thread.State</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.UncaughtExceptionHandler.html?is-external=true" title="class or interface in java.lang">Thread.UncaughtExceptionHandler</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="nested.classes.inherited.from.class.org.apache.distributedlog.client.routing.RoutingService"> +<!-- --> +</a> +<h3>Nested classes/interfaces inherited from interface org.apache.distributedlog.client.routing.<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></h3> +<code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingContext.html" title="class in org.apache.distributedlog.client.routing">RoutingService.RoutingContext</a>, <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a></code></li> +</ul> +</li> +</ul> +<!-- =========== FIELD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.summary"> +<!-- --> +</a> +<h3>Field Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> +<caption><span>Fields</span><span class="tabEnd"> </span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Field and Description</th> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#address2ShardId">address2ShardId</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected int</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#blackoutSeconds">blackoutSeconds</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected org.apache.distributedlog.client.routing.ConsistentHashRoutingService.ConsistentHash</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#circle">circle</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected org.jboss.netty.util.HashedWheelTimer</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#hashedWheelTimer">hashedWheelTimer</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected com.google.common.hash.HashFunction</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#hashFunction">hashFunction</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/CopyOnWriteArraySet.html?is-external=true" title="class or interface in java.util.concurrent">CopyOnWriteArraySet</a><<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#listeners">listeners</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicInteger.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicInteger</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#numBlackoutHosts">numBlackoutHosts</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected com.twitter.finagle.stats.Gauge</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#numBlackoutHostsGauge">numBlackoutHostsGauge</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected com.twitter.finagle.stats.Gauge</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#numHostsGauge">numHostsGauge</a></span></code> </td> +</tr> +<tr class="rowColor"> +<td class="colFirst"><code>protected <a href="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#shardId2Address">shardId2Address</a></span></code> </td> +</tr> +<tr class="altColor"> +<td class="colFirst"><code>protected com.twitter.finagle.stats.StatsReceiver</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#statsReceiver">statsReceiver</a></span></code> </td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="fields.inherited.from.class.java.lang.Thread"> +<!-- --> +</a> +<h3>Fields inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">Thread</a></h3> +<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#MAX_PRIORITY" title="class or interface in java.lang">MAX_PRIORITY</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#MIN_PRIORITY" title="class or interface in java.lang">MIN_PRIORITY</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#NORM_PRIORITY" title="class or interface in java.lang">NORM_PRIORITY</a></code></li> +</ul> +</li> +</ul> +<!-- ========== METHOD SUMMARY =========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.summary"> +<!-- --> +</a> +<h3>Method Summary</h3> +<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> +<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd"> </span></span></caption> +<tr> +<th class="colFirst" scope="col">Modifier and Type</th> +<th class="colLast" scope="col">Method and Description</th> +</tr> +<tr id="i0" class="altColor"> +<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#getHost-java.lang.String-org.apache.distributedlog.client.routing.RoutingService.RoutingContext-">getHost</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingContext.html" title="class in org.apache.distributedlog.client.routing">RoutingService.RoutingContext</a> rContext)</code> +<div class="block">Get the host to route the request by <i>key</i>.</div> +</td> +</tr> +<tr id="i1" class="rowColor"> +<td class="colFirst"><code><a href="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#getHosts--">getHosts</a></span>()</code> +<div class="block">Get all the hosts that available in routing service.</div> +</td> +</tr> +<tr id="i2" class="altColor"> +<td class="colFirst"><code>static <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#newBuilder--">newBuilder</a></span>()</code> +<div class="block">Builder helper class to build a consistent hash bashed <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing"><code>RoutingService</code></a>.</div> +</td> +</tr> +<tr id="i3" class="rowColor"> +<td class="colFirst"><code>static <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#of-org.apache.distributedlog.client.routing.ServerSetWatcher-int-">of</a></span>(<a href="../../../../../org/apache/distributedlog/client/routing/ServerSetWatcher.html" title="interface in org.apache.distributedlog.client.routing">ServerSetWatcher</a> serverSetWatcher, + int numReplicas)</code> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> +</td> +</tr> +<tr id="i4" class="altColor"> +<td class="colFirst"><code>protected void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#performServerSetChange-com.google.common.collect.ImmutableSet-">performServerSetChange</a></span>(com.google.common.collect.ImmutableSet<<a href="../../../../../org/apache/distributedlog/service/DLSocketAddress.html" title="class in org.apache.distributedlog.service">DLSocketAddress</a>> serviceInstances)</code> </td> +</tr> +<tr id="i5" class="rowColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#registerListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">registerListener</a></span>(<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a> listener)</code> +<div class="block">Register routing listener.</div> +</td> +</tr> +<tr id="i6" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#removeHost-java.net.SocketAddress-java.lang.Throwable-">removeHost</a></span>(<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a> host, + <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> reason)</code> +<div class="block">Remove the host <i>address</i> for a specific <i>reason</i>.</div> +</td> +</tr> +<tr id="i7" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#run--">run</a></span>()</code> </td> +</tr> +<tr id="i8" class="altColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#startService--">startService</a></span>()</code> +<div class="block">Start routing service.</div> +</td> +</tr> +<tr id="i9" class="rowColor"> +<td class="colFirst"><code>void</code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#stopService--">stopService</a></span>()</code> +<div class="block">Stop routing service.</div> +</td> +</tr> +<tr id="i10" class="altColor"> +<td class="colFirst"><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></td> +<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html#unregisterListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">unregisterListener</a></span>(<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a> listener)</code> +<div class="block">Unregister routing listener.</div> +</td> +</tr> +</table> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Thread"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">Thread</a></h3> +<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#activeCount--" title="class or interface in java.lang">activeCount</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#checkAccess--" title="class or interface in java.lang">checkAccess</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#countStackFrames--" title="class or interface in java.lang">countStackFrames</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#currentThread--" title="class or interface in java.lang">currentThread</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#destroy--" title="class or interface in java.lang">destroy</a>, <a href ="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#dumpStack--" title="class or interface in java.lang">dumpStack</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#enumerate-java.lang.Thread:A-" title="class or interface in java.lang">enumerate</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getAllStackTraces--" title="class or interface in java.lang">getAllStackTraces</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getContextClassLoader--" title="class or interface in java.lang">getContextClassLoader</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getDefaultUncaughtExceptionHandler--" title="class or interface in java.lang">getDefaultUncaughtExceptionHandler</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=tru e#getId--" title="class or interface in java.lang">getId</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getName--" title="class or interface in java.lang">getName</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getPriority--" title="class or interface in java.lang">getPriority</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getStackTrace--" title="class or interface in java.lang">getStackTrace</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getState--" title="class or interface in java.lang">getState</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getThreadGroup--" title="class or interface in java.lang">getThreadGroup</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#getUncaughtExceptionH andler--" title="class or interface in java.lang">getUncaughtExceptionHandler</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#holdsLock-java.lang.Object-" title="class or interface in java.lang">holdsLock</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#interrupt--" title="class or interface in java.lang">interrupt</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#interrupted--" title="class or interface in java.lang">interrupted</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#isAlive--" title="class or interface in java.lang">isAlive</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#isDaemon--" title="class or interface in java.lang">isDaemon</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#is Interrupted--" title="class or interface in java.lang">isInterrupted</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#join--" title="class or interface in java.lang">join</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#join-long-" title="class or interface in java.lang">join</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#join-long-int-" title="class or interface in java.lang">join</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#resume--" title="class or interface in java.lang">resume</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setContextClassLoader-java.lang.ClassLoader-" title="class or interface in java.lang">setContextClassLoader</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setD aemon-boolean-" title="class or interface in java.lang">setDaemon</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setDefaultUncaughtExceptionHandler-java.lang.Thread.UncaughtExceptionHandler-" title="class or interface in java.lang">setDefaultUncaughtExceptionHandler</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setName-java.lang.String-" title="class or interface in java.lang">setName</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setPriority-int-" title="class or interface in java.lang">setPriority</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#setUncaughtExceptionHandler-java.lang.Thread.UncaughtExceptionHandler-" title="class or interface in java.lang">setUncaughtExceptionHandler</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#sl eep-long-" title="class or interface in java.lang">sleep</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#sleep-long-int-" title="class or interface in java.lang">sleep</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#start--" title="class or interface in java.lang">start</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#stop--" title="class or interface in java.lang">stop</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#stop-java.lang.Throwable-" title="class or interface in java.lang">stop</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#suspend--" title="class or interface in java.lang">suspend</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#toString--" title="class or interface in java.lang ">toString</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#yield--" title="class or interface in java.lang">yield</a></code></li> +</ul> +<ul class="blockList"> +<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> +<!-- --> +</a> +<h3>Methods inherited from class java.lang.<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> +<code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://download.or acle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +<div class="details"> +<ul class="blockList"> +<li class="blockList"> +<!-- ============ FIELD DETAIL =========== --> +<ul class="blockList"> +<li class="blockList"><a name="field.detail"> +<!-- --> +</a> +<h3>Field Detail</h3> +<a name="hashedWheelTimer"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>hashedWheelTimer</h4> +<pre>protected final org.jboss.netty.util.HashedWheelTimer hashedWheelTimer</pre> +</li> +</ul> +<a name="hashFunction"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>hashFunction</h4> +<pre>protected final com.google.common.hash.HashFunction hashFunction</pre> +</li> +</ul> +<a name="circle"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>circle</h4> +<pre>protected final org.apache.distributedlog.client.routing.ConsistentHashRoutingService.ConsistentHash circle</pre> +</li> +</ul> +<a name="shardId2Address"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>shardId2Address</h4> +<pre>protected final <a href="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>> shardId2Address</pre> +</li> +</ul> +<a name="address2ShardId"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>address2ShardId</h4> +<pre>protected final <a href="http://download.oracle.com/javase/6/docs/api/java/util/Map.html?is-external=true" title="class or interface in java.util">Map</a><<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>,<a href="http://download.oracle.com/javase/6/docs/api/java/lang/Integer.html?is-external=true" title="class or interface in java.lang">Integer</a>> address2ShardId</pre> +</li> +</ul> +<a name="blackoutSeconds"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>blackoutSeconds</h4> +<pre>protected final int blackoutSeconds</pre> +</li> +</ul> +<a name="statsReceiver"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>statsReceiver</h4> +<pre>protected final com.twitter.finagle.stats.StatsReceiver statsReceiver</pre> +</li> +</ul> +<a name="numBlackoutHosts"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>numBlackoutHosts</h4> +<pre>protected final <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/atomic/AtomicInteger.html?is-external=true" title="class or interface in java.util.concurrent.atomic">AtomicInteger</a> numBlackoutHosts</pre> +</li> +</ul> +<a name="numBlackoutHostsGauge"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>numBlackoutHostsGauge</h4> +<pre>protected final com.twitter.finagle.stats.Gauge numBlackoutHostsGauge</pre> +</li> +</ul> +<a name="numHostsGauge"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>numHostsGauge</h4> +<pre>protected final com.twitter.finagle.stats.Gauge numHostsGauge</pre> +</li> +</ul> +<a name="listeners"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>listeners</h4> +<pre>protected final <a href="http://download.oracle.com/javase/6/docs/api/java/util/concurrent/CopyOnWriteArraySet.html?is-external=true" title="class or interface in java.util.concurrent">CopyOnWriteArraySet</a><<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a>> listeners</pre> +</li> +</ul> +</li> +</ul> +<!-- ============ METHOD DETAIL ========== --> +<ul class="blockList"> +<li class="blockList"><a name="method.detail"> +<!-- --> +</a> +<h3>Method Detail</h3> +<a name="of-org.apache.distributedlog.client.routing.ServerSetWatcher-int-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>of</h4> +<pre><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Deprecated.html?is-external=true" title="class or interface in java.lang">@Deprecated</a> +public static <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService</a> of(<a href="../../../../../org/apache/distributedlog/client/routing/ServerSetWatcher.html" title="interface in org.apache.distributedlog.client.routing">ServerSetWatcher</a> serverSetWatcher, + int numReplicas)</pre> +<div class="block"><span class="deprecatedLabel">Deprecated.</span> </div> +</li> +</ul> +<a name="newBuilder--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>newBuilder</h4> +<pre>public static <a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing">ConsistentHashRoutingService.Builder</a> newBuilder()</pre> +<div class="block">Builder helper class to build a consistent hash bashed <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing"><code>RoutingService</code></a>.</div> +<dl> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>builder to build a consistent hash based <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing"><code>RoutingService</code></a>.</dd> +</dl> +</li> +</ul> +<a name="startService--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>startService</h4> +<pre>public void startService()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#startService--">RoutingService</a></code></span></div> +<div class="block">Start routing service.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#startService--">startService</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +</dl> +</li> +</ul> +<a name="stopService--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>stopService</h4> +<pre>public void stopService()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#stopService--">RoutingService</a></code></span></div> +<div class="block">Stop routing service.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#stopService--">stopService</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +</dl> +</li> +</ul> +<a name="getHosts--"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getHosts</h4> +<pre>public <a href="http://download.oracle.com/javase/6/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a>> getHosts()</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#getHosts--">RoutingService</a></code></span></div> +<div class="block">Get all the hosts that available in routing service.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#getHosts--">getHosts</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>all the hosts</dd> +</dl> +</li> +</ul> +<a name="getHost-java.lang.String-org.apache.distributedlog.client.routing.RoutingService.RoutingContext-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>getHost</h4> +<pre>public <a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a> getHost(<a href="http://download.oracle.com/javase/6/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> key, + <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingContext.html" title="class in org.apache.distributedlog.client.routing">RoutingService.RoutingContext</a> rContext) + throws com.twitter.finagle.NoBrokersAvailableException</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#getHost-java.lang.String-org.apache.distributedlog.client.routing.RoutingService.RoutingContext-">RoutingService</a></code></span></div> +<div class="block">Get the host to route the request by <i>key</i>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#getHost-java.lang.String-org.apache.distributedlog.client.routing.RoutingService.RoutingContext-">getHost</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>key</code> - key to route the request.</dd> +<dd><code>rContext</code> - routing context.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>host to route the request</dd> +<dt><span class="throwsLabel">Throws:</span></dt> +<dd><code>com.twitter.finagle.NoBrokersAvailableException</code></dd> +</dl> +</li> +</ul> +<a name="removeHost-java.net.SocketAddress-java.lang.Throwable-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>removeHost</h4> +<pre>public void removeHost(<a href="http://download.oracle.com/javase/6/docs/api/java/net/SocketAddress.html?is-external=true" title="class or interface in java.net">SocketAddress</a> host, + <a href="http://download.oracle.com/javase/6/docs/api/java/lang/Throwable.html?is-external=true" title="class or interface in java.lang">Throwable</a> reason)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#removeHost-java.net.SocketAddress-java.lang.Throwable-">RoutingService</a></code></span></div> +<div class="block">Remove the host <i>address</i> for a specific <i>reason</i>.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#removeHost-java.net.SocketAddress-java.lang.Throwable-">removeHost</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>host</code> - host address to remove</dd> +<dd><code>reason</code> - reason to remove the host</dd> +</dl> +</li> +</ul> +<a name="performServerSetChange-com.google.common.collect.ImmutableSet-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>performServerSetChange</h4> +<pre>protected void performServerSetChange(com.google.common.collect.ImmutableSet<<a href="../../../../../org/apache/distributedlog/service/DLSocketAddress.html" title="class in org.apache.distributedlog.service">DLSocketAddress</a>> serviceInstances)</pre> +</li> +</ul> +<a name="registerListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>registerListener</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a> registerListener(<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a> listener)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#registerListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">RoutingService</a></code></span></div> +<div class="block">Register routing listener.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#registerListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">registerListener</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>listener</code> - routing listener.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>routing service.</dd> +</dl> +</li> +</ul> +<a name="unregisterListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-"> +<!-- --> +</a> +<ul class="blockList"> +<li class="blockList"> +<h4>unregisterListener</h4> +<pre>public <a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a> unregisterListener(<a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.RoutingListener.html" title="interface in org.apache.distributedlog.client.routing">RoutingService.RoutingListener</a> listener)</pre> +<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#unregisterListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">RoutingService</a></code></span></div> +<div class="block">Unregister routing listener.</div> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html#unregisterListener-org.apache.distributedlog.client.routing.RoutingService.RoutingListener-">unregisterListener</a></code> in interface <code><a href="../../../../../org/apache/distributedlog/client/routing/RoutingService.html" title="interface in org.apache.distributedlog.client.routing">RoutingService</a></code></dd> +<dt><span class="paramLabel">Parameters:</span></dt> +<dd><code>listener</code> - routing listener.</dd> +<dt><span class="returnLabel">Returns:</span></dt> +<dd>routing service.</dd> +</dl> +</li> +</ul> +<a name="run--"> +<!-- --> +</a> +<ul class="blockListLast"> +<li class="blockList"> +<h4>run</h4> +<pre>public void run()</pre> +<dl> +<dt><span class="overrideSpecifyLabel">Specified by:</span></dt> +<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true#run--" title="class or interface in java.lang">run</a></code> in interface <code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Runnable.html?is-external=true" title="class or interface in java.lang">Runnable</a></code></dd> +<dt><span class="overrideSpecifyLabel">Overrides:</span></dt> +<dd><code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true#run--" title="class or interface in java.lang">run</a></code> in class <code><a href="http://download.oracle.com/javase/6/docs/api/java/lang/Thread.html?is-external=true" title="class or interface in java.lang">Thread</a></code></dd> +</dl> +</li> +</ul> +</li> +</ul> +</li> +</ul> +</div> +</div> +<!-- ========= END OF CLASS DATA ========= --> +<!-- ======= START OF BOTTOM NAVBAR ====== --> +<div class="bottomNav"><a name="navbar.bottom"> +<!-- --> +</a> +<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> +<a name="navbar.bottom.firstrow"> +<!-- --> +</a> +<ul class="navList" title="Navigation"> +<li><a href="../../../../../overview-summary.html">Overview</a></li> +<li><a href="package-summary.html">Package</a></li> +<li class="navBarCell1Rev">Class</li> +<li><a href="class-use/ConsistentHashRoutingService.html">Use</a></li> +<li><a href="package-tree.html">Tree</a></li> +<li><a href="../../../../../deprecated-list.html">Deprecated</a></li> +<li><a href="../../../../../index-all.html">Index</a></li> +<li><a href="../../../../../help-doc.html">Help</a></li> +</ul> +</div> +<div class="subNav"> +<ul class="navList"> +<li>Prev Class</li> +<li><a href="../../../../../org/apache/distributedlog/client/routing/ConsistentHashRoutingService.Builder.html" title="class in org.apache.distributedlog.client.routing"><span class="typeNameLink">Next Class</span></a></li> +</ul> +<ul class="navList"> +<li><a href="../../../../../index.html?org/apache/distributedlog/client/routing/ConsistentHashRoutingService.html" target="_top">Frames</a></li> +<li><a href="ConsistentHashRoutingService.html" target="_top">No Frames</a></li> +</ul> +<ul class="navList" id="allclasses_navbar_bottom"> +<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> +</ul> +<div> +<script type="text/javascript"><!-- + allClassesLink = document.getElementById("allclasses_navbar_bottom"); + if(window==top) { + allClassesLink.style.display = "block"; + } + else { + allClassesLink.style.display = "none"; + } + //--> +</script> +</div> +<div> +<ul class="subNavList"> +<li>Summary: </li> +<li><a href="#nested.class.summary">Nested</a> | </li> +<li><a href="#field.summary">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method.summary">Method</a></li> +</ul> +<ul class="subNavList"> +<li>Detail: </li> +<li><a href="#field.detail">Field</a> | </li> +<li>Constr | </li> +<li><a href="#method.detail">Method</a></li> +</ul> +</div> +<a name="skip.navbar.bottom"> +<!-- --> +</a></div> +<!-- ======== END OF BOTTOM NAVBAR ======= --> +<p class="legalCopy"><small>Copyright © 2016-2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.</small></p> +</body> +</html>