|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.carol.cmi.ObjectId
Each clustered remote object is uniquely identified by such a number.
Two distinct clustered remote object do not have the same
ObjectId.
| Constructor Summary | |
ObjectId()
Default constructor |
|
ObjectId(ClusterId serverId,
ClusterId objId)
Creates a new identifier |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
Compare two ObjectIds |
boolean |
equals(java.lang.Object o)
Test if two ObjectIds are equals |
ClusterId |
getServerId()
Get the ServerId associated with the current object |
int |
hashCode()
Compute hashcode |
static void |
main(java.lang.String[] args)
Useful for tests only. |
static ObjectId |
read(java.io.DataInput in)
Read an ObjectId from the input stream |
void |
readExternal(java.io.ObjectInput in)
|
java.lang.String |
toString()
|
void |
write(java.io.DataOutput out)
Write an ObjectId on the ouput stream |
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ObjectId()
public ObjectId(ClusterId serverId,
ClusterId objId)
serverId - server idobjId - object id| Method Detail |
public int hashCode()
public boolean equals(java.lang.Object o)
o - object to compare with this
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - object to compare with this
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionExternalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionExternalizable.writeExternal(java.io.ObjectOutput)
public static ObjectId read(java.io.DataInput in)
throws java.io.IOException
in - input
java.io.IOException - if an I/O error occurs
public void write(java.io.DataOutput out)
throws java.io.IOException
out - output
java.io.IOException - if an I/O error occurspublic ClusterId getServerId()
public java.lang.String toString()
Object.toString()
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception - Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||