|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--solar.service.transport.PastryAddress
Network address for Pastry substrate. Note rice.pastry.messaging.Address is different and used to demulplex on the same Pastry node.
| Field Summary | |
protected int |
_hashcode
|
protected rice.pastry.Id |
_nodeId
|
| Constructor Summary | |
PastryAddress()
Construct a Pastry address with a random Node ID. |
|
PastryAddress(byte[] id)
Construct a Pastry address with specified Node ID in byte array. |
|
PastryAddress(rice.pastry.Id id)
Construct a Pastry address with specified Node ID. |
|
| Method Summary | |
private void |
construction()
Common constructor operatoions. |
boolean |
equals(java.lang.Object obj)
Test whether two addresses are equals. |
int |
getEncoding()
Return the encoding of this address. |
rice.pastry.Id |
getNodeId()
Return the pastry node ID for this address. |
int |
hashCode()
Return the hash code of this address. |
byte[] |
toBytes()
Return the byte array representation of this address. |
java.lang.String |
toString()
Return the string representation of this address. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected rice.pastry.Id _nodeId
protected int _hashcode
| Constructor Detail |
public PastryAddress(rice.pastry.Id id)
public PastryAddress(byte[] id)
public PastryAddress()
| Method Detail |
private void construction()
public java.lang.String toString()
Address
toString in interface AddresstoString in class java.lang.Objectpublic byte[] toBytes()
Address
toBytes in interface Addresspublic int getEncoding()
Address
getEncoding in interface Addresspublic boolean equals(java.lang.Object obj)
Address
equals in interface Addressequals in class java.lang.Objectpublic int hashCode()
Address
hashCode in interface AddresshashCode in class java.lang.Objectpublic rice.pastry.Id getNodeId()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||