Java rmi class server

Package java.rmi.server

An RMIClientSocketFactory instance is used by the RMI runtime in order to obtain client sockets for RMI calls.

An RMIServerSocketFactory instance is used by the RMI runtime in order to obtain server sockets for RMI calls.

A remote object implementation should implement the Unreferenced interface to receive notification when there are no more clients that reference that remote object.

An implementation of the InvocationHandler interface for use with Java Remote Method Invocation (Java RMI).

The RemoteServer class is the common superclass to server implementations and provides the framework to support a wide range of remote reference semantics.

An RMISocketFactory instance is used by the RMI runtime in order to obtain client and server sockets for RMI calls.

A UID represents an identifier that is unique over time with respect to the host it is generated on, or one of 2 16 «well-known» identifiers.

Used for exporting a remote object with JRMP and obtaining a stub that communicates to the remote object.

A ServerCloneException is thrown if a remote exception occurs during the cloning of a UnicastRemoteObject .

An ServerNotActiveException is an Exception thrown during a call to RemoteServer.getClientHost if the getClientHost method is called outside of servicing a remote method call.

Package java.rmi.server Description

Provides classes and interfaces for supporting the server side of RMI. A group of classes are used by the stubs and skeletons generated by the rmic stub compiler. Another group of classes implements the RMI Transport protocol and HTTP tunneling.

Deprecated: HTTP Tunneling. The HTTP tunneling mechanism has been deprecated. See RMISocketFactory for further information.

Deprecated: Skeletons and Static Stubs. Skeletons and statically generated stubs are deprecated. This includes the APIs in this package that require the use of skeletons or static stubs, the runtime support for them, and the use of the rmic stub compiler to generate them. Support for skeletons and static stubs may be removed in a future release of the platform. Skeletons are unnecessary, as server-side method dispatching is handled directly by the RMI runtime. Statically generated stubs are unnecessary, as stubs are generated dynamically using Proxy objects. See UnicastRemoteObject for information about dynamic stub generation. Generation of skeletons and static stubs was typically performed as part of an application’s build process by calling the rmic tool. This is unnecessary, and calls to rmic can simply be omitted.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2023, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Источник

Class RemoteServer

The 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 by RemoteServer and concretely by its subclass(es).

Field Summary

Fields declared in class java.rmi.server.RemoteObject

Constructor Summary

Method Summary

Returns a string representation of the client host for the remote method invocation being processed in the current thread.

Methods declared in class java.rmi.server.RemoteObject

Methods declared in class java.lang.Object

Constructor Details

RemoteServer

RemoteServer

Method Details

getClientHost

Returns a string representation of the client host for the remote method invocation being processed in the current thread.

setLog

Log RMI calls to the output stream out . If out is null , call logging is turned off. If there is a security manager, its checkPermission method will be invoked with a java.util.logging.LoggingPermission(«control») permission; this could result in a SecurityException .

getLog

Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2023, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.

Источник

Читайте также:  Setenabled method in java
Оцените статью