|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjbora.ProcessID
Implements a group member identifier. A group member is identified by the string representation of its own SpreadGroup object. (m.p.) Since occasionally we need to multicast a view (an array of ProcessID objects), our ProcessID must be serializable. spread.SpreadGroup is not, so we use SpreadGroup converted to String as the member identifier. The boolean field active (is member active) has been removed. (It might be reimplemented in future releases of JBora.)
| Constructor Summary | |
ProcessID(spread.SpreadGroup mbr)
Creates a new identifier. |
|
| Method Summary | |
int |
compareTo(Object o)
Compares the size of this object and the specified object. |
boolean |
equals(Object o)
Checks if two identifiers are equal. |
InetAddress |
getInetAddress()
Internet Protocol (IP) address representation of this ProcessID. |
int |
hashCode()
Returns the hash code of the identifier. |
String |
toString()
Returns the connection_name@host ID of a process. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ProcessID(spread.SpreadGroup mbr)
mbr - SpreadGroup object| Method Detail |
public boolean equals(Object o)
o - Identifier to compare to
public int hashCode()
public InetAddress getInetAddress()
throws UnknownHostException
UnknownHostException - if no IP address for the host could be found.public String toString()
public int compareTo(Object o)
compareTo in interface Comparableo - Object to compare to
ClassCastException - If the specified object's type prevents it
from being compared to this Object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||