Package org.apache.bookkeeper.client
Class LedgerOpenOp
- java.lang.Object
-
- org.apache.bookkeeper.client.LedgerOpenOp
-
class LedgerOpenOp extends java.lang.Object
Encapsulates the ledger open operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
LedgerOpenOp.OpenBuilderImpl
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
administrativeOpen
(package private) BookKeeper
bk
(package private) AsyncCallback.OpenCallback
cb
(package private) java.lang.Object
ctx
(package private) boolean
doRecovery
(package private) boolean
enableDigestAutodetection
(package private) long
ledgerId
(package private) ReadOnlyLedgerHandle
lh
(package private) static org.slf4j.Logger
LOG
(package private) OpStatsLogger
openOpLogger
(package private) byte[]
passwd
(package private) long
startTime
(package private) BookKeeper.DigestType
suggestedDigestType
-
Constructor Summary
Constructors Constructor Description LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, AsyncCallback.OpenCallback cb, java.lang.Object ctx)
LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, BookKeeper.DigestType digestType, byte[] passwd, AsyncCallback.OpenCallback cb, java.lang.Object ctx)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
initiate()
Inititates the ledger open operation.void
initiateWithoutRecovery()
Inititates the ledger open operation without recovery.(package private) void
openComplete(int rc, LedgerHandle lh)
-
-
-
Field Detail
-
LOG
static final org.slf4j.Logger LOG
-
bk
final BookKeeper bk
-
ledgerId
final long ledgerId
-
cb
final AsyncCallback.OpenCallback cb
-
ctx
final java.lang.Object ctx
-
lh
ReadOnlyLedgerHandle lh
-
passwd
final byte[] passwd
-
doRecovery
boolean doRecovery
-
administrativeOpen
boolean administrativeOpen
-
startTime
long startTime
-
openOpLogger
final OpStatsLogger openOpLogger
-
suggestedDigestType
final BookKeeper.DigestType suggestedDigestType
-
enableDigestAutodetection
final boolean enableDigestAutodetection
-
-
Constructor Detail
-
LedgerOpenOp
public LedgerOpenOp(BookKeeper bk, BookKeeperClientStats clientStats, long ledgerId, BookKeeper.DigestType digestType, byte[] passwd, AsyncCallback.OpenCallback cb, java.lang.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, java.lang.Object ctx)
-
-
Method Detail
-
initiate
public void initiate()
Inititates the ledger open operation.
-
initiateWithoutRecovery
public void initiateWithoutRecovery()
Inititates the ledger open operation without recovery.
-
openComplete
void openComplete(int rc, LedgerHandle lh)
-
-