cassandra-server
Version:
A thin Javascript wrapper around Apache Cassandra to provide out of the box server support
328 lines (326 loc) • 15.2 kB
HTML
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_67) on Sun Sep 07 15:29:36 CEST 2014 -->
<title>org.apache.cassandra.locator (apache-cassandra API)</title>
<meta name="date" content="2014-09-07">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="org.apache.cassandra.locator (apache-cassandra API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.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/cassandra/io/util/package-summary.html">Prev Package</a></li>
<li><a href="../../../../org/apache/cassandra/metrics/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cassandra/locator/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.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>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package org.apache.cassandra.locator</h1>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/DynamicEndpointSnitchMBean.html" title="interface in org.apache.cassandra.locator">DynamicEndpointSnitchMBean</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/EndpointSnitchInfoMBean.html" title="interface in org.apache.cassandra.locator">EndpointSnitchInfoMBean</a></td>
<td class="colLast">
<div class="block">MBean exposing standard Snitch info</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/IEndpointSnitch.html" title="interface in org.apache.cassandra.locator">IEndpointSnitch</a></td>
<td class="colLast">
<div class="block">This interface helps determine location of node in the data center relative to another node.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/ILatencySubscriber.html" title="interface in org.apache.cassandra.locator">ILatencySubscriber</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/SeedProvider.html" title="interface in org.apache.cassandra.locator">SeedProvider</a></td>
<td class="colLast"> </td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/AbstractEndpointSnitch.html" title="class in org.apache.cassandra.locator">AbstractEndpointSnitch</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/AbstractNetworkTopologySnitch.html" title="class in org.apache.cassandra.locator">AbstractNetworkTopologySnitch</a></td>
<td class="colLast">
<div class="block">An endpoint snitch tells Cassandra information about network topology that it can use to route
requests more efficiently.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/AbstractReplicationStrategy.html" title="class in org.apache.cassandra.locator">AbstractReplicationStrategy</a></td>
<td class="colLast">
<div class="block">A abstract parent for all replication strategies.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/CloudstackSnitch.html" title="class in org.apache.cassandra.locator">CloudstackSnitch</a></td>
<td class="colLast">
<div class="block">A snitch that assumes a Cloudstack Zone follows the typical convention
<country>-<location>-<availability zone> and uses the country/location
tuple as a datacenter and the availability zone as a rack</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/DynamicEndpointSnitch.html" title="class in org.apache.cassandra.locator">DynamicEndpointSnitch</a></td>
<td class="colLast">
<div class="block">A dynamic snitch that sorts endpoints by latency with an adapted phi failure detector</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/Ec2MultiRegionSnitch.html" title="class in org.apache.cassandra.locator">Ec2MultiRegionSnitch</a></td>
<td class="colLast">
<div class="block">1) Snitch will automatically set the public IP by querying the AWS API
2) Snitch will set the private IP as a Gossip application state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/Ec2Snitch.html" title="class in org.apache.cassandra.locator">Ec2Snitch</a></td>
<td class="colLast">
<div class="block">A snitch that assumes an EC2 region is a DC and an EC2 availability_zone
is a rack.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/EndpointSnitchInfo.html" title="class in org.apache.cassandra.locator">EndpointSnitchInfo</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/GoogleCloudSnitch.html" title="class in org.apache.cassandra.locator">GoogleCloudSnitch</a></td>
<td class="colLast">
<div class="block">A snitch that assumes an GCE region is a DC and an GCE availability_zone
is a rack.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/GossipingPropertyFileSnitch.html" title="class in org.apache.cassandra.locator">GossipingPropertyFileSnitch</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/LocalStrategy.html" title="class in org.apache.cassandra.locator">LocalStrategy</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/NetworkTopologyStrategy.html" title="class in org.apache.cassandra.locator">NetworkTopologyStrategy</a></td>
<td class="colLast">
<div class="block">This Replication Strategy takes a property file that gives the intended
replication factor in each datacenter.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/OldNetworkTopologyStrategy.html" title="class in org.apache.cassandra.locator">OldNetworkTopologyStrategy</a></td>
<td class="colLast">
<div class="block">This Replication Strategy returns the nodes responsible for a given
key but respects rack awareness.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/PropertyFileSnitch.html" title="class in org.apache.cassandra.locator">PropertyFileSnitch</a></td>
<td class="colLast">
<div class="block">Used to determine if two IP's are in the same datacenter or on the same rack.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/RackInferringSnitch.html" title="class in org.apache.cassandra.locator">RackInferringSnitch</a></td>
<td class="colLast">
<div class="block">A simple endpoint snitch implementation that assumes datacenter and rack information is encoded
in the 2nd and 3rd octets of the ip address, respectively.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/ReconnectableSnitchHelper.html" title="class in org.apache.cassandra.locator">ReconnectableSnitchHelper</a></td>
<td class="colLast">
<div class="block">Sidekick helper for snitches that want to reconnect from one IP addr for a node to another.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/SimpleSeedProvider.html" title="class in org.apache.cassandra.locator">SimpleSeedProvider</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/SimpleSnitch.html" title="class in org.apache.cassandra.locator">SimpleSnitch</a></td>
<td class="colLast">
<div class="block">A simple endpoint snitch implementation that treats Strategy order as proximity,
allowing non-read-repaired reads to prefer a single endpoint, which improves
cache locality.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/SimpleStrategy.html" title="class in org.apache.cassandra.locator">SimpleStrategy</a></td>
<td class="colLast">
<div class="block">This class returns the nodes responsible for a given
key but does not respect rack awareness.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/SnitchProperties.html" title="class in org.apache.cassandra.locator">SnitchProperties</a></td>
<td class="colLast"> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/TokenMetadata.html" title="class in org.apache.cassandra.locator">TokenMetadata</a></td>
<td class="colLast"> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/TokenMetadata.Topology.html" title="class in org.apache.cassandra.locator">TokenMetadata.Topology</a></td>
<td class="colLast">
<div class="block">Tracks the assignment of racks and endpoints in each datacenter for all the "normal" endpoints
in this TokenMetadata.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.html" title="class in org.apache.cassandra.locator">YamlFileNetworkTopologySnitch</a></td>
<td class="colLast">
<div class="block">Network topology snitch that reads its configuration from a YAML file.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.Datacenter.html" title="class in org.apache.cassandra.locator">YamlFileNetworkTopologySnitch.Datacenter</a></td>
<td class="colLast">
<div class="block">Data center object type for the YAML topology configuration.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.Node.html" title="class in org.apache.cassandra.locator">YamlFileNetworkTopologySnitch.Node</a></td>
<td class="colLast">
<div class="block">Node object type for the YAML topology configuration.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.Rack.html" title="class in org.apache.cassandra.locator">YamlFileNetworkTopologySnitch.Rack</a></td>
<td class="colLast">
<div class="block">Rack object type for the YAML topology configuration.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../../../org/apache/cassandra/locator/YamlFileNetworkTopologySnitch.TopologyConfig.html" title="class in org.apache.cassandra.locator">YamlFileNetworkTopologySnitch.TopologyConfig</a></td>
<td class="colLast">
<div class="block">Root object type for the YAML topology configuration.</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.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/cassandra/io/util/package-summary.html">Prev Package</a></li>
<li><a href="../../../../org/apache/cassandra/metrics/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?org/apache/cassandra/locator/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.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>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>Copyright © 2014 The Apache Software Foundation</small></p>
</body>
</html>