Package org.apache.bookkeeper.client
Class ForceLedgerOp
- java.lang.Object
-
- org.apache.bookkeeper.client.ForceLedgerOp
-
- All Implemented Interfaces:
java.lang.Runnable
,BookkeeperInternalCallbacks.ForceLedgerCallback
class ForceLedgerOp extends java.lang.Object implements java.lang.Runnable, BookkeeperInternalCallbacks.ForceLedgerCallback
This represents a request to sync the ledger on every bookie.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) DistributionSchedule.AckSet
ackSet
(package private) BookieClient
bookieClient
(package private) java.util.concurrent.CompletableFuture<java.lang.Void>
cb
(package private) boolean
completed
(package private) java.util.List<BookieId>
currentEnsemble
(package private) long
currentNonDurableLastAddConfirmed
(package private) boolean
errored
(package private) int
lastSeenError
(package private) LedgerHandle
lh
-
Constructor Summary
Constructors Constructor Description ForceLedgerOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, java.util.concurrent.CompletableFuture<java.lang.Void> cb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
forceLedgerComplete(int rc, long ledgerId, BookieId addr, java.lang.Object ctx)
(package private) void
initiate()
void
run()
(package private) void
sendForceLedgerRequest(int bookieIndex)
-
-
-
Field Detail
-
cb
final java.util.concurrent.CompletableFuture<java.lang.Void> cb
-
ackSet
DistributionSchedule.AckSet ackSet
-
completed
boolean completed
-
errored
boolean errored
-
lastSeenError
int lastSeenError
-
currentEnsemble
final java.util.List<BookieId> currentEnsemble
-
currentNonDurableLastAddConfirmed
long currentNonDurableLastAddConfirmed
-
lh
final LedgerHandle lh
-
bookieClient
final BookieClient bookieClient
-
-
Constructor Detail
-
ForceLedgerOp
ForceLedgerOp(LedgerHandle lh, BookieClient bookieClient, java.util.List<BookieId> ensemble, java.util.concurrent.CompletableFuture<java.lang.Void> cb)
-
-
Method Detail
-
sendForceLedgerRequest
void sendForceLedgerRequest(int bookieIndex)
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
initiate
void initiate()
-
forceLedgerComplete
public void forceLedgerComplete(int rc, long ledgerId, BookieId addr, java.lang.Object ctx)
- Specified by:
forceLedgerComplete
in interfaceBookkeeperInternalCallbacks.ForceLedgerCallback
-
-