You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by gi...@apache.org on 2018/01/24 18:53:23 UTC
[bookkeeper] branch asf-site updated: Updated site at revision
51b93ba
This is an automated email from the ASF dual-hosted git repository.
git-site-role pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 7b1872c Updated site at revision 51b93ba
7b1872c is described below
commit 7b1872c060e36e8f412632065572bc86fcc9f845
Author: jenkins <bu...@apache.org>
AuthorDate: Wed Jan 24 18:53:21 2018 +0000
Updated site at revision 51b93ba
---
content/docs/latest/api/javadoc/index-all.html | 8 ++
.../apache/bookkeeper/client/BookKeeperAdmin.html | 87 ++++++++++++++++++----
.../conf/class-use/ServerConfiguration.html | 15 ++++
3 files changed, 97 insertions(+), 13 deletions(-)
diff --git a/content/docs/latest/api/javadoc/index-all.html b/content/docs/latest/api/javadoc/index-all.html
index ee91a26..d7ad341 100644
--- a/content/docs/latest/api/javadoc/index-all.html
+++ b/content/docs/latest/api/javadoc/index-all.html
@@ -3379,6 +3379,10 @@
</dd>
<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/stats/CodahaleMetricsProvider.html#initIfNecessary--">initIfNecessary()</a></span> - Method in class org.apache.bookkeeper.stats.<a href="org/apache/bookkeeper/stats/CodahaleMetricsProvider.html" title="class in org.apache.bookkeeper.stats">CodahaleMetricsProvider</a></dt>
<dd> </dd>
+<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/client/BookKeeperAdmin.html#initNewCluster-org.apache.bookkeeper.conf.ServerConfiguration-">initNewCluster(ServerConfiguration)</a></span> - Static method in class org.apache.bookkeeper.client.<a href="org/apache/bookkeeper/client/BookKeeperAdmin.html" title="class in org.apache.bookkeeper.client">BookKeeperAdmin</a></dt>
+<dd>
+<div class="block">Intializes new cluster by creating required znodes for the cluster.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/client/LedgerHandle.NoopCloseCallback.html#instance">instance</a></span> - Static variable in class org.apache.bookkeeper.client.<a href="org/apache/bookkeeper/client/LedgerHandle.NoopCloseCallback.html" title="class in org.apache.bookkeeper.client">LedgerHandle.NoopCloseCallback</a></dt>
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/client/SyncCallbackUtils.LastAddConfirmedCallback.html#INSTANCE">INSTANCE</a></span> - Static variable in class org.apache.bookkeeper.client.<a href="org/apache/bookkeeper/client/SyncCallbackUtils.LastAddConfirmedCallback.html" title="class in org.apache.bookkeeper.client">SyncCallbackUtils.LastAddConfirmedCallback</a></dt>
@@ -4279,6 +4283,10 @@
<dd>
<div class="block">Not enough bookies available to form an ensemble.</div>
</dd>
+<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/client/BookKeeperAdmin.html#nukeExistingCluster-org.apache.bookkeeper.conf.ServerConfiguration-java.lang.String-java.lang.String-boolean-">nukeExistingCluster(ServerConfiguration, String, String, boolean)</a></span> - Static method in class org.apache.bookkeeper.client.<a href="org/apache/bookkeeper/client/BookKeeperAdmin.html" title="class in org.apache.bookkeeper.client">BookKeeperAdmin</a></dt>
+<dd>
+<div class="block">Nukes existing cluster metadata.</div>
+</dd>
<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/client/DistributionSchedule.html#NULL_WRITE_SET">NULL_WRITE_SET</a></span> - Static variable in interface org.apache.bookkeeper.client.<a href="org/apache/bookkeeper/client/DistributionSchedule.html" title="interface in org.apache.bookkeeper.client">DistributionSchedule</a></dt>
<dd> </dd>
<dt><span class="memberNameLink"><a href="org/apache/bookkeeper/stats/NullStatsLogger.html#nullCounter">nullCounter</a></span> - Static variable in class org.apache.bookkeeper.stats.<a href="org/apache/bookkeeper/stats/NullStatsLogger.html" title="class in org.apache.bookkeeper.stats">NullStatsLogger</a></dt>
diff --git a/content/docs/latest/api/javadoc/org/apache/bookkeeper/client/BookKeeperAdmin.html b/content/docs/latest/api/javadoc/org/apache/bookkeeper/client/BookKeeperAdmin.html
index 93c0613..4c6265c 100644
--- a/content/docs/latest/api/javadoc/org/apache/bookkeeper/client/BookKeeperAdmin.html
+++ b/content/docs/latest/api/javadoc/org/apache/bookkeeper/client/BookKeeperAdmin.html
@@ -18,7 +18,7 @@
catch(err) {
}
//-->
-var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9,"i10":9,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":9,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10};
+var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":9,"i10":9,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":9,"i18":9,"i19":10,"i20":9,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
@@ -330,25 +330,40 @@ implements <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoClose
</td>
</tr>
<tr id="i18" class="altColor">
+<td class="colFirst"><code>static boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#initNewCluster-org.apache.bookkeeper.conf.ServerConfiguration-">initNewCluster</a></span>(<a href="../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf)</code>
+<div class="block">Intializes new cluster by creating required znodes for the cluster.</div>
+</td>
+</tr>
+<tr id="i19" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Long.html?is-external=true" title="class or interface in java.lang">Long</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#listLedgers--">listLedgers</a></span>()</code>
<div class="block">This method returns an iterable object for the list of ledger identifiers of
the ledgers currently available.</div>
</td>
</tr>
-<tr id="i19" class="rowColor">
+<tr id="i20" class="altColor">
+<td class="colFirst"><code>static boolean</code></td>
+<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#nukeExistingCluster-org.apache.bookkeeper.conf.ServerConfiguration-java.lang.String-java.lang.String-boolean-">nukeExistingCluster</a></span>(<a href="../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> ledgersRootPath,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> instanceId,
+ boolean force)</code>
+<div class="block">Nukes existing cluster metadata.</div>
+</td>
+</tr>
+<tr id="i21" class="rowColor">
<td class="colFirst"><code><a href="../../../../org/apache/bookkeeper/client/LedgerHandle.html" title="class in org.apache.bookkeeper.client">LedgerHandle</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#openLedger-long-">openLedger</a></span>(long lId)</code>
<div class="block">Open a ledger as an administrator.</div>
</td>
</tr>
-<tr id="i20" class="altColor">
+<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../org/apache/bookkeeper/client/LedgerHandle.html" title="class in org.apache.bookkeeper.client">LedgerHandle</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#openLedgerNoRecovery-long-">openLedgerNoRecovery</a></span>(long lId)</code>
<div class="block">Open a ledger as an administrator without recovering the ledger.</div>
</td>
</tr>
-<tr id="i21" class="rowColor">
+<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Iterable.html?is-external=true" title="class or interface in java.lang">Iterable</a><<a href="../../../../org/apache/bookkeeper/client/LedgerEntry.html" title="class in org.apache.bookkeeper.client">LedgerEntry</a>></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#readEntries-long-long-long-">readEntries</a></span>(long ledgerId,
long firstEntry,
@@ -356,57 +371,57 @@ implements <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoClose
<div class="block">Read entries from a ledger synchronously.</div>
</td>
</tr>
-<tr id="i22" class="altColor">
+<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#recoverBookieData-org.apache.bookkeeper.net.BookieSocketAddress-">recoverBookieData</a></span>(org.apache.bookkeeper.net.BookieSocketAddress bookieSrc)</code>
<div class="block">Synchronous method to rebuild and recover the ledger fragments data that
was stored on the source bookie.</div>
</td>
</tr>
-<tr id="i23" class="rowColor">
+<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#recoverBookieData-long-java.util.Set-boolean-boolean-">recoverBookieData</a></span>(long lid,
<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><org.apache.bookkeeper.net.BookieSocketAddress> bookiesSrc,
boolean dryrun,
boolean skipOpenLedgers)</code> </td>
</tr>
-<tr id="i24" class="altColor">
+<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#recoverBookieData-java.util.Set-">recoverBookieData</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><org.apache.bookkeeper.net.BookieSocketAddress> bookiesSrc)</code> </td>
</tr>
-<tr id="i25" class="rowColor">
+<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#recoverBookieData-java.util.Set-boolean-boolean-">recoverBookieData</a></span>(<a href="http://docs.oracle.com/javase/8/docs/api/java/util/Set.html?is-external=true" title="class or interface in java.util">Set</a><org.apache.bookkeeper.net.BookieSocketAddress> bookiesSrc,
boolean dryrun,
boolean skipOpenLedgers)</code> </td>
</tr>
-<tr id="i26" class="altColor">
+<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#replicateLedgerFragment-org.apache.bookkeeper.client.LedgerHandle-org.apache.bookkeeper.client.LedgerFragment-">replicateLedgerFragment</a></span>(<a href="../../../../org/apache/bookkeeper/client/LedgerHandle.html" title="class in org.apache.bookkeeper.client">LedgerHandle</a> lh,
<a href="../../../../org/apache/bookkeeper/client/LedgerFragment.html" title="class in org.apache.bookkeeper.client">LedgerFragment</a> ledgerFragment)</code>
<div class="block">Replicate the Ledger fragment to target Bookie passed.</div>
</td>
</tr>
-<tr id="i27" class="rowColor">
+<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#setLostBookieRecoveryDelay-int-">setLostBookieRecoveryDelay</a></span>(int lostBookieRecoveryDelay)</code>
<div class="block">Setter for LostBookieRecoveryDelay value (in seconds) in Zookeeper.</div>
</td>
</tr>
-<tr id="i28" class="altColor">
+<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#triggerAudit--">triggerAudit</a></span>()</code>
<div class="block">Trigger AuditTask by resetting lostBookieRecoveryDelay to its current
value.</div>
</td>
</tr>
-<tr id="i29" class="rowColor">
+<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#watchReadOnlyBookiesChanged-org.apache.bookkeeper.discover.RegistrationClient.RegistrationListener-">watchReadOnlyBookiesChanged</a></span>(org.apache.bookkeeper.discover.RegistrationClient.RegistrationListener listener)</code>
<div class="block">Notify when the available list of read only bookies changes.</div>
</td>
</tr>
-<tr id="i30" class="altColor">
+<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#watchWritableBookiesChanged-org.apache.bookkeeper.discover.RegistrationClient.RegistrationListener-">watchWritableBookiesChanged</a></span>(org.apache.bookkeeper.discover.RegistrationClient.RegistrationListener listener)</code>
<div class="block">Notify when the available list of bookies changes.</div>
@@ -978,6 +993,52 @@ implements <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/AutoClose
</dl>
</li>
</ul>
+<a name="initNewCluster-org.apache.bookkeeper.conf.ServerConfiguration-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>initNewCluster</h4>
+<pre>public static boolean initNewCluster(<a href="../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf)
+ throws <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
+<div class="block">Intializes new cluster by creating required znodes for the cluster. If
+ ledgersrootpath is already existing then it will error out.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>conf</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
+</dl>
+</li>
+</ul>
+<a name="nukeExistingCluster-org.apache.bookkeeper.conf.ServerConfiguration-java.lang.String-java.lang.String-boolean-">
+<!-- -->
+</a>
+<ul class="blockList">
+<li class="blockList">
+<h4>nukeExistingCluster</h4>
+<pre>public static boolean nukeExistingCluster(<a href="../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> ledgersRootPath,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> instanceId,
+ boolean force)
+ throws <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></pre>
+<div class="block">Nukes existing cluster metadata. But it does only if the provided
+ ledgersRootPath matches with configuration's zkLedgersRootPath and
+ provided instanceid matches with the cluster metadata. If force is
+ mentioned then instanceid will not be validated.</div>
+<dl>
+<dt><span class="paramLabel">Parameters:</span></dt>
+<dd><code>conf</code> - </dd>
+<dd><code>ledgersRootPath</code> - </dd>
+<dd><code>instanceId</code> - </dd>
+<dd><code>force</code> - </dd>
+<dt><span class="returnLabel">Returns:</span></dt>
+<dt><span class="throwsLabel">Throws:</span></dt>
+<dd><code><a href="http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</a></code></dd>
+</dl>
+</li>
+</ul>
<a name="initBookie-org.apache.bookkeeper.conf.ServerConfiguration-">
<!-- -->
</a>
diff --git a/content/docs/latest/api/javadoc/org/apache/bookkeeper/conf/class-use/ServerConfiguration.html b/content/docs/latest/api/javadoc/org/apache/bookkeeper/conf/class-use/ServerConfiguration.html
index 24fc355..f4d0b4c 100644
--- a/content/docs/latest/api/javadoc/org/apache/bookkeeper/conf/class-use/ServerConfiguration.html
+++ b/content/docs/latest/api/javadoc/org/apache/bookkeeper/conf/class-use/ServerConfiguration.html
@@ -125,6 +125,21 @@
indexDirs are empty and there is no registered Bookie with this BookieId.</div>
</td>
</tr>
+<tr class="altColor">
+<td class="colFirst"><code>static boolean</code></td>
+<td class="colLast"><span class="typeNameLabel">BookKeeperAdmin.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#initNewCluster-org.apache.bookkeeper.conf.ServerConfiguration-">initNewCluster</a></span>(<a href="../../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf)</code>
+<div class="block">Intializes new cluster by creating required znodes for the cluster.</div>
+</td>
+</tr>
+<tr class="rowColor">
+<td class="colFirst"><code>static boolean</code></td>
+<td class="colLast"><span class="typeNameLabel">BookKeeperAdmin.</span><code><span class="memberNameLink"><a href="../../../../../org/apache/bookkeeper/client/BookKeeperAdmin.html#nukeExistingCluster-org.apache.bookkeeper.conf.ServerConfiguration-java.lang.String-java.lang.String-boolean-">nukeExistingCluster</a></span>(<a href="../../../../../org/apache/bookkeeper/conf/ServerConfiguration.html" title="class in org.apache.bookkeeper.conf">ServerConfiguration</a> conf,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> ledgersRootPath,
+ <a href="http://docs.oracle.com/javase/8/docs/api/java/lang/String.html?is-external=true" title="class or interface in java.lang">String</a> instanceId,
+ boolean force)</code>
+<div class="block">Nukes existing cluster metadata.</div>
+</td>
+</tr>
</tbody>
</table>
</li>
--
To stop receiving notification emails like this one, please contact
git-site-role@apache.org.