|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--osl.nameservice.simple.DefaultName
This class defines an implementation of the Name interface for use in the "default" nameservice implementation. In the default implementation, a name is a PhysicalAddress/integer pair which identifies the creator of the name. This information may be used to track down the current location of the entity associated with the name when local name tables are invalidated.
Name,
NameService,
DefaultNameService, Serialized Form| Constructor Summary | |
DefaultName()
The default constructor. |
|
DefaultName(PhysicalAddress cAddr,
int cID)
The default constructor for building legal names. |
|
| Method Summary | |
boolean |
equals(java.lang.Object other)
Determines whether two DefaultNames should be considered equal. |
int |
hashCode()
Returns the hash code for this DefaultName. |
void |
readExternal(java.io.ObjectInput in)
Deserialize into a new instnace of UDPAddress by reading from the given input stream. |
java.lang.String |
toString()
The canonical toString method. |
void |
writeExternal(java.io.ObjectOutput out)
Serialize the contents of this class to the output stream. |
| Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
| Constructor Detail |
public DefaultName()
public DefaultName(PhysicalAddress cAddr,
int cID)
cAddr - The PhysicalAddress of the creator
of this name.cID - The int ID which should be unique
relative to all names created by cAddr.| Method Detail |
public java.lang.String toString()
public boolean equals(java.lang.Object other)
other - A reference to the other Object to
which equality is being testedpublic int hashCode()
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
out - The OutputStream to which we should
write this instance.
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
in - The InputStream from which we should
deserialize this instance.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||