API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.activation. Activatable View Source
Author(s)
Ann Wollrath
Since
1.2
Version
1.38, 05/11/17
Serial
exclude
Hierarchy
 Object
      RemoteObject
          RemoteServer
              Activatable
Implements
Subclasses
Description
publicabstract abstract class Activatable
  The Activatable class provides support for remote objects that require persistent access over time and that can be activated by the system.
See also:   
Constructors
protected Activatable (ActivationID id, int port) throws RemoteException
  Constructor used to activate/export the object on a specified port.
protected Activatable (ActivationID id, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
  Constructor used to activate/export the object on a specified port.
protected Activatable (String location, MarshalledObject<Object> data, boolean restart, int port) throws ActivationException RemoteException
  Constructs an activatable remote object by registering an activation descriptor (with the specified location, data, and restart mode) for this object, and exporting the object with the specified port.
protected Activatable (String location, MarshalledObject<Object> data, boolean restart, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws ActivationException RemoteException
  Constructs an activatable remote object by registering an activation descriptor (with the specified location, data, and restart mode) for this object, and exporting the object with the specified port, and specified client and server socket factories.
Methods
Hide/Show inherited methods
public boolean equals (Object obj) [Inherited From RemoteObject]
  Compares two remote objects for equality.
publicstatic Remote exportObject (Remote obj, ActivationID id, int port) throws RemoteException
  Export the activatable remote object to the RMI runtime to make the object available to receive incoming calls.
publicstatic Remote exportObject (Remote obj, ActivationID id, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
  Export the activatable remote object to the RMI runtime to make the object available to receive incoming calls.
publicstatic ActivationID exportObject (Remote obj, String location, MarshalledObject<Object> data, boolean restart, int port) throws ActivationException RemoteException
  Registers an activation descriptor (with the specified location, data, and restart mode) for the specified object, and exports that object with the specified port.
publicstatic ActivationID exportObject (Remote obj, String location, MarshalledObject<Object> data, boolean restart, int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws ActivationException RemoteException
  Registers an activation descriptor (with the specified location, data, and restart mode) for the specified object, and exports that object with the specified port, and the specified client and server socket factories.
publicstatic String getClientHost () throws ServerNotActiveException [Inherited From RemoteServer]
  Returns a string representation of the client host for the remote method invocation being processed in the current thread.
protected ActivationID getID ()
  Returns the object's activation identifier.
publicstatic PrintStream getLog () [Inherited From RemoteServer]
  Returns stream for the RMI call log.
public RemoteRef getRef () [Inherited From RemoteObject]
  Returns the remote reference for the remote object.
public int hashCode () [Inherited From RemoteObject]
  Returns a hashcode for a remote object.
publicstatic boolean inactive (ActivationID id) throws UnknownObjectException ActivationException RemoteException
  Informs the system that the object with the corresponding activation id is currently inactive.
publicstatic Remote register (ActivationDesc desc) throws UnknownGroupException ActivationException RemoteException
  Register an object descriptor for an activatable remote object so that is can be activated on demand.
publicstatic void setLog (OutputStream out) [Inherited From RemoteServer]
  Log RMI calls to the output stream out.
public String toString () [Inherited From RemoteObject]
Returns a String that represents the value of this remote object.
publicstatic Remote toStub (Remote obj) throws NoSuchObjectException [Inherited From RemoteObject]
  Returns the stub for the remote object obj passed as a parameter.
publicstatic boolean unexportObject (Remote obj, boolean force) throws NoSuchObjectException
  Remove the remote object, obj, from the RMI runtime.
publicstatic void unregister (ActivationID id) throws UnknownObjectException ActivationException RemoteException
  Revokes previous registration for the activation descriptor associated with id.
Fields
Hide/Show inherited fields
protectedtransient RemoteRef ref [Inherited From RemoteObject]
The object's remote reference.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar