You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by bu...@apache.org on 2015/03/10 21:55:48 UTC
svn commit: r943239 [3/3] - in /websites/staging/zookeeper/trunk/content: ./
bookkeeper/docs/trunk/
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigDesign.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigDesign.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigDesign.html Tue Mar 10 20:55:47 2015
@@ -22,191 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - </title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Style</h1>
-
-<p>We have provided an Eclipse Formatter file <code>formatter.xml</code> with all the formatting conventions currently used in the project. Highlights include no tabs, 4-space indentation, and 120-char width. Please respect this so as to reduce the amount of formatting-related noise produced in commits.</p>
-
-<h1>Static Analysis</h1>
-
-<p>We would like to use static analysis tools <span class="caps">PMD </span>and FindBugs to maintain code quality. However, we have not yet arrived at a consensus on what rules to adhere to, and what to ignore.</p>
-
-<h1>Netty Notes</h1>
-
-<p>The asynchronous network IO infrastructure that Hedwig uses is <a href="http://www.jboss.org/netty">Netty</a>. Here are some notes on Netty's concurrency architecture and its filter pipeline design.</p>
-
-<h2>Concurrency Architecture</h2>
-
-<p>After calling <code>ServerBootstrap.bind()</code>, Netty starts a boss thread (<code>NioServerSocketPipelineSink.Boss</code>) that just accepts new connections and registers them with one of the workers from the <code>NioWorker</code> pool in round-robin fashion (pool size defaults to <span class="caps">CPU </span>count). Each worker runs its own select loop over just the set of keys that have been registered with it. Workers start lazily on demand and run only so long as there are interested fd's/keys. All selected events are handled in the same thread and sent up the pipeline attached to the channel (this association is established by the boss as soon as a new connection is accepted).</p>
-
-<p>All workers, and the boss, run via the executor thread pool; hence, the executor must support at least two simultaneous threads.</p>
-
-<h2>Handler Pipeline</h2>
-
-<p>A pipeline implements the intercepting filter pattern. A pipeline is a sequence of handlers. Whenever a packet is read from the wire, it travels up the stream, stopping at each handler that can handle upstream events. Vice-versa for writes. Between each filter, control flows back through the centralized pipeline, and a linked list of contexts keeps track of where we are in the pipeline (one context object per handler).</p>
-
-
-<h1>Pseudocode</h1>
-
-<p>This summarizes the control flow through the system.</p>
-
-<h2>publish</h2>
-
-<p>Need to document</p>
-
-<h2>subscribe</h2>
-
-<p>Need to document</p>
-
-<h1>ReadAhead Cache</h1>
-
-<p>The delivery manager class is responsible for pushing published messages from the hubs to the subscribers. The most common case is that all subscribers are connected and either caught up, or close to the tail end of the topic. In this case, we don't want the delivery manager to be polling bookkeeper for any newly arrived messages on the topic; new messages should just be pushed to the delivery manager. However, there is also the uncommon case when a subscriber is behind, and messages must be pulled from Bookkeeper.</p>
-
-<p>Since all publishes go through the hub, it is possible to cache the recently published messages in the hub, and then the delivery manager won't have to make the trip to bookkeeper to get the messages but instead get them from local process memory.</p>
-
-<p>These ideas of push, pull, and caching are unified in the following way: - A hub has a cache of messages</p>
-
-<ul>
-<li>When the delivery manager wants to deliver a message, it asks the cache for it. There are 3 cases:</li>
-<li>The message is available in the cache, in which case it is given to the delivery manager</li>
-<li>The message is not present in the cache and the seq-id of the message is beyond the last message published on that topic (this happens if the subscriber is totally caught up for that topic). In this case, a stub is put in the cache in order to notify the delivery manager when that message does happen to be published.</li>
-<li>The message is not in the cache but has been published to the topic. In this case, a stub is put in the cache, and a read is issued to bookkeeper.</li>
-<li>Whenever a message is published, it is cached. If there is a stub already in the cache for that message, the delivery manager is notified.</li>
-<li>Whenever a message is read from bookkeeper, it is cached. There must be a stub for that message (since reads to bookkeeper are issued only after putting a stub), so the delivery manager is notified.</li>
-<li>The cache does readahead, i.e., if a message requested by the delivery manager is not in the cache, a stub is established not only for that message, but also for the next n messages where n is configurable (default 10). On a cache hit, we look ahead n/2 messages, and if that message is not present, we establish another n/2 stubs. In short, we always ensure that the next n stubs are always established.</li>
-<li>Over time, the cache will grow in size. There are 2 pruning mechanisms:</li>
-<li>Once all subscribers have consumed up to a particular seq-id, they notify the cache, and all messages up to that seq-id are pruned from the cache.</li>
-<li>If the above pruning is not working (e.g., because some subscribers are down), the cache will eventually hit its size limit which is configurable<br />
- (default, half of maximum jvm heap size). At this point, messages are just pruned in <span class="caps">FIFO </span>order. We use the size of the blobs in the message for estimating the cache size. The assumption is that that size will dominate over fixed, object-level size overheads.</li>
-<li>Stubs are not purged because according to the above simplification, they are of 0 size.</li>
-</ul>
-
-<h1>Scalability Bottlenecks Down the Road</h1>
-
-<ul>
-<li>Currently each topic subscription is served on a different channel. The number of channels will become a bottleneck at higher channels. We should switch to an architecture, where multiple topic subscriptions between the same client, hub pair should be served on the same channel. We can have commands to start, stop subscriptions sent all the way to the server (right now these are local).</li>
-<li>Publishes for a topic are serialized through a hub, to get ordering guarantees. Currently, all subscriptions to that topic are served from the same hub. If we start having large number of subscribers to heavy-volume topics, the outbound bandwidth at the hub, or the <span class="caps">CPU </span>at that hub might become the bottleneck. In that case, we can setup other regions through which the messages are routed (this hierarchical scheme) reduces bandwidth requirements at any single node. It should be possible to do this entirely through configuration.</li>
-</ul>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigJMX.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigJMX.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigJMX.html Tue Mar 10 20:55:47 2015
@@ -22,142 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - Hedwig JMX</title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1><span class="caps">JMX</span></h1>
-
-<p>Apache Hedwig has extensive support for <span class="caps">JMX, </span>which allows viewing and managing a hedwig cluster.</p>
-
-<p>This document assumes that you have basic knowledge of <span class="caps">JMX.</span> See <a href="http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/">Sun <span class="caps">JMX</span> Technology</a> page to get started with <span class="caps">JMX.</span></p>
-
-<p>See the <a href="http://java.sun.com/javase/6/docs/technotes/guides/management/agent.html"><span class="caps">JMX</span> Management Guide</a> for details on setting up local and remote management of VM instances. By default the included <i>hedwig</i> script supports only local management - review the linked document to enable support for remote management (beyond the scope of this document).</p>
-
-<p><i>Hub Server</i> is a <span class="caps">JMX </span>manageable server, which registers the proper MBeans during initialization to support <span class="caps">JMX </span>monitoring and management of the instance.</p>
-
-<h1>Hub Server MBean Reference</h1>
-
-<p>This table details <span class="caps">JMX </span>for a hub server.</p>
-
-<table><tr><td>_.MBean</td><td>_.MBean Object Name</td><td>_.Description</td></tr><tr><td>PubSubServer</td><td>PubSubServer</td><td>Represents a hub server. It is the root MBean for hub server, which includes statistics for a hub server. E.g. number packets sent/received/redirected, and statistics for pub/sub/unsub/consume operations.</td></tr><tr><td>NettyHandlers</td><td>NettyHandler</td><td>Provide statistics for netty handlers. Currently it just returns number of subscription channels established to a hub server.</td></tr><tr><td>ReadAheadCache</td><td>ReadAheadCache</td><td>Provide read ahead cache statistics.</td></tr></table>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMessageFilter.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMessageFilter.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMessageFilter.html Tue Mar 10 20:55:47 2015
@@ -22,196 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - Hedwig Message Filter</title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Message Filter</h1>
-
-<p>Apache Hedwig provides an efficient mechanism for supporting application-defined <i>message filtering</i>.</p>
-
-<h2>Message</h2>
-
-<p>Most message-oriented middleware (MOM) products treat messages as lightweight entities that consist of a header and a payload. The header contains fields used for message routing and identification; the payload contains the application data being sent.</p>
-
-<p>Hedwig messages follow a similar template, being composed of following parts:</p>
-
-<ul>
-<li><code>Header</code> - All messages support both system defined fields and application defined property values. Properties provide an efficient mechanism for supporting application-defined message filtering.</li>
-<li><code>Body</code> - Hedwig considers the message body as a opaque binary blob.</li>
-<li><code>SrcRegion</code> - Indicates where the message comes from.</li>
-<li><code>MessageSeqId</code> - The unique message sequence id assigned by Hedwig.</li>
-</ul>
-
-<h3>Message Header Properties</h3>
-
-<p>A <i>Message</i> object contains a built-in facility for supporting application-defined property values. In effect, this provides a mechanism for adding application-specific header fields to a message.</p>
-
-<p>By using properties and <i>message filters</i>, an application can have Hedwig select, or filter, messages on its behalf using application-specific criteria.</p>
-
-<p>Property names must be a <i>String</i> and must not be null, while property values are binary blobs. The flexibility of binary blobs allows applications to define their own serialize/deserialize functions, allowing structured data to be stored in the message header.</p>
-
-<h2>Message Filter</h2>
-
-<p>A <i>Message Filter</i> allows an application to specify, via header properties, the messages it is interested in. Only messages which pass validation of a <i>Message Filter</i>, specified by a subscriber, are be delivered to the subscriber.</p>
-
-<p>A message filter could be run either on the <i>server side</i> or on the <i>client side</i>. For both <i>server side</i> and <i>client side</i>, a <i>Message Filter</i> implementation needs to implement the following two interfaces:</p>
-
-<ul>
-<li><code>setSubscriptionPreferences(topic, subscriberId, preferences)</code>: The <i>subscription preferences</i> of the subscriber will be passed to message filter when it was attached to its subscription either on the server-side or on the client-side.</li>
-<li><code>testMessage(message)</code>: Used to test whether a particular message passes the filter or not.</li>
-</ul>
-
-<p>The <i>subscription preferences</i> are used to specify the messages that the user is interested in. The <i>message filter</i> uses the <i>subscription preferences</i> to decide which messages are passed to the user.</p>
-
-<p>Take a book store(using topic <i>BookStore</i>) as an example:</p>
-
-<ol>
-<li>User A may only care about History books. He subscribes to <i>BookStore</i> with his custom preferences : type="History".</li>
-<li>User B may only care about Romance books. He subscribes to <i>BookStore</i> with his custom preferences : type="Romance".</li>
-<li>A new book arrives at the book store; a message is sent to <i>BookStore</i> with type="History" in its header</li>
-<li>The message is then delivered to <i>BookStore</i>'s subscribers.</li>
-<li>Subscriber A filters the message by checking messages' header to accept those messages whose type is "History".</li>
-<li>Subscriber B filters out the message, as the type does not match its preferences.</li>
-</ol>
-
-<h3>Client Message Filter.</h3>
-
-<p>A <i>ClientMessageFilter</i> runs on the client side. Each subscriber can write its own filter and pass it as a parameter when starting delivery ( <i>startDelivery(topic, subscriberId, messageHandler, messageFilter)</i> ).</p>
-
-<h3>Server Message Filter.</h3>
-
-<p>A <i>ServerMessageFilter</i> runs on the server side (a hub server). A hub server instantiates a server message filter, by means of reflection, using the message filter class specified in the subscription preferences which are provided by the subscriber. Since <i>ServerMessageFilter__s run on the hub server, all filtered-out messages are never delivered to client, reducing unnecessary network traffic. Hedwig uses a implementation of __ServerMessageFilter</i> to filter unnecessary message deliveries between regions.</p>
-
-<p>Since hub servers use reflection to instantiate a <i>ServerMessageFilter</i>, an implementation of <i>ServerMessageFilter</i> needs to implement two additional methods:</p>
-
-<ul>
-<li><code>initialize(conf)</code>: Initialize the message filter before filtering messages.</li>
-<li><code>uninitialize()</code>: Uninitialize the message filter to release resources used by the message filter.</li>
-</ul>
-
-<p>For the hub server to load the message filter, the implementation class must be in the server's classpath at startup.</p>
-
-<h3>Which message filter should be used?</h3>
-
-<p>It depends on application requirements. Using a <i>ServerMessageFilter</i> will reduce network traffic by filtering unnecessary messages, but it would compete for resources on the hub server(CPU, memory, etc). Conversely, __ClientMessageFilter__s have the advantage of inducing no extra load on the hub server, but at the price of higher network utilization. A filter can be installed both at the server side and on the client; Hedwig does not restrict this.</p>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMetadata.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMetadata.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigMetadata.html Tue Mar 10 20:55:47 2015
@@ -22,274 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - Hedwig Metadata Management</title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Metadata Management</h1>
-
-<p>There are two classes of metadata that need to be managed in Hedwig: one is the <i>list of available hubs</i>, which is used to track server availability (ZooKeeper is designed naturally for this); while the other is for data structures to track <i>topic states</i> and <i>subscription states</i>. This second class can be handled by any key/value store which provides ah <i><span class="caps">CAS </span>(Compare And Set)</i> operation. The metadata in this class are:</p>
-
-<ul>
-<li><code>Topic Ownership</code>: tracks which hub server is assigned to serve requests for a specific topic.</li>
-<li><code>Topic Persistence Info</code>: records what <i>bookkeeper ledgers</i> are used to store messages for a specific topic and their message id ranges.</li>
-<li><code>Subscription Data</code>: records the preferences and subscription state for a specific subscription (topic, subscriber).</li>
-</ul>
-
-<p>Each kind of metadata is handled by a specific metadata manager. They are <i>TopicOwnershipManager</i>, <i>TopicPersistenceManager</i> and <i>SubscriptionDataManager</i>.</p>
-
-<h2>Topic Ownership Management</h2>
-
-<p>There are two ways to management topic ownership. One is leveraging ZooKeeper's ephemeral znodes to record the topic's owner info as a child ephemeral znode under its topic znode. When a hub server, owning a specific topic, crashes, the ephemeral znode which signifies topic ownership will be deleted due to the loss of the zookeeper session. Other hubs can then be assigned the ownership of the topic. The other one is to leverage the <i><span class="caps">CAS</span></i> operation provided by key/value stores to do leader election. <i><span class="caps">CAS</span></i> doesn't require the underlying key/value store to provide functionality similar to ZooKeeper's ephemeral nodes. With <i><span class="caps">CAS</span></i> it is possible to guarantee that only one hub server gains the ownership for a specific topic, which is more scalable and generic solution.</p>
-
-<p>The implementation of a <i>TopicOwnershipManager</i> is required to implement following methods:</p>
-
-
-
-<pre><code>
-
-public void readOwnerInfo(ByteString topic, Callback<Versioned<HubInfo>> callback, Object ctx);
-
-public void writeOwnerInfo(ByteString topic, HubInfo owner, Version version,
- Callback<Version> callback, Object ctx);
-
-public void deleteOwnerInfo(ByteString topic, Version version,
- Callback<Void> callback, Object ctx);
-
-</code></pre>
-
-
-
-<ul>
-<li><code>readOwnerInfo</code>: Read the owner info from the underlying key/value store. The implementation should take the responsibility of deserializing the metadata into a <i>HubInfo</i> object identifying a hub server. Also, its current <i>version</i> needs to be returned for future updates. If there is no owner info found for a topic, null value is returned.</li>
-</ul>
-
-<ul>
-<li><code>writeOwnerInfo</code>: Write the owner info into the underlying key/value store with the given <i>version</i>. If the current <i>version</i> in underlying key/value store doesn't equal to the provided <i>version</i>, the write should be rejected with <i>BadVersionException</i>. The new <i>version</i> should be returned for a successful write. <i>NoTopicOwnerInfoException</i> is returned if no owner info found for a topic.</li>
-</ul>
-
-<ul>
-<li><code>deleteOwnerInfo</code>: Delete the owner info from key/value store with the given <i>version</i>. The owner info should be removed if the current <i>version</i> in key/value store is equal to the provided <i>version</i>. Otherwise, the deletion should be rejected with <i>BadVersionException</i>. <i>NoTopicOwnerInfoException</i> is returned if no owner info is found for the topic.</li>
-</ul>
-
-<h2>Topic Persistence Info Management</h2>
-
-<p>Similar as <i>TopicOwnershipManager</i>, an implementation of <i>TopicPersistenceManager</i> is required to implement <span class="caps">READ</span>/WRITE/DELETE interfaces as below:</p>
-
-
-
-<pre><code>
-public void readTopicPersistenceInfo(ByteString topic,
- Callback<Versioned<LedgerRanges>> callback, Object ctx);
-
-public void writeTopicPersistenceInfo(ByteString topic, LedgerRanges ranges, Version version,
- Callback<Version> callback, Object ctx);
-
-public void deleteTopicPersistenceInfo(ByteString topic, Version version,
- Callback<Void> callback, Object ctx);
-</code></pre>
-
-
-
-<ul>
-<li><code>readTopicPersistenceInfo</code>: Read the persistence info from the underlying key/value store. The implementation should take the responsibility of deserializing the metadata into a <i>LedgerRanges</i> object includes the ledgers used to store messages. Also, its current <i>version</i> needs to be returned for future updates. If there is no persistence info found for a topic, a null value is returned.</li>
-</ul>
-
-<ul>
-<li><code>writeTopicPersistenceInfo</code>: Write the persistence info into the underlying key/value store with the given <i>version</i>. If the current <i>version</i> in the underlying key/value store doesn't equal the provided <i>version</i>, the write should be rejected with <i>BadVersionException</i>. The new <i>version</i> should be returned on a successful write. <i>NoTopicPersistenceInfoException</i> is returned if no persistence info is found for a topic.</li>
-</ul>
-
-<ul>
-<li><code>deleteTopicPersistenceInfo</code>: Delete the persistence info from the key/value store with the given <i>version</i>. The owner info should be removed if the current <i>version</i> in the key/value store equals the provided <i>version</i>. Otherwise, the deletion should be rejected with <i>BadVersionException</i>. <i>NoTopicPersistenceInfoException</i> is returned if no persistence info is found for a topic.</li>
-</ul>
-
-<h2>Subscription Data Management</h2>
-
-<p><i>SubscriptionDataManager</i> has similar <span class="caps">READ</span>/CREATE/WRITE/DELETE interfaces as other managers. Besides that, the implementation needs to implement <i><span class="caps">READ SUBSCRIPTIONS</span></i> interface, which is to fetch all the subscriptions for a given topic.</p>
-
-
-
-<pre><code>
-public void createSubscriptionData(ByteString topic, ByteString subscriberId, SubscriptionData data,
- Callback<Version> callback, Object ctx);
-
-public boolean isPartialUpdateSupported();
-
-public void updateSubscriptionData(ByteString topic, ByteString subscriberId, SubscriptionData dataToUpdate,
- Version version, Callback<Version> callback, Object ctx);
-
-public void replaceSubscriptionData(ByteString topic, ByteString subscriberId, SubscriptionData dataToReplace,
- Version version, Callback<Version> callback, Object ctx);
-
-public void deleteSubscriptionData(ByteString topic, ByteString subscriberId, Version version,
- Callback<Void> callback, Object ctx);
-
-public void readSubscriptionData(ByteString topic, ByteString subscriberId,
- Callback<Versioned<SubscriptionData>> callback, Object ctx);
-
-public void readSubscriptions(ByteString topic, Callback<Map<ByteString, Versioned<SubscriptionData>>> cb,
- Object ctx);
-</code></pre>
-
-
-
-<h3>Create/Update Subscriptions</h3>
-
-<p>The metadata for a subscription includes two parts, one is preferences and the other one is subscription state. <i>SubscriptionPreferences</i> tracks all the preferences for a subscriber (etc. Application could store its customized preferences for message filtering), while <i>SubscriptionState</i> is used internally to track the message consumption state for a given subscriber. These two kinds of metadata are quite different: <i>SubscriptionPreferences</i> is not updated<br />
-frequently while <i>SubscriptionState</i> is be updated frequently when messages are consumed. If the underlying key/value store supports independent field update for a given key (subscription), <i>SubscriptionPreferences</i> and <i>SubscriptionState</i> could be stored as two different fields for a given subscription. In this case <i>isPartialUpdateSupported</i> should return true. Otherwise, <i>isPartialUpdateSupported</i> should return false and the implementation should serialize/deserialize <i>SubscriptionData</i> as an opaque blob.</p>
-
-<ul>
-<li><code>createSubscriptionData</code>: Create a subscription entry for a given topic. The initial <i>version</i> would be returned for a success creation. <i>SubscriptionStateExistsException</i> is returned if the subscription entry already exists.</li>
-</ul>
-
-<ul>
-<li><code>updateSubscriptionData/replaceSubscriptionData</code>: Update/replace the subscription data in the underlying key/value store with the given <i>version</i>. If the current <i>version</i> in underlying key/value store doesn't equal to the provided <i>version</i>, the update should be rejected with <i>BadVersionException</i>. The new <i>version</i> should be returned for a successful write. <i>NoSubscriptionStateException</i> is returned if no subscription entry is found for a subscription (topic, subscriber).</li>
-</ul>
-
-<h3>Read Subscriptions</h3>
-
-<ul>
-<li><code>readSubscriptionData</code>: Read the subscription data from the underlying key/value store. The implementation should take the responsibility of deserializing the metadata into a <i>SubscriptionData</i> object including its preferences and subscription state. Also, its current <i>version</i> needs to be returned for future updates. If there is no subscription data found for a subscription, a null value is returned.</li>
-</ul>
-
-<ul>
-<li><code>readSubscriptions</code>: Read all the subscription data from key/value store for a given topic. The implementation should take the responsibility of managing all subscription for a topic for efficient access. An empty map is returned if there are no subscriptions found for a given topic.</li>
-</ul>
-
-<h3>Delete Subscription</h3>
-
-<ul>
-<li><code>deleteSubscriptionData</code>: Delete the subscription data from the key/value store with given <i>version</i> for a specific subscription (topic, subscriber). The subscription info should be removed if current <i>version</i> in key/value store equals the provided <i>version</i>. Otherwise, the deletion should be rejected with <i>BadVersionException</i>. <i>NoSubscriptionStateException</i> is returned if no subscription data is found for a subscription (topic, subscriber).</li>
-</ul>
-
-<h1>How to choose a key/value store for Hedwig.</h1>
-
-<p>From the interface, several requirements needs to meet before picking up a key/value store for Hedwig:</p>
-
-<ul>
-<li><code>CAS</code>: The ability to do strict updates according to specific condition, i.e. a specific version (ZooKeeper) and same content (HBase).</li>
-<li><code>Optimized for Writes</code>: The metadata access pattern for Hedwig is read first and continuous updates.</li>
-<li><code>Optimized for retrieving all subscriptions for a topic</code>: Either hierarchical structures to maintain such relationships (ZooKeeper), or ordered key/value storage to cluster the subscription for a topic together, would provide efficient subscription data management.</li>
-</ul>
-
-<p><i>ZooKeeper</i> is the default implementation for Hedwig metadata management, which holds data in memory and provides filesystem-like namespace, meeting the above requirements. <i>ZooKeeper</i> is suitable for most Hedwig usecases. However, if your application needs to manage millions of topics/subscriptions, a more scalable solution would be <i>HBase</i>, which also meet the above requirements.</p>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigParams.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigParams.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigParams.html Tue Mar 10 20:55:47 2015
@@ -22,187 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - </title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <p> <br />
-h1. Hedwig configuration parameters <br />
- <br />
-This page contains detailed information about configuration parameters used for Hubs, Regions, ZooKeeper, and BookKeeper.<br />
- <br />
-h2. Hedwig server configuration parameters</p>
-
-<p>Please also refer to the configuration file that comes with the distribution: <em>hedwig-server/conf/hw_server.conf</em>. </p>
-
-<h3>Region related parameters</h3>
-
-<table><tr><td><code>region</code></td><td>Region identifier. Default is "standalone".</td></tr><tr><td><code>regions</code></td><td>List of region identifiers, space separated. Default is empty.</td></tr><tr><td><code>inter_region_ssl_enabled (deprecated)</code></td><td>Enables <span class="caps">SSL </span>across regions. Default is false. <strong>Since this parameter has been deprecated, use <i>ssl_enabled</i> in <em>hedwig-server/conf/hw_region_client.conf</em> to enable <span class="caps">SSL </span>across regions instead.</strong></td></tr><tr><td><code>retry_remote_subscribe_thread_run_interval</code></td><td>This parameter is used to determine how often we run a thread to retry those failed remote subscriptions in asynchronous mode (in milliseconds). Default is 2 minutes.</td></tr></table>
-
-<h3>Hub server parameters</h3>
-
-<table><tr><td><code>standalone</code></td><td>Sets the hub server to run in standalone mode (no regions). Default is false.</td></tr><tr><td><code>server_port</code></td><td>Sets the server port that receives client connections. Default is 4080.</td></tr><tr><td><code>ssl_enabled</code></td><td>Enables <span class="caps">SSL.</span> Default is false.</td></tr><tr><td><code>ssl_server_port</code></td><td>Sets the server port for <span class="caps">SSL </span>connections. Default is 9876.</td></tr><tr><td><code>password</code></td><td>Password used for pkcs12 certificate.. Default is the empty string.</td></tr><tr><td><code>cert_name</code></td><td>Sets the name of the <span class="caps">SSL </span>certificate if available as a resource. Default is the null string.</td></tr><tr><td><code>cert_path</code></td><td>Sets the path to the <span class="caps">SSL </span>certificate if it is available as a file. Default is the null string.</td></tr></table>
-
-<h3>Read-ahead cache parameters</h3>
-
-<table><tr><td><code>readahead_enabled</code></td><td>Enables read-ahead. Enabled by default.</td></tr><tr><td><code>readahead_count</code></td><td>Number of messages to read ahead. Default is 10.</td></tr><tr><td><code>readahead_size</code></td><td>Maximum number of bytes to read during a scan. Default is 4 megabytes.</td></tr></table>
-
-<blockquote><p>Upon a range scan request for a given topic, two hints are provided as to when scanning should stop: the number of messages scanned and the total size of messages scanned. Scanning stops whenever one of these limits is exceeded.</p></blockquote>
-
-<table><tr><td><code>cache_size</code></td><td>Sets the size of the read-ahead cache. Default is the smallest of 2G or half the heap size.</td></tr><tr><td><code>cache_entry_ttl</code></td><td>Sets <span class="caps">TTL </span>for cache entries. Each time adding new entry into the cache, those expired cache entries would be discarded. If the value is set to zero or less than zero, cache entry will not be evicted until the cache is fullfilled or the messages are already consumed. Default is 0.</td></tr><tr><td><code>scan_backoff_ms</code></td><td>The backoff time (in milliseconds) to retry scans after failures. Default value is 1s (1000ms). Default is 1s.</td></tr><tr><td><code>num_readahead_cache_threads</code></td><td>Sets the number of threads to be used for the read-ahead mechanism. Default is the number of cores as returned with a call to <code>Runtime.getRuntime().availableProcessors()</code>.</td></tr></table>
-
-<h3>Publish and subscription parameters </h3>
-
-<table><tr><td><code>max_message_size</code></td><td>Sets the maximum message size. Default is 1.2 megabytes.</td></tr><tr><td><code>default_message_window_size</code></td><td>This parameter is used for setting the default maximum number of messages that can be delivered to a subscriber without being consumed. We pause delivery to a subscriber when reaching the window size. Default is unlimited (0).</td></tr><tr><td><code>consume_interval</code></td><td>Sets the number of messages consumed before persisting information about consumed messages. A value greater than one avoids persisting information about consumed messages upon every consumed message. Default is 50.</td></tr><tr><td><code>retention_secs</code></td><td>the interval to release a topic. If this parameter is greater than zero, then schedule a task to release an owned topic. Default is 0 (never released).</td><td><code>messages_consumed_thread_run_interval</code></td><td>Time interval (in milliseconds) to run messages cons
umed timer task to<br />
-delete those consumed ledgers in BookKeeper. Default is 1 minute (60,000 ms).</td></tr></table>
-
-
-<h3>ZooKeeper parameters<br />
- <br />
-| <code>zk_host</code> | Sets the ZooKeeper list of servers. Default is localhost:2181. |<br />
-| <code>zk_timeout</code> | Sets the ZooKeeper session timeout. Default is 2s. |</h3>
-
-<h3>BookKeeper parameters</h3>
-
-<table><tr><td><code>bk_ensemble_size</code></td><td>Sets the ensemble size. Default is 3.</td></tr><tr><td><code>bk_write_quorum_size</code></td><td>Sets the write quorum size. Default is 2.</td></tr><tr><td><code>bk_ack_quorum_size</code></td><td>Sets the ack quorum size. Default is 2.</td></tr></table>
-
-<blockquote><p>Note that the ack quorum size must be equal or smaller than the write quorum size.</p></blockquote>
-
-<table><tr><td><code>max_entries_per_ledger</code></td><td>Maximum number of entries before we roll a ledger. Default is unlimited (0).</td></tr></table>
-
-<h3>Metadata parameters</h3>
-
-<table><tr><td><code>zk_prefix</code></td><td>Sets the ZooKeeper path prefix. Default is <em>/hedwig</em>.</td></tr><tr><td><code>metadata_manager_based_topic_manager_enabled</code></td><td>Enables the use of a metadata manager for topic management. Default is false.</td></tr><tr><td><code>metadata_manager_factory_class</code></td><td>Sets the default factory for the metadata manager. Default is null.</td></tr></table>
-
-<h2>Region manager configuration parameters</h2>
-
-<p>Please also refer to the configuration file that comes with the distribution: <em>hedwig-server/conf/hw_region_client.conf</em>.</p>
-
-<p>| <code>ssl_enabled</code> | This parameter is a boolean flag indicating if communication with the server should be done via <span class="caps">SSL </span>for encryption. The Hedwig server hubs also need to be <span class="caps">SSL </span>enabled for this to work. Default value is false. |<br />
-| <code>max_message_size</code> | Sets the maximum message size in bytes. The default value is 2 MB (2097152). |<br />
-| <code>max_server_redirects</code> | Sets the maximum number of redirects we permit before signaling an error. Default value is 2. |<br />
-| <code>auto_send_consume_message_enabled</code> | A flag indicating whether the client library should automatically send consume messages to the server. Default value is true. |<br />
-| <code>consumed_messages_buffer_size</code> | Sets the number of messages we buffer before sending a consume message to the server. Default value is 5. |<br />
-| <code>max_outstanding_messages</code> | Support for client side throttling, sets the maximum number of outstanding messages. Default value is 10. |<br />
-| <code>server_ack_response_timeout</code> | Sets the timeout (in milliseconds) before we error out any existing requests. Default value is 30s (30,000). |<br />
- </p>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigUser.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigUser.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/hedwigUser.html Tue Mar 10 20:55:47 2015
@@ -22,177 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - </title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Design</h1>
-
-<p>In Hedwig, clients publish messages associated with a topic, and they subscribe to a topic to receive all messages published with that topic. Clients are associated with (publish to and subscribe from) a Hedwig <em>instance</em> (also referred to as a <em>region</em>), which consists of a number of servers called <em>hubs</em>. The hubs partition up topic ownership among themselves, and all publishes and subscribes to a topic must be done to its owning hub. When a client doesn't know the owning hub, it tries a default hub, which may redirect the client.</p>
-
-<p>Running a Hedwig instance requires a Zookeeper server and at least three Bookkeeper servers.</p>
-
-<p>An instance is designed to run within a datacenter. For wide-area messaging across datacenters, specify in the server configuration the set of default servers for each of the other instances. Dissemination among instances currently takes place over an all-to-all topology. Local subscriptions cause the hub to subscribe to all other regions on this topic, so that the local region receives all updates to it. Future work includes allowing the user to overlay alternative topologies.</p>
-
-<p>Because all messages on a topic go through a single hub per region, all messages within a region are ordered. This means that, for a given topic, messages are delivered in the same order to all subscribers within a region, and messages from any particular region are delivered in the same order to all subscribers globally, but messages from different regions may be delivered in different orders to different regions. Providing global ordering is prohibitively expensive in the wide area. However, in Hedwig clients such as <span class="caps">PNUTS, </span>the lack of global ordering is not a problem, as <span class="caps">PNUTS </span>serializes all updates to a table row at a single designated master for that row.</p>
-
-<p>Topics are independent; Hedwig provides no ordering across different topics.</p>
-
-<p>Version vectors are associated with each topic and serve as the identifiers for each message. Vectors consist of one component per region. A component value is the region's local sequence number on the topic, and is incremented each time a hub persists a message (published either locally or remotely) to <span class="caps">BK.</span></p>
-
-<p><span class="caps">TODO</span>: More on how version vectors are to be used, and on maintaining vector-maxes.</p>
-
-<h1>Entry Points</h1>
-
-<p>The main class for running the server is <code>org.apache.hedwig.server.netty.PubSubServer</code>. It takes a single argument, which is a <a href="http://commons.apache.org/configuration/">Commons Configuration</a> file. Currently, for configuration, the source is the documentation. See <code>org.apache.hedwig.server.conf.ServerConfiguration</code> for server configuration parameters.</p>
-
-<p>The client is a library intended to be consumed by user applications. It takes a Commons Configuration object, for which the source/documentation is in <code>org.apache.hedwig.client.conf.ClientConfiguration</code>.</p>
-
-<h1>Deployment</h1>
-
-<h2>Limits</h2>
-
-<p>Because the current implementation uses a single socket per subscription, the Hedwig requires a high <code>ulimit</code> on the number of open file descriptors. Non-root users can only use up to the limit specified in <code>/etc/security/limits.conf</code>; to raise this to 1024^2, as root, modify the "nofile" line in /etc/security/limits.conf on all hubs.</p>
-
-<h2>Running Servers</h2>
-
-<p>Hedwig requires BookKeeper to run. For BookKeeper setup instructions see <a href="./bookkeeperStarted.html">BookKeeper Getting Started</a>.</p>
-
-<p>To start a Hedwig hub server:</p>
-
-<p><code>hedwig-server/bin/hedwig server</code></p>
-
-<p>Hedwig takes its configuration from hedwig-server/conf/hw_server.conf by default. To change location of the conf file, modify the <span class="caps">HEDWIG</span>_SERVER_CONF environment variable.</p>
-
-<h1>Debugging</h1>
-
-<p>You can attach an Eclipse debugger (or any debugger) to a Java process running on a remote host, as long as it has been started with the appropriate <span class="caps">JVM </span>flags. (See the Building Hedwig document to set up your Eclipse environment.) To launch something using <code>bin/hedwig</code> with debugger attachment enabled, prefix the command with <code>HEDWIG_EXTRA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=5000</code>, e.g.:</p>
-
-<p><code>HEDWIG_EXTRA_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,address=5000 hedwig-server/bin/hedwig server</code></p>
-
-<h1>Logging</h1>
-
-<p>Hedwig uses <a href="http://www.slf4j.org">slf4j</a> for logging, with the log4j bindings enabled by default. To enable logging from hedwig, create a log4j.properties file and point the environment variable <span class="caps">HEDWIG</span>_LOG_CONF to the file. The path to the log4j.properties file must be absolute.</p>
-
-<p><code>export HEDWIG_LOG_CONF=/tmp/log4j.properties</code><br />
-<code>hedwig-server/bin/hedwig server</code></p>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/index.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/index.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/index.html Tue Mar 10 20:55:47 2015
@@ -22,171 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - BookKeeper Documentation</title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Apache BookKeeper documentation</h1>
-
-<ul>
-<li><a href="./bookkeeperOverview.html">Overview</a></li>
-<li><a href="./bookkeeperStarted.html">Getting started</a></li>
-<li><a href="./bookkeeperProgrammer.html">Programmer's Guide</a></li>
-<li><a href="./bookieConfigParams.html">Bookie Server Configuration Parameters</a></li>
-<li><a href="./bookkeeperConfigParams.html">BookKeeper Configuration Parameters</a></li>
-<li><a href="./bookkeeperInternals.html">BookKeeper Internals</a></li>
-<li><a href="./bookieRecovery.html">Bookie Recovery</a></li>
-<li><a href="./bookkeeperStream.html">Using BookKeeper stream library</a></li>
-<li><a href="./bookkeeperMetadata.html">BookKeeper Metadata Management</a></li>
-</ul>
-
-<h2>BookKeeper Admin & Ops</h2>
-
-<ul>
-<li><a href="./bookkeeperConfig.html">Admin Guide</a></li>
-<li><a href="./bookkeeperJMX.html">BookKeeper <span class="caps">JMX</span></a></li>
-</ul>
-
-<h1>Apache Hedwig documentation</h1>
-
-<ul>
-<li><a href="./hedwigBuild.html">Building Hedwig, or how to set up Hedwig</a></li>
-<li><a href="./hedwigUser.html">User's Guide, or how to program against the Hedwig <span class="caps">API </span>and how to run it</a></li>
-<li><a href="./hedwigDesign.html">Developer's Guide, or Hedwig internals and hacking details</a></li>
-<li><a href="./hedwigParams.html">Configuration parameters</a></li>
-<li><a href="./hedwigMessageFilter.html">Message Filtering</a></li>
-<li><a href="./hedwigMetadata.html">Hedwig Metadata Management</a></li>
-</ul>
-
-<h2>Hedwig Admin & Ops</h2>
-
-<ul>
-<li><a href="./hedwigConsole.html">Hedwig Console</a></li>
-<li><a href="./hedwigJMX.html">Hedwig <span class="caps">JMX</span></a></li>
-</ul>
-
-<h1>Metastore documentation</h1>
-
-<ul>
-<li><a href="./metastore.textile">Metastore Interface</a></li>
-</ul>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>
Modified: websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/metastore.html
==============================================================================
--- websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/metastore.html (original)
+++ websites/staging/zookeeper/trunk/content/bookkeeper/docs/trunk/metastore.html Tue Mar 10 20:55:47 2015
@@ -22,166 +22,16 @@
<link href="/bookkeeper/css/site.css" rel="stylesheet" type="text/css">
<link href="/bookkeeper/css/type-settings.css" rel="stylesheet" type="text/css">
- <title>Apache BookKeeper - Metastore Interface</title>
+ <title>Apache BookKeeper - Redirecting</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <script>
+ var newUrl = document.location.replace("zookeeper.apache.org/bookkeeper", "bookkeeper.apache.org")
+ document.location.assign(newUrl)
+ </script>
</head>
<body>
-<div class="white_box">
-<div class="header">
- <div class="header_l">
- <div class="header_r">
- </div>
- </div>
-</div>
-<div class="content">
- <div class="content_l">
- <div class="content_r">
- <div>
-
-<!-- Banner -->
-
-
- <div id="header_background">
- <div id="bookkeeper_logo">
- <a href="/bookkeeper"><img src="/bookkeeper/images/bookkeeper_logo_blk.png"/></a> <b><font size=+4 color=white>Apache BookKeeper™</font></b> <a href="http://apache.org"><img src="/bookkeeper/images/feather_small.gif"/></a>
- </div>
- </div>
-
- <table border="0">
- <tbody>
- <tr>
- <td style="overflow: hidden;" valign="top" width="100%">
- <div class="wiki-content">
- <h1>Metastore Interface</h1>
-
-<p>Although Apache BookKeeper provides <a href="./bookkeeperMetadata.html">LedgerManager</a> and <a href="./hedwigMetadata.html">Hedwig Metadata Managers</a> for users to plugin different metadata storages for both BookKeeper and Hedwig, it is quite difficult to implement a correct and efficient manager version based on the knowledge for both projects. The <i>MetaStore</i> interface extracts the commonality of the metadata storage interfaces and is provided for users to focus on adapting the underlying storage itself w/o having to worry about the detailed logic for BookKeeper and Hedwig.</p>
-
-<h2>MetaStore</h2>
-
-<p>The <i>MetaStore</i> interface provide users with access to <i>MetastoreTable__s used for BookKeeper and Hedwig metadata management. There are two kinds of table defined in a <i>MetaStore</i>, <i>MetastoreTable</i> which provides basic <i><span class="caps">PUT</span></i>,__GET</i>,__REMOVE__,__SCAN__ operations and which does not assume any ordering requirements from the underlying storage; and <i>MetastoreScannableTable</i> which is derived from <i>MetastoreTable</i>, but <strong>does</strong> assume that data is stored in key order in the underlying storage.</p>
-
-<ul>
-<li><code>getName</code>: Return the name of the <i>MetaStore</i>.</li>
-<li><code>getVersion</code>: Return current <i>MetaStore</i> plugin version.</li>
-<li><code>init</code>: Initialize the <i>MetaStore</i> library with the given configuration and its version.</li>
-<li><code>close</code>: Close the <i>MetaStore</i>, freeing all resources. i.e. release all the open connections and occupied memory etc.</li>
-<li><code>createTable</code>: Create a table instance to access the data stored in it. A table name is given to locate the table. An <i>MetastoreTable</i> object is returned.</li>
-<li><code>createScannableTable</code>: Similar as <i>createTable</i>, but returns <i>MetastoreScannableTable</i> rather then <i>MetastoreTable</i> object. If the underlying table is not an ordered table, <i>MetastoreException</i> should be thrown.</li>
-</ul>
-
-<h2>MetaStore Table</h2>
-
-<p><i>MetastoreTable</i> is a basic unit in a <i>MetaStore</i>, which is used to handle different types of metadata, i.e. A <i>MetastoreTable</i> is used to store metadata for ledgers, while the other <i>MetastoreTable</i> is used to store metadata for topic persistence info. The interface for a <i>MetastoreTable</i> is quite simple:</p>
-
-<ul>
-<li><code>get</code>: Retrieve a entry by a given <i>key</i>. <i>OK</i> and its current version in metadata storage is returned when succeed. <i>NoKey</i> returned for a non-existent key. If <i>fields</i> are specified, return only the specified fields for the key.</li>
-<li><code>put</code>: Put the given <i>value</i> associated with <i>key</i> with given <i>version</i>. The value is only updated when the given <i>version</i> equals the current version in metadata storage. A new <i>version</i> should be returned when updated successfully. <i>NoKey</i> is returned for a non-existent key, <i>BadVersion</i> is returned when an update is attempted with a <i>version</i> which does not match the one in the metadata store.</li>
-<li><code>remove</code>: Remove the given <i>value</i> associated with <i>key</i>. The value is only removed when the given <i>version</i> equals its current version in metadata storage. <i>NoKey</i> is returned for a non-existent key, <i>BadVersion</i> is returned when remove is attempted with a <i>version</i> which does not match.</li>
-<li><code>openCursor</code>: Open a <i>cursor</i> to iterate over all the entries of a table. The returned cursor doesn't need to guarantee any order and transaction.</li>
-</ul>
-
-<h2>MetaStore Scannable Table</h2>
-
-<p><i>MetastoreScannableTable</i> is identical to a <i>MetastoreTable</i> except that it provides an addition interface to iterate over entries in the table in key order.</p>
-
-<ul>
-<li><code>openCursor</code>: Open a <i>cursor</i> to iterate over all the entries of a table between the key range of <i>firstKey</i> and <i>lastKey</i>.</li>
-</ul>
-
-<h2>How to organize your metadata.</h2>
-
-<p>Some metadata in Hedwig and BookKeeper does not need to be stored in the order of the ledger id or the topic. You could use kind of hash table to store metadata for them. These metadata are topic ownership and topic persistence info. Besides that, subscription state and ledger metadata must be stored in key order due to the current logic in Hedwig/BookKeeper.</p>
- </div>
- </td>
- <td valign="top">
- <div class="navigation">
- <div class="navigation_top">
-<div class="searchbox">
-<form action="http://search-hadoop.com/zookeeper" method="get">
-<input onFocus="getBlank (this, 'Search with Apache Solr');" size="25" name="q" id="query" type="text" value="Search with Apache Solr">
- <input value="Search" type="submit">
-</form>
-</div>
-
- <div class="navigation_bottom">
-<!-- sidenav -->
-<h3>Project</h3>
-
-<ul>
-<li><a href="/bookkeeper/releases.html#news">News</a></li>
-<li><a href="/bookkeeper/releases.html">Releases</a></li>
-<li><a href="https://cwiki.apache.org/confluence/display/BOOKKEEPER/Index">Wiki</a></li>
-<li><a href="/bookkeeper/credits.html">Credits</a></li>
-<li><a href="/bylaws.html">Bylaws</a></li>
-<li><a href="http://www.apache.org/licenses/">License</a></li>
-<li><a href="/privacy.html">Privacy Policy</a></li>
-<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
-<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
-<li><a href="http://www.apache.org/security/">Security</a></li>
-</ul>
-
-
-<h3>Documentation</h3>
-
-<ul>
-<li><a href="/bookkeeper/docs/r4.3.0">Release 4.3.0</a></li>
-<li><a href="/bookkeeper/docs/r4.2.3">Release 4.2.3</a></li>
-<li><a href="/bookkeeper/docs/r4.2.2">Release 4.2.2</a></li>
-<li><a href="/bookkeeper/docs/r4.2.1">Release 4.2.1</a></li>
-<li><a href="/bookkeeper/docs/r4.2.0">Release 4.2.0</a></li>
-<li><a href="/bookkeeper/docs/r4.1.0">Release 4.1.0</a></li>
-<li><a href="/bookkeeper/docs/r4.0.0">Release 4.0.0</a></li>
-<li><a href="/bookkeeper/docs/trunk">Trunk</a></li>
-</ul>
-
-<h3>Developers</h3>
-
-<ul>
-<li><a href="/bookkeeper/lists.html">Mailing Lists</a></li>
-<li><a href="/bookkeeper/irc.html"><span class="caps">IRC</span> Channel</a></li>
-<li><a href="/bookkeeper/svn.html">Version Control</a></li>
-<li><a href="https://issues.apache.org/jira/browse/BOOKKEEPER">Issue Tracker</a></li>
-</ul>
-<!-- sidenav -->
- </div>
- </div>
- </div>
- </td>
- </tr>
- </tbody>
- </table>
-
-<!--
- <div class="bottom_red_bar"></div>
--->
- </div>
- </div>
- </div>
-</div>
-<div class="black_box">
-<div class="footer">
- <div class="footer_l">
- <div class="footer_r">
- <div>
-
- </div>
- </div>
- </div>
-</div>
-</div>
-</div>
-<!--
-<div class="design_attribution">Page Template Design By Marc Prud'hommeaux based on <a href="http://activemq.apache.org/">ActiveMQ template</a></div>
--->
-<div class="copyright_footer">
-<p>Copyright © 2010 The Apache Software Foundation, Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.<br>Apache ZooKeeper, ZooKeeper, Apache, the Apache feather logo, and the Apache ZooKeeper project logo are trademarks of The Apache Software Foundation.</p>
-</div>
-<script src="skeleton_files/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-1940143-1";
-urchinTracker();
-</script>
+ BookKeeper has graduated as an Apache Top Level project.
+ <a href="http://bookkeeper.apache.org">Click here if you are not automatically redirected</a>
</body></html>