All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class JavaGroups.JavaStack.ViewId

java.lang.Object
   |
   +----JavaGroups.JavaStack.ViewId

public class ViewId
extends Object
implements Serializable
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 Index

 o ViewId(Address)
 o ViewId(Address, long)

Method Index

 o Compare(ViewId)
Establishes an order between 2 ViewIds.
 o Copy()
 o equals(Object)
 o GetCoordAddress()
 o GetId()
 o Increment()
 o main(String[])
 o SetCoordAddress(Address)
 o SetId(long)
 o toString()

Constructors

 o ViewId
 public ViewId(Address coord_addr)
 o ViewId
 public ViewId(Address coord_addr,
               long id)

Methods

 o GetId
 public long GetId()
 o SetId
 public void SetId(long new_id)
 o GetCoordAddress
 public Address GetCoordAddress()
 o SetCoordAddress
 public void SetCoordAddress(Address new_addr)
 o Increment
 public synchronized void Increment()
 o toString
 public String toString()
Overrides:
toString in class Object
 o Copy
 public ViewId Copy()
 o Compare
 public int Compare(ViewId other)
Establishes an order between 2 ViewIds. First compare on id. Compare on coord_addr only if necessary (i.e. ids are equal) !

Returns:
0 for equality, value less than 0 if smaller, greater than 0 if greater.
 o equals
 public boolean equals(Object other_view)
Overrides:
equals in class Object
 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index