interface DistributionSchedule
DistributionSchedule
determines which bookie that replica should go
to.Modifier and Type | Interface and Description |
---|---|
static interface |
DistributionSchedule.AckSet
An ack set represents the set of bookies from which
a response must be received so that an entry can be
considered to be replicated on a quorum.
|
static interface |
DistributionSchedule.QuorumCoverageSet
Interface to keep track of which bookies in an ensemble, an action
has been performed for.
|
Modifier and Type | Method and Description |
---|---|
DistributionSchedule.AckSet |
getAckSet()
Returns an ackset object, responses should be checked against this
|
DistributionSchedule.QuorumCoverageSet |
getCoverageSet() |
List<Integer> |
getWriteSet(long entryId)
return the set of bookie indices to send the message to
|
boolean |
hasEntry(long entryId,
int bookieIndex)
Whether entry presents on given bookie index
|
List<Integer> getWriteSet(long entryId)
DistributionSchedule.AckSet getAckSet()
DistributionSchedule.QuorumCoverageSet getCoverageSet()
boolean hasEntry(long entryId, int bookieIndex)
entryId
- - entryId to check the presence on given bookie indexbookieIndex
- - bookie index on which it need to check the possible presence
of the entryCopyright © 2011–2017 The Apache Software Foundation. All rights reserved.