|
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
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 address,
long epoch)
Constructor |
Method Summary | |
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()
Method which returns the address of this address |
long |
getEpoch()
Method which returns the epoch of this address |
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 addresspublic EpochInetSocketAddress(java.net.InetSocketAddress address, long epoch)
address
- The remote addressepoch
- The remote epochMethod Detail |
public java.net.InetSocketAddress getAddress()
public long getEpoch()
public int hashCode()
public boolean equals(java.lang.Object o)
o
- The source route to compare to
public java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
buf
-
java.io.IOException
- DESCRIBE THE EXCEPTIONpublic 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 |