|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.ObjID
public final class ObjID
Represents the object identifier, unique for the host that generated it.
The ObjID contains inside the integer object identifier that, if needed,
may indicated that this is a reference to one of the well known objects
on that host (registry, activator or dgc) and the UID
that
ensures uniqueness.
Field Summary | |
---|---|
static int |
ACTIVATOR_ID
Defines the ID of the activator. |
static int |
DGC_ID
Defines the ID of the distributed garbage collector. |
static int |
REGISTRY_ID
Defines the ID of the naming service. |
Constructor Summary | |
---|---|
ObjID()
Create the new object id, unique for this host. |
|
ObjID(int id)
Create the new object id defining the well known remotely accessible object, present in this host. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Compare for equality. |
int |
hashCode()
Get the hashcode. |
static ObjID |
read(ObjectInput in)
Read object id (as long), then the object UID . |
String |
toString()
Get the string representation. |
void |
write(ObjectOutput out)
Write object id as long, then the object UID . |
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()
public ObjID(int id)
REGISTRY_ID
- RMI naming service.ACTIVATOR_ID
- activatorDGC_ID
- distributed garbage collector (grants lease
durations to keep the object before it is garbage collected.
id
- the well known object id, one of the above.Method Detail |
---|
public void write(ObjectOutput out) throws IOException
UID
.
IOException
public static ObjID read(ObjectInput in) throws IOException
UID
.
IOException
public int hashCode()
hashCode
in class Object
Object.equals(Object)
,
System.identityHashCode(Object)
public boolean equals(Object obj)
equals
in class Object
obj
- the Object to compare to
Object.hashCode()
public String toString()
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |