BookKeeper.deleteLedger
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.bookkeeper.client.BookKeeper.deleteLedger(Showing top 4 results out of 315)

origin: org.apache.bookkeeper/bookkeeper-server

Long ledgerId = Long.parseLong(params.get("ledger_id"));
bk.deleteLedger(ledgerId);
origin: twitter/bookkeeper

bk.close();
try {
  bk.deleteLedger(lh.getId());
  fail("should have failed, client is closed");
} catch (BKClientClosedException e) {
origin: org.apache.bookkeeper/bookkeeper-server

conf.addConfiguration(bkConf);
bk = new BookKeeper(conf);
bk.deleteLedger(lid);
origin: org.apache.bookkeeper/bookkeeper-server

} finally {
  if (lh != null) {
    bk.deleteLedger(lh.getId());
    LOG.info("Deleted ledger {}", lh.getId());
org.apache.bookkeeper.clientBookKeeperdeleteLedger

Javadoc

Synchronous call to delete a ledger. Parameters match those of #asyncDeleteLedger(long,AsyncCallback.DeleteCallback,Object)

Popular methods of BookKeeper

  • openLedgerNoRecovery
    Synchronous, unsafe open ledger call
  • <init>
  • close
    Shuts down client.
  • createLedger
    Creates a new ledger. Default of 3 servers, and quorum of 2 servers.
  • asyncCreateLedger
    Creates a new ledger asynchronously. To create a ledger, we need to specify the ensemble size, the q
  • asyncDeleteLedger
    Deletes a ledger asynchronously.
  • asyncOpenLedger
    Open existing ledger asynchronously for reading. Opening a ledger with this method invokes fencing a
  • newBuilder
  • openLedger
    Synchronous open ledger call
  • asyncCreateLedgerAdv
  • asyncIsClosed
    Check asynchronously whether the ledger with identifier lId has been closed.
  • asyncOpenLedgerNoRecovery
    Open existing ledger asynchronously for reading, but it does not try to recover the ledger if it is
  • asyncIsClosed,
  • asyncOpenLedgerNoRecovery,
  • checkForFaultyBookies,
  • createLedgerAdv,
  • forConfig,
  • getAddOpLogger,
  • getBookieClient,
  • getBookieInfo,
  • getBookieWatcher

Popular classes and methods

  • addToBackStack (FragmentTransaction)
  • findViewById (Activity)
  • getSystemService (Context)
  • BufferedImage (java.awt.image)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Option (scala)

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)