org.objectweb.carol.rmi.multi

Class JrmpPRODelegate

Implemented Interfaces:
PortableRemoteObjectDelegate

public class JrmpPRODelegate
extends java.lang.Object
implements PortableRemoteObjectDelegate

Class JrmpPRODelegate for the mapping between Rmi jrmp UnicastRemoteObject and PortableRemoteObject

Constructor Summary

JrmpPRODelegate()
Constructor

Method Summary

void
connect(Remote target, Remote source)
Connection method
void
exportObject(Remote obj)
Export a Remote Object
Object
narrow(Object obj, Class newClass)
Narrow method
Remote
toStub(Remote obj)
To stub method
void
unexportObject(Remote obj)
Method for unexport object

Constructor Details

JrmpPRODelegate

public JrmpPRODelegate()
Constructor

Method Details

connect

public void connect(Remote target,
                    Remote source)
            throws RemoteException
Connection method

Parameters:
target - a remote object;
source - another remote object;


exportObject

public void exportObject(Remote obj)
            throws RemoteException
Export a Remote Object

Parameters:


narrow

public Object narrow(Object obj,
                     Class newClass)
            throws ClassCastException
Narrow method

Parameters:

Returns:
an object of type newClass


toStub

public Remote toStub(Remote obj)
            throws NoSuchObjectException
To stub method

Parameters:

Returns:
the stub object


unexportObject

public void unexportObject(Remote obj)
            throws NoSuchObjectException
Method for unexport object

Parameters: