|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgroup.relacs.types.LocalId
public final class LocalId
A LocalId object is used to distinguish multiple local
members associated with a single Jgroup daemon. It is comprised of
the member number and its EndPoint.
| Field Summary | |
|---|---|
static int |
SIZE
Size of this object in bytes |
| Constructor Summary | |
|---|---|
LocalId()
Default constructor for externalization |
|
LocalId(int member,
EndPoint membEndPoint)
Creates a LocalId object containing the specified
member number, and member EndPoint address. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Returns true if and only if the given object is a non-null
LocalId object, whose member number and endpoint address
is equal to this object. |
EndPoint |
getEndpoint()
|
int |
getMemberNo()
|
int |
hashCode()
Returns a hashcode for this LocalId object. |
void |
readExternal(java.io.ObjectInput in)
Restores the content of this object from the marshalled data contained in the specified input stream. |
java.lang.String |
toString()
Returns a string representation of this LocalId. |
void |
writeExternal(java.io.ObjectOutput out)
Marshals the content of this object to the specified output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SIZE
| Constructor Detail |
|---|
public LocalId()
public LocalId(int member,
EndPoint membEndPoint)
LocalId object containing the specified
member number, and member EndPoint address.
| Method Detail |
|---|
public EndPoint getEndpoint()
public int getMemberNo()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to be read
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to be written
java.io.IOExceptionpublic boolean equals(java.lang.Object obj)
true if and only if the given object is a non-null
LocalId object, whose member number and endpoint address
is equal to this object. Otherwise, false is returned.
equals in class java.lang.Objectpublic int hashCode()
LocalId object.
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||