|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.pastry.socket.EpochInetSocketAddress
public class EpochInetSocketAddress
Class which represets a source route to a remote IP address.
Field Summary | |
---|---|
protected java.net.InetSocketAddress[] |
address
|
protected long |
epoch
|
static long |
EPOCH_UNKNOWN
|
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)
|
|
EpochInetSocketAddress(java.net.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 + ... |
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)
This is for hairpinning support. |
long |
getEpoch()
Method which returns the epoch of this address |
java.net.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 + ... |
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 |
---|
public static final long EPOCH_UNKNOWN
protected java.net.InetSocketAddress[] address
protected long epoch
Constructor Detail |
---|
public EpochInetSocketAddress(java.net.InetSocketAddress address)
address
- The remote addresspublic EpochInetSocketAddress(java.net.InetSocketAddress address, long epoch)
address
- The remote addressepoch
- The remote epochpublic EpochInetSocketAddress(java.net.InetSocketAddress[] addressList, long epoch)
Method Detail |
---|
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- The source route to compare to
public boolean addressEquals(EpochInetSocketAddress that)
public java.lang.String toString()
toString
in class java.lang.Object
path
- The path
public java.net.InetSocketAddress getAddress(EpochInetSocketAddress local)
public java.net.InetSocketAddress getAddress(java.net.InetAddress[] local)
local
- my sorted list of InetAddress
public java.net.InetSocketAddress getInnermostAddress()
public long getEpoch()
public static EpochInetSocketAddress build(InputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
public void serialize(OutputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
public short getSerializedLength()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |