All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class java.rmi.server.ObjID

java.lang.Object
   |
   +----java.rmi.server.ObjID

public final class ObjID
extends Object
implements Serializable
The class 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.


Variable Index

 o DGC_ID
well-known id for the distributed garbage collector
 o REGISTRY_ID
well-known id for the registry

Constructor Index

 o ObjID()
Generate unique object identifier.
 o ObjID(int)
Generate a "well-known" object ID.

Method Index

 o equals(Object)
Two object identifiers are considered equal if they have the same contents.
 o hashCode()
The hashcode is the object number.
 o read(ObjectInput)
The read method constructs an object id whose contents is read from the specified input stream.
 o toString()
Returns a string containing the object id representation.
 o write(ObjectOutput)
Marshal object id to output stream.

Variables

 o REGISTRY_ID
Properties Public Constant 
   REGISTRY_ID=int 
well-known id for the registry

 o DGC_ID
Properties Public Constant 
   DGC_ID=int 
well-known id for the distributed garbage collector

Constructors

 o ObjID
    method ObjID() public 
Generate unique object identifier.

 o ObjID
    method ObjID(num=int) public 
Generate a "well-known" object ID. An object ID generated via this constructor will not clash with any object IDs generated via the default constructor.

Parameters:
num - a unique well-known object number

Methods

 o write
    method write(out=ObjectOutput)  public     Signals IOException
Marshal object id to output stream.

 o read
    method read(in=ObjectInput) returns ObjID public  static   Signals IOException
The read method constructs an object id whose contents is read from the specified input stream.

 o hashCode
    method hashCode() returns int public     
The hashcode is the object number.

Overrides:
hashCode in class Object
 o equals
    method equals(obj=Object) returns boolean public     
Two object identifiers are considered equal if they have the same contents.

Overrides:
equals in class Object
 o toString
    method toString() returns String public     
Returns a string containing the object id representation. The address space identifier is included in the string representation only if the object id is from a non-local address space.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index