|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.appia.protocols.group.ViewID
public class ViewID
The unique identifier of a ViewState
.
It is constructed from the coordinator and logical time of the
view.
ViewState
,
Serialized FormField Summary | |
---|---|
Endpt |
coord
The Endpt of the coordinator of the
view. |
long |
ltime
The logical time of the view. |
Constructor Summary | |
---|---|
ViewID()
Constructs a new empty ViewID. |
|
ViewID(long ltime,
Endpt coord)
Constructs a new ViewID. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Redefines Object.equals() . |
boolean |
equals(ViewID vid)
Compares if the given ViewID is equal to the current one. |
int |
hashCode()
Redefines Object.hashCode() . |
ViewID |
merge(ViewID view_id,
Endpt new_coord)
Constructs a new ViewID that follows the current and the given ViewIDs. |
ViewID |
next()
Constructs a new ViewID that follows the current ViewID. |
ViewID |
next(Endpt new_coord)
Constructs a new ViewID that follows the current ViewID, but there is a different coordinator. |
static ViewID |
peek(Message message)
|
static ViewID |
pop(Message message)
|
static void |
push(ViewID viewid,
Message message)
|
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
Creates a String representation of the
ViewID. |
void |
writeExternal(java.io.ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public long ltime
public Endpt coord
Endpt
of the coordinator of the
view.
Constructor Detail |
---|
public ViewID()
public ViewID(long ltime, Endpt coord)
coord
- the coordinator of the viewltime
- the logical time of the viewMethod Detail |
---|
public ViewID next()
public ViewID next(Endpt new_coord)
new_coord
- the coordinator of the view
public ViewID merge(ViewID view_id, Endpt new_coord)
new_coord
- The new view coordinatorview_id
- the other ViewID
public boolean equals(ViewID vid)
vid
- the other ViewID to compare to
public boolean equals(java.lang.Object o)
Object.equals()
.
equals
in class java.lang.Object
o
- The object to compare with.
public java.lang.String toString()
String
representation of the
ViewID.
toString
in class java.lang.Object
String
representationpublic int hashCode()
Object.hashCode()
.
hashCode
in class java.lang.Object
public static void push(ViewID viewid, Message message)
public static ViewID pop(Message message)
public static ViewID peek(Message message)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
|
Appia Documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |