|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.pastry.socket.EpochInetSocketAddress
public class EpochInetSocketAddress
Class which represets a source route to a remote IP address.
| Field Summary | |
|---|---|
protected java.net.InetSocketAddress[] |
address
DESCRIBE THE FIELD |
protected long |
epoch
DESCRIBE THE FIELD |
static long |
EPOCH_UNKNOWN
DESCRIBE THE FIELD |
| Constructor Summary | |
|---|---|
EpochInetSocketAddress(java.net.InetSocketAddress address)
Constructor - don't use this unless you know what you are doing |
|
EpochInetSocketAddress(java.net.InetSocketAddress[] addressList,
long epoch)
Constructor for EpochInetSocketAddress. |
|
EpochInetSocketAddress(java.net.InetSocketAddress address,
long epoch)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addressEquals(EpochInetSocketAddress that)
DESCRIBE THE METHOD |
static EpochInetSocketAddress |
build(InputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + InetAddress + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port (int) + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + epoch (long) + + + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
boolean |
equals(java.lang.Object o)
Checks equaltiy on source routes |
java.net.InetSocketAddress |
getAddress(EpochInetSocketAddress local)
Method which returns the address of this address |
java.net.InetSocketAddress |
getAddress(java.net.InetAddress[] local)
Gets the Address attribute of the EpochInetSocketAddress object |
long |
getEpoch()
Method which returns the epoch of this address |
java.net.InetSocketAddress |
getInnermostAddress()
Gets the InnermostAddress attribute of the EpochInetSocketAddress object |
short |
getSerializedLength()
Gets the SerializedLength attribute of the EpochInetSocketAddress object |
int |
hashCode()
Returns the hashCode of this source route |
void |
serialize(OutputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + InetAddress + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port (int) + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + epoch (long) + + + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
java.lang.String |
toString()
Internal method for computing the toString of an array of InetSocketAddresses |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected java.net.InetSocketAddress[] address
protected long epoch
public static final long EPOCH_UNKNOWN
| Constructor Detail |
|---|
public EpochInetSocketAddress(java.net.InetSocketAddress address)
address - The remote address
public EpochInetSocketAddress(java.net.InetSocketAddress address,
long epoch)
address - The remote addressepoch - The remote epoch
public EpochInetSocketAddress(java.net.InetSocketAddress[] addressList,
long epoch)
addressList - DESCRIBE THE PARAMETERepoch - DESCRIBE THE PARAMETER| Method Detail |
|---|
public java.net.InetSocketAddress getAddress(EpochInetSocketAddress local)
local - DESCRIBE THE PARAMETER
public java.net.InetSocketAddress getAddress(java.net.InetAddress[] local)
local - DESCRIBE THE PARAMETER
public java.net.InetSocketAddress getInnermostAddress()
public long getEpoch()
public short getSerializedLength()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The source route to compare to
public boolean addressEquals(EpochInetSocketAddress that)
that - DESCRIBE THE PARAMETER
public java.lang.String toString()
toString in class java.lang.Object
public void serialize(OutputBuffer buf)
throws java.io.IOException
buf -
java.io.IOException - DESCRIBE THE EXCEPTION
public static EpochInetSocketAddress build(InputBuffer buf)
throws java.io.IOException
buf -
java.io.IOException
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||