Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jac.core.dist.rmi
Class RMIRemoteRef  view RMIRemoteRef download RMIRemoteRef.java

java.lang.Object
  extended byjac.core.dist.RemoteRef
      extended byjac.core.dist.rmi.RMIRemoteRef
All Implemented Interfaces:
java.io.Serializable

public class RMIRemoteRef
extends jac.core.dist.RemoteRef

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

Version:
0.8.1

Field Summary
 
Fields inherited from class jac.core.dist.RemoteRef
name, remCont, remIndex, remRefClassProp, remRefDefaultClassName, toAdaptProp
 
Constructor Summary
RMIRemoteRef()
          Default constructor.
RMIRemoteRef(jac.core.dist.RemoteContainer remCont, int remIndex)
          This is a full constructor for RemoteRef.
RMIRemoteRef(java.lang.String contName, int remIndex)
          This is a more friendly constructor for RemoteRef.
 
Method Summary
 jac.core.dist.RemoteContainer reresolve()
          This method re-gets the reference of a remote container.
 jac.core.dist.RemoteContainer resolve(java.lang.String contName)
          This method resolves a container from a container name.
 
Methods inherited from class jac.core.dist.RemoteRef
create, create, create, equals, getName, getRemCont, getRemIndex, invoke, 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(jac.core.dist.RemoteContainer remCont,
                    int remIndex)
This is a full constructor for RemoteRef.


RMIRemoteRef

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

Method Detail

resolve

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


reresolve

public jac.core.dist.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.