|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgroups.ViewId
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 | |
ViewId()
|
|
ViewId(Address coord_addr)
Creates a ViewID with the coordinator address and a Lamport timestamp of 0. |
|
ViewId(Address coord_addr,
long id)
Creates a ViewID with the coordinator address and the given Lamport timestamp. |
|
| Method Summary | |
java.lang.Object |
clone()
Cloneable interface Returns a new ViewID object containing the same address and lamport timestamp as this view |
int |
compare(java.lang.Object o)
Old Compare |
int |
compareTo(java.lang.Object other)
Establishes an order between 2 ViewIds. |
ViewId |
copy()
Old Copy method, deprecated because it is substituted by clone() |
boolean |
equals(java.lang.Object other_view)
|
Address |
getCoordAddress()
returns the address of the member that issued this view |
long |
getId()
returns the lamport time of the view |
int |
hashCode()
|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ViewId()
public ViewId(Address coord_addr)
coord_addr - the address of the member that issued this view
public ViewId(Address coord_addr,
long id)
coord_addr - - the address of the member that issued this viewid - - the Lamport timestamp of the view| Method Detail |
public long getId()
public Address getCoordAddress()
public java.lang.String toString()
public java.lang.Object clone()
public ViewId copy()
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparablepublic int compare(java.lang.Object o)
public boolean equals(java.lang.Object other_view)
public int hashCode()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||