java.lang.Object
jac.core.dist.RemoteContainer
jac.core.dist.corba.CORBARemoteContainerStub
- All Implemented Interfaces:
- java.io.Serializable
- public class CORBARemoteContainerStub
- extends jac.core.dist.RemoteContainer
- implements java.io.Serializable
CORBARemoteContainerStub acts as a client stub to access a remote container.
CORBARemoteContainerStub holds a CORBARemoteContainerInterf instance.
This is the client stub of the remote CORBARemoteContainer object
that owns as a delegate the container that is to be accessed.
Note: what we need is an instance of something that extends RemoteContainer.
But we can't have an object that is both a client stub for a remote CORBA
object and a RemoteContainer (no multiple inheritance in Java).
So we implemented this delegating scheme where:
- CORBARemoteContainerStub (which is a RemoteContainer) delegates
its job to a CORBARemoteContainer client stub
- which itself transmits it to a remote CORBARemoteContainer object,
- Version:
- 0.8.1
|
Field Summary |
protected CORBARemoteContainerInterf |
delegate
The CORBA stub where the job is to be delegated. |
| Methods inherited from class jac.core.dist.RemoteContainer |
bindNewContainer, bindTo, copy, equals, getByteCodeFor, getName, instantiates, invoke, isLocal, isLocal, launchRemoteGUI, resolve, setName, toString |
delegate
protected CORBARemoteContainerInterf delegate
- The CORBA stub where the job is to be delegated.
CORBARemoteContainerStub
public CORBARemoteContainerStub(CORBARemoteContainerInterf delegate)
- Create a new remote container stub.
instantiates
public int instantiates(java.lang.String className,
java.lang.Object[] args,
java.util.Vector classes,
java.lang.String[] fields,
java.lang.Object[] state)
- This method instantiates a className object.
Clients call it to remotely instantiate an object.
instantiates creates an object and returns its index.
This method is part of the RMIDistdInterf interface.
copy
public void copy(int index,
java.lang.String[] fields,
java.lang.Object[] state)
- Copy a state into a base object.
invoke
public java.lang.Object invoke(int index,
java.lang.String methodName,
java.lang.Object[] methodArgs)
- Invoke a method on a base object.
The base object is the remote counterpart of a local object
that has been remotely instantiated by the jac.dist.Distd daemon.
getClientStubWrappingChain
public java.util.Vector getClientStubWrappingChain(int index)
- Get a client stub wrapping chain for a given object.
This method is called whenever a daemon receives as a parameter
a reference to a remote object, to get the wrapping chain
(for instance an authentication wrapper, a verbose wrapper, ...)
needed to create a client stub for this remote reference.