java.rmi.server

Class ObjID

public final class ObjID extends Object implements Serializable

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 {@link UID} that ensures uniqueness.
Field Summary
static intACTIVATOR_ID
Defines the ID of the activator.
static intDGC_ID
Defines the ID of the distributed garbage collector.
static intREGISTRY_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
booleanequals(Object obj)
Compare for equality.
inthashCode()
Get the hashcode.
static ObjIDread(ObjectInput in)
Read object id (as long), then the object {@link UID}.
StringtoString()
Get the string representation.
voidwrite(ObjectOutput out)
Write object id as long, then the object {@link UID}.

Field Detail

ACTIVATOR_ID

public static final int ACTIVATOR_ID
Defines the ID of the activator.

DGC_ID

public static final int DGC_ID
Defines the ID of the distributed garbage collector.

REGISTRY_ID

public static final int REGISTRY_ID
Defines the ID of the naming service.

Constructor Detail

ObjID

public ObjID()
Create the new object id, unique for this host.

ObjID

public ObjID(int id)
Create the new object id defining the well known remotely accessible object, present in this host. The well - known objects are:

Parameters: id the well known object id, one of the above.

Method Detail

equals

public boolean equals(Object obj)
Compare for equality.

hashCode

public int hashCode()
Get the hashcode.

read

public static ObjID read(ObjectInput in)
Read object id (as long), then the object {@link UID}.

toString

public String toString()
Get the string representation.

write

public void write(ObjectOutput out)
Write object id as long, then the object {@link UID}.