Class LedgerOpenOp

java.lang.Object
org.apache.bookkeeper.client.LedgerOpenOp

class LedgerOpenOp extends Object
Encapsulates the ledger open operation.
  • Field Details

    • LOG

      static final org.slf4j.Logger LOG
    • bk

      final BookKeeper bk
    • ledgerId

      final long ledgerId
    • cb

    • ctx

      final Object ctx
    • lh

    • passwd

      final byte[] passwd
    • doRecovery

      boolean doRecovery
    • keepUpdateMetadata

      boolean keepUpdateMetadata
    • administrativeOpen

      boolean administrativeOpen
    • startTime

      long startTime
    • openOpLogger

      final OpStatsLogger openOpLogger
    • suggestedDigestType

      final BookKeeper.DigestType suggestedDigestType
    • enableDigestAutodetection

      final boolean enableDigestAutodetection
  • Constructor Details

  • Method Details

    • initiate

      public void initiate()
      Inititates the ledger open operation.
    • initiateWithoutRecovery

      public void initiateWithoutRecovery()
      Inititates the ledger open operation without recovery.
    • initiateWithKeepUpdateMetadata

      public void initiateWithKeepUpdateMetadata()
      Different with initiate(), the method keep update metadata once the auto-recover component modified the ensemble.
    • openComplete

      void openComplete(int rc, LedgerHandle lh)