Codota Logo
BookieClient.readEntry
Code IndexAdd Codota to your IDE (free)

How to use
readEntry
method
in
org.apache.bookkeeper.proto.BookieClient

Best Java code snippets using org.apache.bookkeeper.proto.BookieClient.readEntry (Showing top 13 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: twitter/distributedlog

bookieClient.readEntry(ensemble.get(idx), lh.getId(), eid, readEntryCallback, ensemble.get(idx));
origin: twitter/distributedlog

bookieClient.readEntry(ensemble.get(idx), lh.getId(), eid, readEntryCallback, ensemble.get(idx));
origin: org.apache.bookkeeper/bookkeeper-server

/**
 * Read entry with a null masterkey, disallowing failfast.
 * @see #readEntry(BookieSocketAddress,long,long,ReadEntryCallback,Object,int,byte[],boolean)
 */
default void readEntry(BookieSocketAddress address, long ledgerId, long entryId,
            ReadEntryCallback cb, Object ctx, int flags) {
  readEntry(address, ledgerId, entryId, cb, ctx, flags, null);
}
origin: org.apache.bookkeeper/bookkeeper-server

/**
 * Read entry, disallowing failfast.
 * @see #readEntry(BookieSocketAddress,long,long,ReadEntryCallback,Object,int,byte[],boolean)
 */
default void readEntry(BookieSocketAddress address, long ledgerId, long entryId,
            ReadEntryCallback cb, Object ctx, int flags, byte[] masterKey) {
  readEntry(address, ledgerId, entryId, cb, ctx, flags, masterKey, false);
}
origin: org.apache.bookkeeper/bookkeeper-server

public void initiate() {
  for (int i = 0; i < currentEnsemble.size(); i++) {
    bookieClient.readEntry(currentEnsemble.get(i),
                lh.ledgerId,
                BookieProtocol.LAST_ADD_CONFIRMED,
                this, i, BookieProtocol.FLAG_NONE);
  }
}
origin: org.apache.bookkeeper/bookkeeper-server

public void initiate() {
  for (int i = 0; i < currentEnsemble.size(); i++) {
    bookieClient.readEntry(currentEnsemble.get(i),
                lh.ledgerId,
                BookieProtocol.LAST_ADD_CONFIRMED,
                this, i, BookieProtocol.FLAG_NONE);
  }
}
origin: org.apache.bookkeeper/bookkeeper-server

public void initiateWithFencing() {
  for (int i = 0; i < currentEnsemble.size(); i++) {
    bookieClient.readEntry(currentEnsemble.get(i),
                lh.ledgerId,
                BookieProtocol.LAST_ADD_CONFIRMED,
                this, i, BookieProtocol.FLAG_DO_FENCING,
                lh.ledgerKey);
  }
}
origin: org.apache.bookkeeper/bookkeeper-server

void sendReadTo(int bookieIndex, BookieSocketAddress to, LedgerEntryRequest entry) throws InterruptedException {
  if (lh.throttler != null) {
    lh.throttler.acquire();
  }
  int flags = isRecoveryRead ? BookieProtocol.FLAG_HIGH_PRIORITY : BookieProtocol.FLAG_NONE;
  clientCtx.getBookieClient().readEntry(to, lh.ledgerId, entry.eId,
                     this, new ReadContext(bookieIndex, to, entry), flags);
}
origin: org.apache.distributedlog/distributedlog-core

for (int i = 0; i < writeSet.size(); i++) {
  int idx = writeSet.get(i);
  clientCtx.getBookieClient().readEntry(ensemble.get(idx), lh.getId(), eid, readEntryCallback,
              ensemble.get(idx), BookieProtocol.FLAG_NONE);
origin: org.apache.bookkeeper/bookkeeper-server

  ReadManyEntriesCallback manycb = new ReadManyEntriesCallback(1,
      fragment, cb);
  bookieClient.readEntry(bookie, fragment.getLedgerId(), firstStored,
              manycb, null, BookieProtocol.FLAG_NONE);
} else {
      fragment, cb);
  for (Long entryID: entriesToBeVerified) {
    bookieClient.readEntry(bookie, fragment.getLedgerId(), entryID, manycb, null, BookieProtocol.FLAG_NONE);
origin: org.apache.bookkeeper/bookkeeper-server

for (int i = 0; i < writeSet.size(); i++) {
  BookieSocketAddress addr = curEnsemble.get(writeSet.get(i));
  bookieClient.readEntry(addr, lh.getId(), entryToRead,
              eecb, null, BookieProtocol.FLAG_NONE);
origin: org.apache.bookkeeper/bookkeeper-server

CompletableFuture<Void> future = new CompletableFuture<>();
bookieClient.readEntry(bookie, ledgerId, entryId,
  (rc, ledgerId1, entryId1, buffer, ctx) -> {
    if (rc != BKException.Code.OK) {
origin: org.apache.distributedlog/distributedlog-core

for (int i = 0; i < writeSet.size(); i++) {
  int idx = writeSet.get(i);
  clientCtx.getBookieClient().readEntry(ensemble.get(idx), lh.getId(), eid, readEntryCallback,
              ensemble.get(idx), BookieProtocol.FLAG_NONE);
org.apache.bookkeeper.protoBookieClientreadEntry

Javadoc

Read entry with a null masterkey, disallowing failfast.

Popular methods of BookieClient

  • addEntry
    Add an entry for ledger ledgerId on the bookie at address address.
  • close
    Close the bookie client object.
  • forceLedger
    Send a force request to the server. When complete all entries which have been written for ledgerId t
  • getBookieInfo
    Read information about the bookie, from the bookie.
  • getFaultyBookies
    Get the list of bookies which have exhibited more error responses than a configured threshold.
  • getNumPendingRequests
    Get the number of outstanding requests on the channel used to connect to a bookie at address for a l
  • isClosed
  • isWritable
    Check whether the channel used to write to a bookie channel is writable. A channel becomes non-writa
  • readEntryWaitForLACUpdate
    Send a long poll request to bookie, waiting for the last add confirmed to be updated. The client can
  • readLac
    Read the last add confirmed for ledger ledgerId from the bookie at address.
  • writeLac
    Explicitly write the last add confirmed for ledger ledgerId to the bookie at address.
  • writeLac

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileWriter (java.io)
    Convenience class for writing character files. The constructors of this class assume that the defaul
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now