Package org.apache.bookkeeper.client
Class LedgerOpenOp
java.lang.Object
org.apache.bookkeeper.client.LedgerOpenOp
Encapsulates the ledger open operation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) final BookKeeper(package private) final AsyncCallback.OpenCallback(package private) final Object(package private) boolean(package private) final boolean(package private) boolean(package private) final long(package private) ReadOnlyLedgerHandle(package private) static final org.slf4j.Logger(package private) final OpStatsLogger(package private) final byte[](package private) long(package private) final BookKeeper.DigestType -
Constructor Summary
ConstructorsConstructorDescriptionLedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, AsyncCallback.OpenCallback cb, Object ctx) LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, BookKeeper.DigestType digestType, byte[] passwd, AsyncCallback.OpenCallback cb, Object ctx) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidinitiate()Inititates the ledger open operation.voidDifferent withinitiate(), the method keep update metadata once the auto-recover component modified the ensemble.voidInititates the ledger open operation without recovery.(package private) voidopenComplete(int rc, LedgerHandle lh)
-
Field Details
-
LOG
static final org.slf4j.Logger LOG -
bk
-
ledgerId
final long ledgerId -
cb
-
ctx
-
lh
-
passwd
final byte[] passwd -
doRecovery
boolean doRecovery -
keepUpdateMetadata
boolean keepUpdateMetadata -
administrativeOpen
boolean administrativeOpen -
startTime
long startTime -
openOpLogger
-
suggestedDigestType
-
enableDigestAutodetection
final boolean enableDigestAutodetection
-
-
Constructor Details
-
LedgerOpenOp
public LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, BookKeeper.DigestType digestType, byte[] passwd, AsyncCallback.OpenCallback cb, Object ctx) Constructor.- Parameters:
bk-ledgerId-digestType- Ignored if conf.getEnableDigestTypeAutodetection() is truepasswd-cb-ctx-
-
LedgerOpenOp
public LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, AsyncCallback.OpenCallback cb, Object ctx)
-
-
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 withinitiate(), the method keep update metadata once the auto-recover component modified the ensemble. -
openComplete
-