public abstract static class ReplicaPlan.ForWrite<E extends Endpoints<E>> extends ReplicaPlan<E>
ReplicaPlan.ForPaxosWrite, ReplicaPlan.ForRangeRead, ReplicaPlan.ForRead<E extends Endpoints<E>>, ReplicaPlan.ForTokenRead, ReplicaPlan.ForTokenWrite, ReplicaPlan.ForWrite<E extends Endpoints<E>>, ReplicaPlan.Shared<E extends Endpoints<E>,P extends ReplicaPlan<E>>, ReplicaPlan.SharedForRangeRead, ReplicaPlan.SharedForTokenRead
consistencyLevel, keyspace, replicationStrategy
Modifier and Type | Method and Description |
---|---|
int |
blockFor() |
boolean |
isAlive(Replica replica)
Test liveness, consistent with the upfront analysis done for this operation (i.e.
|
E |
live()
The live replicas present in liveAndDown, usually derived from FailureDetector.isReplicaAlive
|
E |
liveAndDown()
Replicas that can participate in the write - this always includes all nodes (pending and natural) in all DCs, except for paxos LOCAL_QUORUM (which is local DC only)
|
E |
liveUncontacted()
Calculate which live endpoints we could have contacted, but chose not to
|
Replica |
lookup(InetAddressAndPort endpoint) |
E |
pending()
Replicas that a region of the ring is moving to; not yet ready to serve reads, but should receive writes
|
java.lang.String |
toString() |
consistencyLevel, contacts, contacts, keyspace, replicationStrategy, shared, shared
public int blockFor()
blockFor
in class ReplicaPlan<E extends Endpoints<E>>
public E pending()
public E liveAndDown()
public E live()
public E liveUncontacted()
public boolean isAlive(Replica replica)
public Replica lookup(InetAddressAndPort endpoint)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2009-2021 The Apache Software Foundation