public class

ActivatableServerRef

extends UnicastServerRef2
java.lang.Object
   ↳ sun.rmi.server.UnicastRef
     ↳ sun.rmi.server.UnicastServerRef
       ↳ sun.rmi.server.UnicastServerRef2
         ↳ sun.rmi.server.ActivatableServerRef

Class Overview

Server-side ref for a persistent remote impl.

Summary

[Expand]
Inherited Constants
From interface java.rmi.server.RemoteRef
From interface java.rmi.server.ServerRef
[Expand]
Inherited Fields
From class sun.rmi.server.UnicastServerRef
From class sun.rmi.server.UnicastRef
Public Constructors
ActivatableServerRef(ActivationID id, int port)
Construct a Unicast server remote reference to be exported on the specified port.
ActivatableServerRef(ActivationID id, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)
Construct a Unicast server remote reference to be exported on the specified port.
Public Methods
String getRefClass(ObjectOutput out)
Returns the class of the ref type to be serialized
void writeExternal(ObjectOutput out)
Prevents serialization (because deserializaion is impossible).
Protected Methods
RemoteRef getClientRef()
Return the client remote reference for this remoteRef.
[Expand]
Inherited Methods
From class sun.rmi.server.UnicastServerRef2
From class sun.rmi.server.UnicastServerRef
From class sun.rmi.server.UnicastRef
From class java.lang.Object
From interface java.io.Externalizable
From interface java.rmi.server.RemoteRef
From interface java.rmi.server.ServerRef
From interface sun.rmi.server.Dispatcher

Public Constructors

public ActivatableServerRef (ActivationID id, int port)

Construct a Unicast server remote reference to be exported on the specified port.

public ActivatableServerRef (ActivationID id, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf)

Construct a Unicast server remote reference to be exported on the specified port.

Public Methods

public String getRefClass (ObjectOutput out)

Returns the class of the ref type to be serialized

Parameters
out the output stream to which the reference will be serialized
Returns
  • the class name (without package qualification) of the reference type

public void writeExternal (ObjectOutput out)

Prevents serialization (because deserializaion is impossible).

Parameters
out the stream to write the object to
Throws
IOException

Protected Methods

protected RemoteRef getClientRef ()

Return the client remote reference for this remoteRef. In the case of a client RemoteRef "this" is the answer. For a server remote reference, a client side one will have to found or created.