Package org.apache.bookkeeper.client
Class LedgerOpenOp
- java.lang.Object
-
- org.apache.bookkeeper.client.LedgerOpenOp
-
class LedgerOpenOp extends java.lang.ObjectEncapsulates the ledger open operation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classLedgerOpenOp.OpenBuilderImpl
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanadministrativeOpen(package private) BookKeeperbk(package private) AsyncCallback.OpenCallbackcb(package private) java.lang.Objectctx(package private) booleandoRecovery(package private) booleanenableDigestAutodetection(package private) longledgerId(package private) ReadOnlyLedgerHandlelh(package private) static org.slf4j.LoggerLOG(package private) OpStatsLoggeropenOpLogger(package private) byte[]passwd(package private) longstartTime(package private) BookKeeper.DigestTypesuggestedDigestType
-
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 voidinitiate()Inititates the ledger open operation.voidinitiateWithoutRecovery()Inititates the ledger open operation without recovery.(package private) voidopenComplete(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)
-
-