java rmi server ObjID








Class java.rmi.server.ObjID





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.








DGC_ID
well-known id for the distributed garbage collector

REGISTRY_ID
well-known id for the registry






ObjID()
Generate unique object identifier.

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






equals(Object)
Two object identifiers are considered equal if they have the
same contents.

hashCode()
The hashcode is the object number.

read(ObjectInput)
The read method constructs an object id whose contents is read
from the specified input stream.

toString()
Returns a string containing the object id representation.

write(ObjectOutput)
Marshal object id to output stream.






REGISTRY_ID

public static final int REGISTRY_ID


well-known id for the registry


DGC_ID

public static final int DGC_ID


well-known id for the distributed garbage collector







ObjID

public ObjID()


Generate unique object identifier.



ObjID

public ObjID(int num)


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







write

public void write(ObjectOutput out) throws IOException


Marshal object id to output stream.



read

public static ObjID read(ObjectInput in) throws IOException


The read method constructs an object id whose contents is read
from the specified input stream.



hashCode

public int hashCode()


The hashcode is the object number.


Overrides:
hashCode in class Object



equals

public boolean equals(Object obj)


Two object identifiers are considered equal if they have the
same contents.


Overrides:
equals in class Object



toString

public String toString()


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

Submit a bug or feature - Version 1.1.7 of Java Platform API Specification
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1995-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.




Wyszukiwarka

Podobne podstrony:
java rmi server RMISocketFactory
java rmi server Operation
java rmi server RMIFailureHandler
java rmi server Skeleton
java rmi server RemoteCall
java rmi server RemoteObject
java rmi server UnicastRemoteObject
java rmi server Unreferenced
java rmi server RemoteStub
java rmi server UID
java rmi server ServerNotActiveException
java rmi server LogStream
java rmi server RMIClassLoader
java rmi server RemoteServer
java rmi server LoaderHandler
java rmi server ServerRef
java rmi server RemoteRef
java rmi server ExportException
Package java rmi server

więcej podobnych podstron