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
UID that
ensures uniqueness.
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. |
public static final int ACTIVATOR_ID
Defines the ID of the activator.
public static final int DGC_ID
Defines the ID of the distributed garbage collector.
public static final int REGISTRY_ID
Defines the ID of the naming service.
public ObjID()
Create the new object id, unique for this host.
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:
- REGISTRY_ID - RMI naming service.
- ACTIVATOR_ID - activator
- DGC_ID - distributed garbage collector (grants lease
durations to keep the object before it is garbage collected.
Parameters: id the well known object id, one of the above.
public boolean equals(Object obj)
Compare for equality.
public int hashCode()
Get the hashcode.
public static
ObjID read(ObjectInput in)
Read object id (as long), then the object
UID.
public String toString()
Get the string representation.
public void write(ObjectOutput out)
Write object id as long, then the object
UID.