#include <Options.h>
Collaboration diagram for Options:
Public Methods | |
Options () | |
Default Constructor. More... | |
~Options () | |
Destructor. More... | |
int | init (int argc, char *argv[]) |
Parse the command-line arguments and initialize the options. More... | |
int | service (void) const |
Service Mode. More... | |
unsigned int | debug (void) const |
Debug level for the Implementation Repository. More... | |
FILE * | output_file (void) const |
Returns the file where the IOR should be stored. More... | |
Repository_Configuration * | config (void) const |
Returns the configuration object. More... | |
char * | repository_mode (void) |
char * | file_name (void) const |
Returns the file addr. More... | |
const char * | convert_str (ImplementationRepository::ActivationMode mode) |
Converts the activation mode to a const char *. Needed to put the activation mode into the XML file or print it out. More... | |
ImplementationRepository::ActivationMode | convert_mode (const char *mode) |
const ACE_Time_Value & | startup_timeout (void) const |
Returns the timeout value for program starting. More... | |
const ACE_Time_Value & | ping_interval (void) const |
Returns the timeout value for program starting. More... | |
CORBA::ORB_ptr | orb (void) const |
Returns a pointer to the ORB. More... | |
int | multicast (void) const |
Will we listen for multicast location requests? More... | |
int | readonly (void) const |
Do we allow modifications to the servers? More... | |
Private Methods | |
int | parse_args (int &argc, char *argv[]) |
Parses and pulls out arguments for the ImR. More... | |
void | print_usage (void) const |
Print the usage information. More... | |
int | initialize_file_persistence (const char *filename) |
Initialize file persistence. More... | |
int | initialize_registry_persistence (void) |
Initialize Registry persistence. More... | |
int | initialize_non_persistence (void) |
Initialize default heap for no persistence. More... | |
int | initialize_xml_persistence (const char *file_name) |
Initialize XML file persistence. More... | |
int | run_service_command (const char *command) |
Run a service command. More... | |
int | load_registry_options (ACE_ARGV &orb_options) |
Loads ORB options from the registry. More... | |
Private Attributes | |
Repository_Configuration * | repo_config_ |
The persistent configuration object. More... | |
char | repo_mode_ |
Mode of the Server Repository: if XML (x) or non-XML (n). More... | |
char * | file_name_ |
The persistent file option. More... | |
unsigned int | debug_ |
Debug level. More... | |
FILE * | ior_output_file_ |
File where the IOR of the server object is stored. More... | |
int | multicast_ |
Will we listen for multicast location requests? More... | |
CORBA::ORB_var | orb_ |
The ORB for the Implementation Repository. More... | |
ACE_Time_Value | ping_interval_ |
The amount of time between successive "are you started yet?" pings. More... | |
int | service_ |
Are we running as a service? More... | |
ACE_Time_Value | startup_timeout_ |
The amount of time to wait for a server to response after starting it. More... | |
int | readonly_ |
Can the server_repository be modified? More... |
This is where all the settings for TAO's Implementation Repository is stored.
|
Default Constructor. Assigns default values to all the member variables. |
|
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.
|
|
Returns the file addr.
|
|
Parse the command-line arguments and initialize the options.
|
|
Initialize file persistence. Here we assign an ACE_Configuration_Heap object using
|
|
Initialize default heap for no persistence. Initializes this->repo_config_ to an opened ACE_Configuration_Heap.
|
|
Initialize Registry persistence. 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. 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.
|
|
Returns the timeout value for program starting.
|
|
Print the usage information.
|
|
Do we allow modifications to the servers?
|
|
|
|
Run a service command. 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.
|
|
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.
|