|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mpisws.p2p.transport.sourceroute.SourceRoute<Identifier>
public abstract class SourceRoute<Identifier>
Class which represets a source route to a remote IP address.
| Field Summary | |
|---|---|
protected java.util.List<Identifier> |
path
|
| Constructor Summary | |
|---|---|
protected |
SourceRoute(Identifier address)
|
protected |
SourceRoute(Identifier local,
Identifier remote)
|
protected |
SourceRoute(java.util.List<Identifier> path)
Constructor |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Checks equality on source routes |
Identifier |
getFirstHop()
Method which returns the first "hop" of this source route |
int |
getHop(Identifier identifier)
Returns which hop in the path the identifier is. |
Identifier |
getHop(int i)
Returns the hop at the given index |
Identifier |
getLastHop()
Method which returns the first "hop" of this source route |
int |
getNumHops()
Returns the number of hops in this source route |
abstract int |
getSerializedLength()
|
boolean |
goesThrough(Identifier address)
Returns whether or not this route goes through the given address |
int |
hashCode()
Returns the hashCode of this source route |
boolean |
isDirect()
Returns whether or not this route is direct |
abstract void |
serialize(OutputBuffer buf)
Raw Serialization |
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.util.List<Identifier> path
| Constructor Detail |
|---|
protected SourceRoute(java.util.List<Identifier> path)
nodeId - This node handle's node Id.address - DESCRIBE THE PARAMETERprotected SourceRoute(Identifier address)
protected SourceRoute(Identifier local,
Identifier remote)
| Method Detail |
|---|
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 java.lang.String toString()
toString in class java.lang.Objectpath - The path
public Identifier getFirstHop()
public Identifier getLastHop()
public int getNumHops()
public Identifier getHop(int i)
i - The hop index
public boolean isDirect()
public boolean goesThrough(Identifier address)
public int getHop(Identifier identifier)
identifier - the hop
public abstract void serialize(OutputBuffer buf)
throws java.io.IOException
java.io.IOExceptionpublic abstract int getSerializedLength()
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||