#include <Options.h>
Collaboration diagram for Options:

Public Methods | |
| Options () | |
| Default Constructor. | |
| ~Options () | |
| Destructor. | |
| int | init (int argc, char *argv[]) |
| Parse the command-line arguments and initialize the options. | |
| int | service (void) const |
| Service Mode. | |
| unsigned int | debug (void) const |
| Debug level for the Implementation Repository. | |
| FILE * | output_file (void) const |
| Returns the file where the IOR should be stored. | |
| Repository_Configuration * | config (void) const |
| Returns the configuration object. | |
| char * | repository_mode (void) |
| char * | file_name (void) const |
| Returns the file addr. | |
| const char * | convert_str (ImplementationRepository::ActivationMode mode) |
| ImplementationRepository::ActivationMode | convert_mode (const char *mode) |
| const ACE_Time_Value & | startup_timeout (void) const |
| Returns the timeout value for program starting. | |
| const ACE_Time_Value & | ping_interval (void) const |
| Returns the timeout value for program starting. | |
| CORBA::ORB_ptr | orb (void) const |
| Returns a pointer to the ORB. | |
| int | multicast (void) const |
| Will we listen for multicast location requests? | |
| int | readonly (void) const |
| Do we allow modifications to the servers? | |
Private Methods | |
| int | parse_args (int &argc, char *argv[]) |
| Parses and pulls out arguments for the ImR. | |
| void | print_usage (void) const |
| Print the usage information. | |
| int | initialize_file_persistence (const char *filename) |
| Initialize file persistence. | |
| int | initialize_registry_persistence (void) |
| Initialize Registry persistence. | |
| int | initialize_non_persistence (void) |
| Initialize default heap for no persistence. | |
| int | initialize_xml_persistence (const char *file_name) |
| Initialize XML file persistence. | |
| int | run_service_command (const char *command) |
| Run a service command. | |
| int | load_registry_options (ACE_ARGV &orb_options) |
| Loads ORB options from the registry. | |
Private Attributes | |
| Repository_Configuration * | repo_config_ |
| The persistent configuration object. | |
| char | repo_mode_ |
| Mode of the Server Repository: if XML (x) or non-XML (n). | |
| char * | file_name_ |
| The persistent file option. | |
| unsigned int | debug_ |
| Debug level. | |
| FILE * | ior_output_file_ |
| File where the IOR of the server object is stored. | |
| int | multicast_ |
| Will we listen for multicast location requests? | |
| CORBA::ORB_var | orb_ |
| The ORB for the Implementation Repository. | |
| ACE_Time_Value | ping_interval_ |
| The amount of time between successive "are you started yet?" pings. | |
| int | service_ |
| Are we running as a service? | |
| ACE_Time_Value | startup_timeout_ |
| The amount of time to wait for a server to response after starting it. | |
| int | readonly_ |
| Can the server_repository be modified? | |
This is where all the settings for TAO's Implementation Repository is stored.
|
|
Default Constructor. Default Constructor. Assigns default values to all the member variables. |
|
|
Destructor. Destructor. Just deletes this->repo_config_. |
|
|
Returns the configuration object.
|
|
|
|
|
|
Converts the activation mode to a const char *. Needed to put the activation mode into the XML file or print it out. |
|
|
Debug level for the Implementation Repository. Debug level for the IR.
|
|
|
Returns the file addr.
|
|
||||||||||||
|
Parse the command-line arguments and initialize the options.
|
|
|
Initialize file persistence. The most portable form of persistence is file persistence. Here we assign an ACE_Configuration_Heap object using
|
|
|
Initialize default heap for no persistence. In cases where persistence isn't needed, create an object of the ACE_Configuration_Heap class to be used. Initializes this->repo_config_ to an opened ACE_Configuration_Heap.
|
|
|
Initialize Registry persistence. On Windows, we have the option of using the Registry to store the server data. Assigns a ACE_Configuration_Win32Registry to this->repo_config_. On non-Win32 systems, just returns an error.
|
|
|
Initialize XML file persistence.
|
|
|
Loads ORB options from the registry. We will only load from the registry if we are a service. The location we store options in is HKEY_LOCAL_MACHINE: SYSTEM\CurrentControlSet\Services\TAOImplRepo\Parameters The only key currently supported is ORBOptions
|
|
|
Will we listen for multicast location requests?
|
|
|
Returns a pointer to the ORB.
|
|
|
Returns the file where the IOR should be stored.
|
|
||||||||||||
|
Parses and pulls out arguments for the ImR. parse_args uses an ACE_Arg_Shifter to grab all the options that are specific to the ImR.
|
|
|
Returns the timeout value for program starting.
|
|
|
Print the usage information. Just print out the usage message to STDERR |
|
|
Do we allow modifications to the servers?
|
|
|
|
|
|
Run a service command. Executes the various commands that are useful for a NT service. Right now these include 'install' and 'remove'. Others, such as 'start' and 'stop' can be added, but the 'net' program in Windows already handles these commands.
|
|
|
Service Mode. Standalone Mode
|
|
|
Returns the timeout value for program starting.
|
|
|
Debug level.
|
|
|
The persistent file option.
|
|
|
File where the IOR of the server object is stored.
|
|
|
Will we listen for multicast location requests?
|
|
|
The ORB for the Implementation Repository.
|
|
|
The amount of time between successive "are you started yet?" pings.
|
|
|
Can the server_repository be modified?
|
|
|
The persistent configuration object.
|
|
|
Mode of the Server Repository: if XML (x) or non-XML (n).
|
|
|
Are we running as a service?
|
|
|
The amount of time to wait for a server to response after starting it.
|
1.2.18