TAO_Naming_Server Class ReferenceDefines a wrapper class that holds the root Naming Context. More...
Collaboration diagram for TAO_Naming_Server:
Detailed DescriptionDefines a wrapper class that holds the root Naming Context.This class either finds an existing Naming Service (if the <resolve_for_existing_naming_service> flag is set) or creates one (if <resolve_for_existing_naming_service> flag isn't set or Naming Service was not found). This class also defines the operator-> so that <NamingContext> functions like <bind>, <unbind> .. can be called directly on a <TAO_Naming_Server> object, and be forwareded to the root Naming Context. This class is intended to simplify programs that want to play the role of a Naming Service server. To simplify programs that want to play the role of Naming Service clients, use <TAO_Naming_Client>. If a Naming Service is created locally, a TAO_IOR_Multicast event handler is created and installed on the ORB's reactor. This event handler allows other clients on the network to discover and use this Naming Service. Event handler listens on a multicast port for messages from clients looking for a Naming Service, and sends back the ior of the root Naming Context. For more information on how this bootstraping through a multicast process works, check out orbsvcs/orbsvcs/TAO_IOR_Multicast.*, implementation of <resolve_initial_references>, and orbsvcs/Naming/README. Constructor & Destructor Documentation
Default constructor.
Constructor. Attempts to find an existing Naming Service if <resolve_for_existing_naming_service> is set to true. If it is false, or no Naming Service was found during a <timeout> period, create the Naming Service in this process. If creating the Naming Service locally, make the root context of size <context_size>, register it under the <poa>, and make the Naming Service persistent if <persistence_location> is not 0. (<persistence_location> specifies name of the file to use for persistent storage, <base_addr> specifies the address used for memory mapping <persistent_location> file). If <enable_multicast> is not zero then the service will respond to multicast location queries.
Destructor.
Member Function Documentation
Initializer. Attempts to find an existing Naming Service if <resolve_for_existing_naming_service> is set to true. If it is false, or no Naming Service was found during a <timeout> period, create the Naming Service in this process. If creating the Naming Service locally, make the root context of size <context_size>, register it under the <poa>, and make the Naming Service persistent if <persistence_location> is not 0. (<persistence_location> specifies name of the file to use for persistent storage, <base_addr> specifies the address used for memory mapping <persistent_location> file). If <enable_multicast> is not zero then the service will respond to multicast location queries.
Initialize the Naming Service with the command line arguments and the ORB.
Destroy the child POA created in <init_with_orb>.
Returns the IOR of the naming service.
Returns a <NamingContext_ptr> for the root Naming Context.
Helper method: create Naming Service locally. Make the root context of size <context_size>, register it under the <root_poa>, and make the Naming Service persistent if <persistence_location> is not 0. (<persistence_location> specifies name of the file to use for persistent storage). If <enable_multicast> is not zero then the service will respond to multicast location queries.
parses the arguments.
Member Data Documentation
Root NamingContext_ptr.
The ior_multicast event handler.
The IOR string of the root naming context.
The ORB.
The Root POA.
The Naming Service POA.
File to output the Naming Service IOR.
File to output the process id.
Size of the hash_table allocated upon the creation of the Naming Service context (if one is created). Note: all the contexts created under the given context will use the same size for their initial hash table allocations.
If not zero multicast is enabled.
Pointer to the object used to create/initialize the Naming Service when local persistent Naming Service is desired.
Path to the file to be used to store/read in Naming Service persistent state.
Address to be used for memory mapping Naming Service state file, identified by the <persistence_file_name_>.
If not zero use flat file persistence.
If not zero use servant activator that uses flat file persistence. Need to retain the servant activator between calls to init_with_orb() and init_new_naming().
If not zero support redundant naming servers.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 08:42:00 2008 for TAO_CosNaming by 1.5.5 |