public interface VVState extends GenericReplicaState
| Modifier and Type | Method and Description |
|---|---|
VersionVector |
getVV()
Gets the version vector stored in the state.
|
VersionVector |
getVVCopy()
Gets a copy of the version vector stored in the state.
|
Integer |
getVVEntry(ReplicaID otherReplicaID) |
Timestamp |
incClock()
Increments the "clock" of the replica (i.e., increments the specific entry of the replica in question) by generating a new timestamp
|
void |
mergeTs(Timestamp ts)
Method called when merging the state with other replica.
|
void |
updateTs(Timestamp ts)
Updates the replica's version vector with a given timestamp.
|
void |
updateVV(VersionVector vv)
Updates the replica's version vector with a given version vector.
|
getReplicaIDVersionVector getVVCopy()
VersionVector getVV()
Timestamp incClock()
void updateTs(Timestamp ts)
ts - the timestamp to integrate into the version vector.void updateVV(VersionVector vv)
vv - the version vector received.void mergeTs(Timestamp ts)
ts - the timestamp to update.Copyright © 2024. All rights reserved.