org.jgroups
public class ViewId extends Object implements Externalizable, Comparable, Cloneable, Streamable
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 | |
---|---|
Object | clone()
Cloneable interface
Returns a new ViewID object containing the same address and lamport timestamp as this view |
int | compare(Object o)
Old Compare |
int | compareTo(Object other)
Establishes an order between 2 ViewIds. |
ViewId | copy()
Old Copy method, deprecated because it is substituted by clone() |
boolean | equals(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(ObjectInput in) |
void | readFrom(DataInputStream in) |
int | serializedSize() |
String | toString() |
void | writeExternal(ObjectOutput out) |
void | writeTo(DataOutputStream out) |
Parameters: coord_addr the address of the member that issued this view
Parameters: coord_addr - the address of the member that issued this view id - the Lamport timestamp of the view
Returns: 0 for equality, value less than 0 if smaller, greater than 0 if greater.
Returns: the Address of the the issuer
Returns: the lamport time timestamp