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

Quick Search    Search Deep

jac.core.dist.corba
Class CORBARemoteContainer  view CORBARemoteContainer download CORBARemoteContainer.java

java.lang.Object
  extended byjac.core.dist.RemoteContainer
      extended byjac.core.dist.corba.CORBARemoteContainer
All Implemented Interfaces:
java.io.Serializable

public class CORBARemoteContainer
extends jac.core.dist.RemoteContainer

CORBARemoteContainer is a container for remote objects that can be accessed with CORBA. CORBARemoteContainer instances are created by CORBADistd.

Version:
0.8.1

Field Summary
 
Fields inherited from class jac.core.dist.RemoteContainer
name, namingClassDefaultName, namingClassProp, verbose
 
Constructor Summary
CORBARemoteContainer(boolean verbose)
          Create a new container.
CORBARemoteContainer(java.lang.String className, boolean verbose)
          Create a new container.
 
Method Summary
 void copy(int index, java.lang.String[] fields, byte[][] state)
          Copy a state into a base object.
 byte[] getClientStubWrappingChain2(int index)
          Get a client stub wrapping chain for a given object.
 int instantiates(java.lang.String className, byte[][] args, byte[] classes, java.lang.String[] fields, byte[][] state)
          This method instantiates a className object.
 byte[] invoke(int index, java.lang.String methodName, byte[][] methodArgs)
          Invoke a method on a base object.
 
Methods inherited from class jac.core.dist.RemoteContainer
bindNewContainer, bindTo, copy, equals, getByteCodeFor, getName, instantiates, invoke, isLocal, isLocal, launchRemoteGUI, resolve, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CORBARemoteContainer

public CORBARemoteContainer(boolean verbose)
Create a new container.


CORBARemoteContainer

public CORBARemoteContainer(java.lang.String className,
                            boolean verbose)
Create a new container.

Method Detail

instantiates

public int instantiates(java.lang.String className,
                        byte[][] args,
                        byte[] classes,
                        java.lang.String[] fields,
                        byte[][] 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 CORBARemoteContainerInterf interface.


copy

public void copy(int index,
                 java.lang.String[] fields,
                 byte[][] state)
Copy a state into a base object.


invoke

public byte[] invoke(int index,
                     java.lang.String methodName,
                     byte[][] 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 a remote container. This method is part of the CORBARemoteContainerInterf interface.


getClientStubWrappingChain2

public byte[] getClientStubWrappingChain2(int index)
Get a client stub wrapping chain for a given object. This method is part of the CORBADistdInterf interface. 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. CORBARemoteContainer.getClientStubWrappingChain2 has a different return type than RemoteContainer.getClientStubWrappingChain (byte[] instead of Vector). Nevertheless, the latter is supposed to be the super method of the former. But because polymorphism on return type is not handled in Java, The method is called getClientStubWrappingChain2 instead of getClientStubWrappingChain.