|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.protocols.TransportedVectorTime
public class TransportedVectorTime
Lighweight representation of the VectorTime clock suitable for network transport
Constructor Summary | |
---|---|
TransportedVectorTime()
|
|
TransportedVectorTime(int senderIndex,
int[] values)
Constructs TransportedVectorTime with sender index and vector values |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
Checks if this TransportedVectorTimeis equal to the specified TransportedVectorTime. |
Message |
getAssociatedMessage()
Returns a message associated with this vector timestamp. |
int |
getSenderIndex()
Returns sender index |
int[] |
getValues()
Returns vector values |
boolean |
lessThanOrEqual(TransportedVectorTime other)
Checks if this TransportedVectorTime is less than or equal to the the specified TransportedVectorTime. |
void |
setAssociatedMessage(Message owner)
Sets a message associated with this vector timestamp |
int |
size()
Returns size of this vector timestamp i.e number of process group members |
java.lang.String |
toString()
Returns String representation of this vector timestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TransportedVectorTime()
public TransportedVectorTime(int senderIndex, int[] values)
senderIndex
- index of the sender of the messagevalues
- vector valuesMethod Detail |
---|
public int getSenderIndex()
public int[] getValues()
public int size()
public void setAssociatedMessage(Message owner)
owner
- Message that is associated with this vector timestamppublic Message getAssociatedMessage()
public boolean lessThanOrEqual(TransportedVectorTime other)
Checks if this TransportedVectorTime is less than or equal to the the specified TransportedVectorTime. The check is done as follows:
VT1<=VT2 iff for every i:1..k VT1[i]<=VT2[i]
other
- TransportedVectorTimebeing compared with this.
public boolean equals(java.lang.Object other)
Checks if this TransportedVectorTimeis equal to the specified TransportedVectorTime. The check is done as follows:
VT1==VT2 iff for every i:1..k VT1[i]==VT2[i]
equals
in class java.lang.Object
other
- TransportedVectorTimebeing compared with this.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |