|
Generated by JDiff |
||||||||
PREV PACKAGE NEXT PACKAGE FRAMES NO FRAMES |
This file contains all the changes in documentation in the packagejava.rmi.server
as colored differences. Deletions are shownlike this, and additions are shown like this.
If no deletions or additions are shown in an entry, the HTML tags will be what has changed. The new HTML tags are shown in the differences. If no documentation existed, and then some was added in a later version, this change is noted in the appropriate class pages of differences, but the change is not shown on this page. Only changes in existing text are shown here. Similarly, documentation which was inherited from another class or interface is not shown here.
Note that an HTML error in the new documentation may cause the display of other documentation changes to be presented incorrectly. For instance, failure to close a <code> tag will cause all subsequent paragraphs to be displayed differently.
AnExportException
is aRemoteException
thrown if an attempt to export a remote object fails. A remote object is exported via the constructors andexportObject
methods ofjava.rmi.server.UnicastRemoteObject
andjava.rmi.activation.Activatable
. @version 1.7 099 02/2102/9800 @author Ann Wollrath @since JDK1.1 @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable
Class LoaderHandler, String packagePrefixLoaderHandler
is an interface used internally by the RMI runtime in previous implementation versions. It should never be accessed by application code. @version 1.10 0713 02/1202/9800 @author Ann Wollrath @since JDK1.1 @deprecated no replacement
package of system LoaderHandler
implementation.
Class LogStream, PrintStream getDefaultStream()LogStream
provides a mechanism for logging errors that are of possible interest to those monitoring a system. @version 1.11 0915 02/2102/9800 @author Ann Wollrath (lots of code stolen from Ken Arnold) @since JDK1.1 @deprecated no replacement
Return the current default stream for new logs. @return default log stream @since JDK1.1 @deprecated no replacementClass LogStream, OutputStream getOutputStream()
Return the current stream to which output from this log is sent. @return output stream for this log @since JDK1.1 @deprecated no replacementClass LogStream, LogStream log(String)
Return the LogStream identified by the given name. If a log corresponding to "name" does not exist a log using the default stream is created. @param name name identifying the desired LogStream @return log associated with given name @since JDK1.1 @deprecated no replacementClass LogStream, int parseLevel(String)
Convert a string name of a logging level to its internal integer representation. @param s name of logging level (e.g. 'SILENT' 'BRIEF' 'VERBOSE') @return corresponding integer log level @since JDK1.1 @deprecated no replacementClass LogStream, void setDefaultStream(PrintStream)
Set the default stream for new logs. @param newDefault new default log stream @since JDK1.1 @deprecated no replacementClass LogStream, void setOutputStream(OutputStream)
Set the stream to which output from this log is sent. @param out new output stream for this log @since JDK1.1 @deprecated no replacementClass LogStream, String toString()
Return log name as string representation. @return log name @since JDK1.1 @deprecated no replacementClass LogStream, int BRIEF
log level constant (brief logging).Class LogStream, int SILENT
log level constant (no logging).Class LogStream, int VERBOSE
log level constant (verbose logging).
AnClass ObjID, ObjID read(ObjectInput)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. If the propertyjava.rmi.server.randomIDs
is true then the object number component (64 bits) of anObjID
created with the no argument constructor will contain a cryptographically strong random number. @version 1.16 0721 02/1217/9800 @author Ann Wollrath @since JDK1.1
Constructs an object id whose contents is read from the specified input stream. @param in input stream to read object ID from @return object ID instance read from stream @throws IOException if an I/O error occurred @since JDK1.1Class ObjID, void write(ObjectOutput)
Marshals object id to output stream. @param out output stream to write object ID to @throws IOException if an I/O error occurred @since JDK1.1Class ObjID, int ACTIVATOR_ID
well-known id for the activator.Class ObjID, int DGC_ID
well-known id for the distributed garbage collector.Class ObjID, int REGISTRY_ID
well-known id for the registry.
AnClass Operation, constructor Operation(String)Operation
contains a description of a Java method.Operation
objects were used in JDK1.1 version stubs and skeletons. TheOperation
class is not needed forJDK11.2 style stubs (stubs generated withrmic -v1.2
); hence this class is deprecated. @version 1.8130902/2102/9800 @since JDK1.1 @deprecated no replacement
Creates a new Operation object. @param op method name @deprecated no replacement @since JDK1.1Class Operation, String getOperation()
Returns the name of the method. @return method name @deprecated no replacement @since JDK1.1
Class RMIClassLoader, String getClassAnnotation(Class)RMIClassLoader
provides static methods for loading classes from a network location (one or more URLs) and obtaining the location from which an existing class can be loaded. These methods are used by the RMI runtime when marshalling and unmarshalling classes of parameters and return values. @version 1.16 0722 02/1202/9800 @author Ann Wollrath @author Peter Jones @since JDK1.1
Returns the class annotation (representing the location for a class) that RMI will use to annotate the call stream when marshalling objects of the given class. @param cl the class to obtain the annotation for @return a string to be used to annotate the class when marshalled @sinceClass RMIClassLoader, Object getSecurityContext(ClassLoader)JDK11.2
Class RMIClassLoader, Class loadClass(String)ReturnReturns the security context of the given class loader. @param loader a class loader from which to get the security context @return the security context @since JDK1.1 @deprecated no replacement. As ofJDK1the Java 2 platform v1.2 RMI no longer uses this method to obtain aclassloaderclass loader's security context. @see java.lang.SecurityManager#getSecurityContext()
Class RMIClassLoader, Class loadClass(String, String)LoadLoads a class from the codebase URL path specified by thejava.rmi.server.codebase
property. @param name the name of the class to load @return theClass
object representing the loaded class @exception MalformedURLException if the system property java.rmi.server.codebase contains an invalid URL @exception ClassNotFoundException if a definition for the class could not be found at the codebase location @since JDK1.1 @deprecated replaced byloadClass(String String)
method @see #loadClass(String String)
Class RMIClassLoader, Class loadClass(URL, String)LoadLoads a class from a codebase URL path. If the given codebase isnull
then theClass
object returned is equivalent to theClass
object returned byRMIClassLoader.loadClass(name)
. @param codebase the list of space-separated URLs to load the class from @param name the name of the class to load @return theClass
object representing the loaded class @exception MalformedURLException if thecodebase
paramater contains an invalid non-null URL @exception ClassNotFoundException if a definition for the class could not be found at the specified location @sinceJDK11.2
LoadLoads a class from a codebase URL. If the given codebase isnull
then theClass
object returned is equivalent to theClass
object returned byRMIClassLoader.loadClass(name)
. @param codebase the URL to load the class from @param name the name of the class to load @return theClass
object representing the loaded class @exception MalformedURLException if thecodebase
paramater contains an invalid non-null URL @exception ClassNotFoundException if a definition for the class could not be found at the specified URL @since JDK1.1
AnClass RMIClientSocketFactory, Socket createSocket(String, int)RMIClientSocketFactory
instance is used by the RMI runtime in order to obtain client sockets for RMI calls. A remote object can be associated with anRMIClientSocketFactory
when it is created/exported via the constructors orexportObject
methods ofjava.rmi.server.UnicastRemoteObject
andjava.rmi.activation.Activatable
.An
RMIClientSocketFactory
instance associated with a remote object will be downloaded to clients when the remote object's reference is transmitted in an RMI call. ThisRMIClientSocketFactory
will be used to create connections to the remote object for remote method calls.An
RMIClientSocketFactory
instance can also be associated with a remote object registry so that clients can use custom socket communication with a remote object registry. @version 1.3 077 02/1202/9800 @author Ann Wollrath @author Peter Jones @sinceJDK11.2 @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable @see java.rmi.registry.LocateRegistry
Create a client socket connected to the specified host and port. @param host the host name @param port the port number @return a socket connected to the specified host and port. @exception IOException if an I/O error occurs during socket creation @sinceJDK11.2
AnRMIFailureHandler
can be registered via theRMISocketFactory.setFailureHandler
call. Thefailure
method of the handler is invoked when the RMI runtime is unable to create aServerSocket
to listen for incoming calls. Thefailure
method returns a boolean indicating whether the runtime should attempt to re-create theServerSocket
. @author Ann Wollrath @version @(#)RMIFailureHandler.java 1.6 988 00/0702/0802 @since JDK1.1
AnClass RMIServerSocketFactory, ServerSocket createServerSocket(int)RMIServerSocketFactory
instance is used by the RMI runtime in order to obtain server sockets for RMI calls. A remote object can be associated with anRMIServerSocketFactory
when it is created/exported via the constructors orexportObject
methods ofjava.rmi.server.UnicastRemoteObject
andjava.rmi.activation.Activatable
.An
RMIServerSocketFactory
instance associated with a remote object is used to obtain theServerSocket
used to accept incoming calls from clients.An
RMIServerSocketFactory
instance can also be associated with a remote object registry so that clients can use custom socket communication with a remote object registry. @version 1.3 077 02/1202/9800 @author Ann Wollrath @author Peter Jones @sinceJDK11.2 @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable @see java.rmi.registry.LocateRegistry
Create a server socket on the specified port (port 0 indicates an anonymous port). @param port the port number @return the server socket on the specified port @exception IOException if an I/O error occurs during server socket creation @sinceJDK11.2
AnRMISocketFactory
instance is used by the RMI runtime in order to obtain client and server sockets for RMI calls. An application may use thesetSocketFactory
method to request that the RMI runtime use its socket factory instance instead of the default implementation.The default socket factory implementation used goes through a three-tiered approach to creating client sockets. First a direct socket connection to the remote VM is attempted. If that fails (due to a firewall) the runtime uses HTTP with the explicit port number of the server. If the firewall does not allow this type of communication then HTTP to a cgi-bin script on the server is used to POST the RMI call.
@version 1.
14 0916 02/2402/9800 @author Ann Wollrath @author Peter Jones @since JDK1.1
Class RemoteCall, ObjectInput getInputStream()RemoteCall
is an abstraction used solely by the RMI runtime (in conjunction with stubs and skeletons of remote objects) to carry out a call to a remote object. TheRemoteCall
interface is deprecated inJDK1.the Java 2 platform since it is only used by deprecated methods ofjava.rmi.server.RemoteRef
. @version 1.10 0915 02/2102/9800 @since JDK1.1 @author Ann Wollrath @author Roger Riggs @see java.rmi.server.RemoteRef @deprecated no replacement.
Get the InputStream that the stub/skeleton should get results/arguments from. @return input stream for reading arguments/results @exception java.io.IOException if an I/O error occurs. @since JDK1.1 @deprecated no replacementClass RemoteCall, ObjectOutput getOutputStream()
Return the output stream the stub/skeleton should put arguments/results into. @return output stream for arguments/results @exception java.io.IOException if an I/O error occurs. @since JDK1.1 @deprecated no replacementClass RemoteCall, ObjectOutput getResultStream(boolean)
Returns an output stream (may put out header information relating to the success of the call). Should only succeed once per remote call. @param success If true indicates normal return else indicates exceptional return. @return output stream for writing call result @exception java.io.IOException if an I/O error occurs. @exception java.io.StreamCorruptedException If already been called. @since JDK1.1 @deprecated no replacement
TheClass RemoteObject, constructor RemoteObject(RemoteRef)RemoteObject
class implements thejava.lang.Object
behavior for remote objects.RemoteObject
provides the remote semantics of Object by implementing methods for hashCode equals and toString. @version 1.17 0822 02/1002/9800 @author Ann Wollrath @since JDK1.1
Creates a remote object initialized with the specified remote reference. @param newref remote reference @since JDK1.1Class RemoteObject, RemoteRef getRef()
Returns the remote reference for the remote object. @return remote reference for the remote object @sinceClass RemoteObject, Remote toStub(Remote)JDK11.2
Returns the stub for the remote objectClass RemoteObject, RemoteRef refobj
passed as a parameter. This operation is only valid after the object has been exported. @param obj the remote object whose stub is neede @return the stub for the remote objectobj
. @exception NoSuchObjectException if the stub for the remote object could not be found. @sinceJDK11.2
theobjectsobject's remote reference.
Class RemoteRef, void done(RemoteCall)RemoteRef
represents the handle for a remote object. ARemoteStub
uses a remote reference to carry out a remote method invocation to a remote object. @version 1.12 0718 02/0802/9800 @author Ann Wollrath @since JDK1.1 @see java.rmi.server.RemoteStub
Allows the remote reference to clean up (or reuse) the connection. Done should only be called if the invoke returns successfully (non-exceptionally) to the stub. @since JDK1.1 @deprecatedClass RemoteRef, Object invoke(Remote, Method, Object[], long)JDK11.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
invoke
anddone
) a stub uses a single methodinvoke(Remote Method Object[] int)
on the remote reference to carry out parameter marshalling remote method executing and unmarshalling of the return value.
JDK11.2 stubs are generated usingrmic -v1.2
. By defaultrmic
generates stubs compatible with JDK1.1 andJDK1.the Java 2 SDK. The compatible stubs can also be generated usingrmic -vcompat
. @param call object representing remote call @throws RemoteException if remote error occurs during call cleanup @see #invoke(Remote java.lang.reflect.Method Object[] long)
Invoke a method. This form of delegating method invocation to the reference allows the reference to take care of setting up the connection to the remote host marshaling some representation for the method and parameters then communicating the method invocation to the remote host. This method either returns the result of a method invocation on the remote object which resides on the remote host or throws a RemoteException if the call failed or an application-level exception if the remote invocation throws an exception. @param obj the object that contains the RemoteRef (e.g. the RemoteStub for the object. @param method the method to be invoked @param params the parameter list @param opnum a hash that may be used to represent the method @return result of remote method invocation @exception Exception if any exception occurs during remote method invocation @sinceClass RemoteRef, void invoke(RemoteCall)JDK11.2
Executes the remote call. Invoke will raise any "user" exceptions which should pass through and not be caught by the stub. If any exception is raised during the remote invocation invoke should take care of cleaning up the connection before raising the "user" or remote exception. @since JDK1.1 @deprecatedClass RemoteRef, RemoteCall newCall(RemoteObject, Operation[], int, long)JDK11.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (newCall
invoke
anddone
) a stub uses a single methodinvoke(Remote Method Object[] int)
on the remote reference to carry out parameter marshalling remote method executing and unmarshalling of the return value.
JDK11.2 stubs are generated usingrmic -v1.2
. By defaultrmic
generates stubs compatible with JDK1.1 andJDK1.the Java 2 SDK. The compatible stubs can also be generated usingrmic -vcompat
. @param call object representing remote call @throws Exception if any exception occurs during remote method @see #invoke(Remote java.lang.reflect.Method Object[] long)
Creates an appropriate call object for a new remote method invocation on this object. Passing operation array and index allows the stubs generator to assign the operation indexes and interpret them. The remote reference may need the operation to encode in the call. @since JDK1.1 @deprecatedClass RemoteRef, int remoteHashCode()JDK11.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (newCall
invoke
anddone
) a stub uses a single methodinvoke(Remote Method Object[] int)
on the remote reference to carry out parameter marshalling remote method executing and unmarshalling of the return value.
JDK11.2 stubs are generated usingrmic -v1.2
. By defaultrmic
generates stubs compatible with JDK1.1 andJDK1.the Java 2 SDK. The compatible stubs can also be generated usingrmic -vcompat
. @param obj remote stub through which to make call @param op array of stub operations @param opnum operation number @param hash stub/skeleton interface hash @return call object representing remote call @throws RemoteException if failed to initiate new remote call @see #invoke(Remote java.lang.reflect.Method Object[] long)
Returns a hashcode for a remote object. Two remote object stubs that refer to the same remote object will have the same hash code (in order to support remote objects as keys in hash tables). @return remote object hashcode @see java.util.Hashtable @since JDK1.1Class RemoteRef, String remoteToString()
Returns a String that represents the reference of this remote object. @return string representing remote object reference @since JDK1.1Class RemoteRef, long serialVersionUID
indicate compatibility with JDK 1.1.x version of class.
TheClass RemoteServer, String getClientHost()RemoteServer
class is the common superclass to server implementations and provides the framework to support a wide range of remote reference semantics. Specifically the functions needed to create and export remote objects (i.e. to make them remotely available) are provided abstractly byRemoteServer
and concretely by its subclass(es). @version 1.18 0722 02/0802/9800 @author Ann Wollrath @since JDK1.1
Return the hostname of the current client. When called from a thread actively handling a remote method invocation the hostname of the client is returned. @exception ServerNotActiveException If called outside of servicing a remote method invocation. @return client hostname @since JDK1.1
TheRemoteStub
class is the common superclass to client stubs and provides the framework to support a wide range of remote reference semantics. Stub objects are surrogates that support exactly the same set of remote interfaces defined by the actual implementation of the remote object. @version 1.15 0717 02/0802/9800 @author Ann Wollrath @since JDK1.1
AClass ServerCloneException, void printStackTrace(PrintStream)ServerCloneException
is thrown if a remote exception occurs during the cloning of aUnicastRemoteObject
. @version 1.10 0715 02/1202/9800 @author Ann Wollrath @since JDK1.1 @see java.rmi.server.UnicastRemoteObject#clone()
Prints the composite message and the embedded stack trace to the specified streamClass ServerCloneException, void printStackTrace(PrintWriter)ps
. @param ps the print stream @sinceJDK11.2
Prints the composite message and the embedded stack trace to the specifiedClass ServerCloneException, Exception detailstreamwriter. @param
pspwpspw the printstreamwriter @sinceJDK11.2
Nested exception for ServerCloneException. @serial @since JDK1.1
AnServerNotActiveException
is anException
thrown during a call toRemoteServer.getClientHost
if the getClientHost method is called outside of servicing a remote method call. @version 1.8 0910 02/2102/9800 @author Roger Riggs @since JDK1.1 @see java.rmi.server.RemoteServer#getClientHost()
A ServerRef represents the server-side handle for a remote object implementation. @version 1.Class ServerRef, long serialVersionUID10 0913 02/2102/9800 @author Ann Wollrath @since JDK1.1
indicate compatibility with JDK 1.1.x version of class.
TheClass Skeleton, void dispatch(Remote, RemoteCall, int, long)Skeleton
interface is used solely by the RMI implementation.Every version 1.1 (and version 1.1 compatible skeletons generated in 1.2 using
rmic -vcompat
) skeleton class generated by the rmic stub compiler implements this interface. A skeleton for a remote object is a server-side entity that dispatches calls to the actual remote object implementation. @version 1.9 0915 02/2102/9800 @author Ann Wollrath @since JDK1.1 @deprecated no replacement. Skeletons are no longer required for remote method calls inJDK1the Java 2 platform v1.2 and greater.
Unmarshals arguments calls the actual remote object implementation and marshals the return value or any exception. @param obj remote implementation to dispatch call to @param theCall object representing remote call @param opnum operation number @param hash stub/skeleton interface hash @exception java.lang.Exception if a general exception occurs. @since JDK1.1 @deprecated no replacementClass Skeleton, Operation[] getOperations()
Returns the operations supported by the skeleton. @return operations supported by skeleton @since JDK1.1 @deprecated no replacement
This exception is thrown when a call is received that does not match the available skeleton. It indicates either that the remote method names or signatures in this interface have changed or that the stub class used to make the call and the skeleton receiving the call were not generated by the same version of the stub compiler (rmic
). @version 1.7 0911 02/2102/9800 @author Roger Riggs @since JDK1.1 @deprecated no replacement. Skeletons are no longer required for remote method calls inJDK1the Java 2 platform v1.2 and greater.
ASkeletonNotFoundException
is thrown if theSkeleton
corresponding to the remote object being exported is not found. Skeletons are not required inJDK1.the Java 2 platform so this exception is never thrown if stubs are generated withrmic -v1.2
. To generate stubs and skeletons compatible with JDK1.1 andJDK1.the Java 2 SDK usermic -vcompat
which is the default inJDK1.the Java 2 SDK. @version 1.7 0911 02/2102/9800 @since JDK1.1 @deprecated no replacement. Skeletons are no longer required for remote method calls inJDK1the Java 2 platform v1.2 and greater.
ASocketSecurityException
is thrown during remote object export if the code exporting the remote object (either by construction or by explicit call to theexportObject
method ofUnicastRemoteObject
orjava.rmi.activation.Activatable
) does not have permission to create ajava.net.ServerSocket
on the port number specified during remote object export. @version 1.7 099 02/2102/9800 @author Ann Wollrath @since JDK1.1 @see java.rmi.server.UnicastRemoteObject @see java.rmi.activation.Activatable
Abstraction for creating identifiers that are unique with respect to the the host on which it is generated. @version 1.Class UID, constructor UID(short)10 0713 02/1202/9800 @author Ann Wollrath @since JDK1.1
Creates a "well-known" ID. There are 2^16 -1 such possible well-known ids. An id generated via this constructor will not clash with any id generated via the default UID constructor which will generates a genuinely unique identifier with respect to this host. @param num well known ID number @since JDK1.1
The UnicastRemoteObject class defines a non-replicated remote object whose references are valid only while the server process is alive. The UnicastRemoteObject class provides support for point-to-point active object references (invocations parameters and results) using TCP streams.Class UnicastRemoteObject, constructor UnicastRemoteObject()Objects that require remote behavior should extend RemoteObject typically via UnicastRemoteObject. If UnicastRemoteObject is not extended the implementation class must then assume the responsibility for the correct semantics of the hashCode equals and toString methods inherited from the Object class so that they behave appropriately for remote objects. @version 1.
21 0726 02/0802/9800 @author Ann Wollrath @author Peter Jones @since JDK1.1 @see RemoteServer @see RemoteObject
Create and export a new UnicastRemoteObject object using an anonymous port. @throws RemoteException if failed to export object @since JDK1.1Class UnicastRemoteObject, constructor UnicastRemoteObject(int)
Create and export a new UnicastRemoteObject object using the particular supplied port. @param port the port number on which the remote object receives calls (ifClass UnicastRemoteObject, constructor UnicastRemoteObject(int, RMIClientSocketFactory, RMIServerSocketFactory)port
is zero an anonymous port is chosen) @throws RemoteException if failed to export object @sinceJDK11.2
Create and export a new UnicastRemoteObject object using the particular supplied port and socket factories. @param port the port number on which the remote object receives calls (ifClass UnicastRemoteObject, RemoteStub exportObject(Remote)port
is zero an anonymous port is chosen) @param csf the client-side socket factory for making calls to the remote object @param ssf the server-side socket factory for receiving remote calls @throws RemoteException if failed to export object @sinceJDK11.2
Export the remote object to make it available to receive incoming calls using an anonymous port. @param obj the remote object to be exported @return remote object stub @exception RemoteException if export fails @since JDK1.1Class UnicastRemoteObject, Remote exportObject(Remote, int)
Export the remote object to make it available to receive incoming calls using the particular supplied port. @param obj the remote object to be exported @param port the port to export the object on @return remote object stub @exception RemoteException if export fails @sinceClass UnicastRemoteObject, Remote exportObject(Remote, int, RMIClientSocketFactory, RMIServerSocketFactory)JDK11.2
Export the remote object to make it available to receive incoming calls using a transport specified by the given socket factory. @param obj the remote object to be exported @param port the port to export the object on @param csf the client-side socket factory for making calls to the remote object @param ssf the server-side socket factory for receiving remote calls @return remote object stub @exception RemoteException if export fails @sinceClass UnicastRemoteObject, boolean unexportObject(Remote, boolean)JDK11.2
Remove the remote object obj from the RMI runtime. If successful the object can no longer accept incoming RMI calls. If the force parameter is true the object is forcibly unexported even if there are pending calls to the remote object or the remote object still has calls in progress. If the force parameter is false the object is only unexported if there are no pending or in progress calls to the object. @param obj the remote object to be unexported @param force if true unexports the object even if there are pending or in-progress calls; if false only unexports the object if there are no pending or in-progress calls @return true if operation is successful false otherwise @exception NoSuchObjectException if the remote object is not currently exported @sinceJDK11.2
A remote object implementation should implement theUnreferenced
interface to receive notification when there are no more clients that reference that remote object. @version 1.7 099 02/2102/9800 @author Ann Wollrath @author Roger Riggs @since JDK1.1