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.
-
ViewId(Address)
-
-
ViewId(Address, long)
-
-
Compare(ViewId)
- Establishes an order between 2 ViewIds.
-
Copy()
-
-
equals(Object)
-
-
GetCoordAddress()
-
-
GetId()
-
-
Increment()
-
-
main(String[])
-
-
SetCoordAddress(Address)
-
-
SetId(long)
-
-
toString()
-
ViewId
public ViewId(Address coord_addr)
ViewId
public ViewId(Address coord_addr,
long id)
GetId
public long GetId()
SetId
public void SetId(long new_id)
GetCoordAddress
public Address GetCoordAddress()
SetCoordAddress
public void SetCoordAddress(Address new_addr)
Increment
public synchronized void Increment()
toString
public String toString()
- Overrides:
- toString in class Object
Copy
public ViewId Copy()
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.
equals
public boolean equals(Object other_view)
- Overrides:
- equals in class Object
main
public static void main(String args[])
All Packages Class Hierarchy This Package Previous Next Index