| java.lang.Object org.jgroups.ViewId
ViewId | public class ViewId implements Externalizable,Comparable,Cloneable,Streamable(Code) | | ViewIds are used for ordering views (each view has a ViewId and a list of members).
Ordering between views is important for example in a virtual synchrony protocol where
all views seen by a member have to be ordered.
|
Constructor Summary | |
public | ViewId() | public | ViewId(Address coord_addr) Creates a ViewID with the coordinator address and a Lamport timestamp of 0. | public | ViewId(Address coord_addr, long id) Creates a ViewID with the coordinator address and the given Lamport timestamp. |
ViewId | public ViewId(Address coord_addr)(Code) | | Creates a ViewID with the coordinator address and a Lamport timestamp of 0.
Parameters: coord_addr - the address of the member that issued this view |
ViewId | public ViewId(Address coord_addr, long id)(Code) | | Creates a ViewID with the coordinator address and the given Lamport timestamp.
Parameters: coord_addr - - the address of the member that issued this view Parameters: id - - the Lamport timestamp of the view |
clone | public Object clone()(Code) | | Cloneable interface
Returns a new ViewID object containing the same address and lamport timestamp as this view
|
compareTo | public int compareTo(Object other)(Code) | | Establishes an order between 2 ViewIds. First compare on id. Compare on coord_addr
only if necessary (i.e. ids are equal) !
0 for equality, value less than 0 if smaller, greater than 0 if greater. |
copy | public ViewId copy()(Code) | | Old Copy method, deprecated because it is substituted by clone()
|
getCoordAddress | public Address getCoordAddress()(Code) | | returns the address of the member that issued this view
the Address of the the issuer |
getId | public long getId()(Code) | | returns the lamport time of the view
the lamport time timestamp |
hashCode | public int hashCode()(Code) | | |
serializedSize | public int serializedSize()(Code) | | |
|
|