|
||||||||||
| 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 InetSocketAddress[] |
address
|
protected long |
epoch
|
static long |
EPOCH_UNKNOWN
|
| Constructor Summary | |
|---|---|
EpochInetSocketAddress(InetSocketAddress address)
Constructor - don't use this unless you know what you are doing |
|
EpochInetSocketAddress(InetSocketAddress[] addressList,
long epoch)
|
|
EpochInetSocketAddress(InetSocketAddress address,
long epoch)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addressEquals(EpochInetSocketAddress that)
|
static EpochInetSocketAddress |
build(InputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+ + numAddrs + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address k + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port k + ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + epoch (long) + + + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
boolean |
equals(Object o)
Checks equaltiy on source routes |
InetSocketAddress |
getAddress(EpochInetSocketAddress local)
Method which returns the address of this address |
InetSocketAddress |
getAddress(InetAddress[] local)
This is for hairpinning support. |
long |
getEpoch()
Method which returns the epoch of this address |
InetSocketAddress |
getInnermostAddress()
|
short |
getSerializedLength()
|
int |
hashCode()
Returns the hashCode of this source route |
void |
serialize(OutputBuffer buf)
EpochInetSocketAddress: (IPV4): +-+-+-+-+-+-+-+-+ + numAddrs + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 0 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port 1 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + internet address k + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + port k + ... +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + epoch (long) + + + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |
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 |
|---|
public static final long EPOCH_UNKNOWN
protected InetSocketAddress[] address
protected long epoch
| Constructor Detail |
|---|
public EpochInetSocketAddress(InetSocketAddress address)
address - The remote address
public EpochInetSocketAddress(InetSocketAddress address,
long epoch)
address - The remote addressepoch - The remote epoch
public EpochInetSocketAddress(InetSocketAddress[] addressList,
long epoch)
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Objecto - The source route to compare to
public boolean addressEquals(EpochInetSocketAddress that)
public String toString()
toString in class Objectpath - The path
public InetSocketAddress getAddress(EpochInetSocketAddress local)
public InetSocketAddress getAddress(InetAddress[] local)
local - my sorted list of InetAddress
public InetSocketAddress getInnermostAddress()
public long getEpoch()
public static EpochInetSocketAddress build(InputBuffer buf)
throws IOException
buf -
IOException
public void serialize(OutputBuffer buf)
throws IOException
buf -
IOExceptionpublic short getSerializedLength()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||