JAC project
AOPSYS
CEDRIC & LIP6 labs

org.objectweb.jac.core.dist.corba
Class CORBADistd

java.lang.Object
  |
  +--org.objectweb.jac.core.dist.Distd
        |
        +--org.objectweb.jac.core.dist.corba.CORBADistd

public class CORBADistd
extends Distd

CORBADistd is a jac daemon that support the IIOP communication protocol. Daemons hold containers (only one for the moment) which themselves hold remote objects.

Author:
Renaud Pawlak, Lionel Seinturier

Field Summary
protected static String cosNamingEntryType
          The string used to identify the type of objects registered in the COS Naming.
protected  NamingContext nc
          The root naming context of the COSNaming.
protected  ORB orb
          The CORBA ORB.
protected  org.omg.PortableServer.POA poa
          The CORBA root POA.
 
Fields inherited from class org.objectweb.jac.core.dist.Distd
containers, flags, inputCount, localContainerName, options, outputCount, referenceContainerName, verbose
 
Constructor Summary
CORBADistd(String[] args)
          The is the main constructor.
 
Method Summary
 void init()
          This method initializes the CORBA environment.
static void main(String[] args)
           
 void newContainer(String name)
          This method creates a new container.
 void newContainer(String name, String className)
          This method creates a new container and instantiates a given class.
protected  void registerContainer(CORBARemoteContainer container, String name)
          This method register a container in the CORBA COSNaming.
 void run()
          This method enters the event loop of the underlying communication protocol.
 
Methods inherited from class org.objectweb.jac.core.dist.Distd
containsContainer, getFullHostName, getLocalContainerName, parseArguments, stringArrayToHashtable, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orb

protected ORB orb
The CORBA ORB.


poa

protected org.omg.PortableServer.POA poa
The CORBA root POA.


nc

protected NamingContext nc
The root naming context of the COSNaming.


cosNamingEntryType

protected static final String cosNamingEntryType
The string used to identify the type of objects registered in the COS Naming.

See Also:
Constant Field Values
Constructor Detail

CORBADistd

public CORBADistd(String[] args)
The is the main constructor.

Parameters:
args - command line arguments
Method Detail

init

public void init()
This method initializes the CORBA environment.

Specified by:
init in class Distd

newContainer

public void newContainer(String name)
This method creates a new container.

Specified by:
newContainer in class Distd
Parameters:
name - the identifier of the container
Returns:
the container reference

registerContainer

protected void registerContainer(CORBARemoteContainer container,
                                 String name)
This method register a container in the CORBA COSNaming.

Parameters:
container - the container
name - the identifier of the container

newContainer

public void newContainer(String name,
                         String className)
This method creates a new container and instantiates a given class.

Specified by:
newContainer in class Distd
Parameters:
name - the identifier of the container
className - the name of the class to instantiate
Returns:
the container reference

run

public void run()
This method enters the event loop of the underlying communication protocol.

Specified by:
run in class Distd

main

public static void main(String[] args)

Contact JAC development team:
Renaud Pawlak
Lionel Seinturier
Laurent Martelli