|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.ObjID
An ObjID
is used to identify remote objects uniquely
in a VM over time. Each identifier contains an object number and an
address space identifier that is unique with respect to a specific host.
An object identifier is assigned to a remote object when it is exported.
If the property java.rmi.server.randomIDs
is true, then the
object number component (64 bits) of an ObjID
created with the
no argument constructor will contain a cryptographically strong random
number.
Field Summary | |
static int |
ACTIVATOR_ID
well-known id for the activator. |
static int |
DGC_ID
well-known id for the distributed garbage collector. |
static int |
REGISTRY_ID
well-known id for the registry. |
Constructor Summary | |
ObjID()
Generates a unique object identifier. |
|
ObjID(int num)
Generates a "well-known" object ID. |
Method Summary | |
boolean |
equals(Object obj)
Two object identifiers are considered equal if they have the same contents. |
int |
hashCode()
Returns the hash code for the ObjID (the object number). |
static ObjID |
read(ObjectInput in)
Constructs an object id whose contents is read from the specified input stream. |
String |
toString()
Returns a string containing the object id representation. |
void |
write(ObjectOutput out)
Marshals object id to output stream. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int REGISTRY_ID
public static final int ACTIVATOR_ID
public static final int DGC_ID
Constructor Detail |
public ObjID()
java.rmi.server.randomIDs
is true, then the object number
component (64 bits) of an ObjID
created with the no
argument constructor will contain a cryptographically strong random
number.public ObjID(int num)
num
- a unique well-known object numberMethod Detail |
public void write(ObjectOutput out) throws IOException
out
- output stream to write object ID toIOException
- if an I/O error occurredpublic static ObjID read(ObjectInput in) throws IOException
in
- input stream to read object ID fromIOException
- if an I/O error occurredpublic int hashCode()
ObjID
(the object number).hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates. All rights reserved.