JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.core.dist.rmi
Class RMIRemoteRef

java.lang.Object
  |
  +--org.objectweb.jac.core.dist.RemoteRef
        |
        +--org.objectweb.jac.core.dist.rmi.RMIRemoteRef
All Implemented Interfaces:
Serializable

public class RMIRemoteRef
extends RemoteRef

RMIRemoteRef stores the reference of a remote object that can be accessed by the RMI protocol.

Author:
Lionel Seinturier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.core.dist.RemoteRef
name, remCont, remIndex, toAdaptProp
 
Constructor Summary
RMIRemoteRef()
          Default constructor.
RMIRemoteRef(RemoteContainer remCont, int remIndex)
          This is a full constructor for RemoteRef.
RMIRemoteRef(String contName, int remIndex)
          This is a more friendly constructor for RemoteRef.
 
Method Summary
 RemoteContainer reresolve()
          This method re-gets the reference of a remote container.
 RemoteContainer resolve(String contName)
          This method resolves a container from a container name.
 
Methods inherited from class org.objectweb.jac.core.dist.RemoteRef
create, create, create, equals, getName, getRemCont, getRemIndex, invoke, invoke, invokeRoleMethod, remoteCopy, remoteCopy, remoteNew, remoteNew, remoteNewWithCopy, remoteNewWithCopy, remoteNewWithCopy, remoteNewWithCopy, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RMIRemoteRef

public RMIRemoteRef()
Default constructor.


RMIRemoteRef

public RMIRemoteRef(RemoteContainer remCont,
                    int remIndex)
This is a full constructor for RemoteRef.

Parameters:
remCont - the ref of the container that handles the remote object.
remIndex - the index of the remote object

RMIRemoteRef

public RMIRemoteRef(String contName,
                    int remIndex)
This is a more friendly constructor for RemoteRef.

Parameters:
remIndex - the index of the remote object.
Method Detail

resolve

public RemoteContainer resolve(String contName)
This method resolves a container from a container name. This method simply delegates its job to a RMIRemoteContainer.

Overrides:
resolve in class RemoteRef
Parameters:
contName - the name of the container
Returns:
the container reference
See Also:
resolve(String), CORBARemoteRef.resolve(String)

reresolve

public RemoteContainer reresolve()
This method re-gets the reference of a remote container. CORBA do not linearalize remote references in a standard way. Thus a remote reference may need to be adapted whenever it is transmitted. This method performs nothing in the case of RMI. This method is called when a remote reference is received by a RemoteContainer.

Overrides:
reresolve in class RemoteRef
Returns:
the container reference
See Also:
reresolve(), CORBARemoteRef.reresolve()

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli