TAO_Implementation_Repository
2.1.5
|
Maintains the global options. More...
#include <Locator_Options.h>
Public Types | |
enum | SERVICE_COMMAND { SC_NONE, SC_INSTALL, SC_REMOVE } |
enum | RepoMode { REPO_NONE, REPO_XML_FILE, REPO_HEAP_FILE, REPO_REGISTRY } |
Public Member Functions | |
Options () | |
int | init (int argc, ACE_TCHAR *argv[]) |
Parse the command-line arguments and initialize the options. | |
int | init_from_registry () |
This version should only be used when run as an nt service. | |
bool | service (void) const |
Service Mode. | |
unsigned int | debug (void) const |
Debug level for the Implementation Repository. | |
const ACE_TString & | ior_filename (void) const |
Returns the file where the IOR should be stored. | |
bool | multicast (void) const |
Will we listen for multicast location requests? | |
SERVICE_COMMAND | service_command (void) const |
The nt service command to run (install/remove) | |
int | save_registry_options () |
const char * | cmdline (void) const |
const ACE_TString & | persist_file_name (void) const |
bool | readonly (void) const |
Do we allow modifications to the servers? | |
RepoMode | repository_mode (void) const |
bool | repository_erase (void) const |
Do we wish to clear out the repository. | |
ACE_Time_Value | startup_timeout (void) const |
Returns the timeout value for program starting. | |
ACE_Time_Value | ping_interval (void) const |
bool | unregister_if_address_reused (void) const |
Private Member Functions | |
int | parse_args (int &argc, ACE_TCHAR *argv[]) |
Parses and pulls out arguments for the ImR. | |
void | print_usage (void) const |
Print the usage information. | |
int | run_service_command (const ACE_TString &cmdline) |
Run a service command. | |
int | load_registry_options () |
Private Attributes | |
RepoMode | repo_mode_ |
xml, heap, or registry | |
bool | erase_repo_ |
Do we clear out the repository on load. | |
unsigned int | debug_ |
Debug level. | |
ACE_TString | ior_output_file_ |
File where the IOR of the server object is stored. | |
bool | multicast_ |
Will we listen for multicast location requests? | |
bool | service_ |
Are we running as a service? | |
ACE_Time_Value | ping_interval_ |
The amount of time between successive "are you started yet?" pings. | |
ACE_Time_Value | startup_timeout_ |
The amount of time to wait for a server to response after starting it. | |
bool | readonly_ |
Can the server_repository be modified? | |
SERVICE_COMMAND | service_command_ |
SC_NONE, SC_INSTALL, SC_REMOVE, ... | |
ACE_CString | cmdline_ |
Our extra command line arguments. | |
ACE_TString | persist_file_name_ |
The persistent XML file name. | |
bool | unregister_if_address_reused_ |
Maintains the global options.
This is where all the settings for TAO's Implementation Repository are stored.
This is where the settings for TAO's Implementation Repository are stored.
enum Options::RepoMode |
Options::Options | ( | ) |
const char * Options::cmdline | ( | void | ) | const |
unsigned int Options::debug | ( | void | ) | const |
Debug level for the Implementation Repository.
int Options::init | ( | int | argc, |
ACE_TCHAR * | argv[] | ||
) |
Parse the command-line arguments and initialize the options.
int Options::init_from_registry | ( | void | ) |
This version should only be used when run as an nt service.
const ACE_TString & Options::ior_filename | ( | void | ) | const |
Returns the file where the IOR should be stored.
|
private |
bool Options::multicast | ( | void | ) | const |
Will we listen for multicast location requests?
|
private |
Parses and pulls out arguments for the ImR.
const ACE_TString & Options::persist_file_name | ( | void | ) | const |
File that contains the activator related information that the persistent locator has to save.
ACE_Time_Value Options::ping_interval | ( | void | ) | const |
If the server hasn't been verified for a while, then we'll ping it. Note : No timers are currently used. We simply ping() during indirect invocations, if this interval has elapsed.
|
private |
Print the usage information.
bool Options::readonly | ( | void | ) | const |
Do we allow modifications to the servers?
bool Options::repository_erase | ( | void | ) | const |
Do we wish to clear out the repository.
Options::RepoMode Options::repository_mode | ( | void | ) | const |
|
private |
Run a service command.
int Options::save_registry_options | ( | ) |
bool Options::service | ( | void | ) | const |
Service Mode.
Options::SERVICE_COMMAND Options::service_command | ( | void | ) | const |
The nt service command to run (install/remove)
ACE_Time_Value Options::startup_timeout | ( | void | ) | const |
Returns the timeout value for program starting.
bool Options::unregister_if_address_reused | ( | void | ) | const |
|
private |
Our extra command line arguments.
|
private |
Debug level.
|
private |
Do we clear out the repository on load.
|
private |
File where the IOR of the server object is stored.
|
private |
Will we listen for multicast location requests?
|
private |
The persistent XML file name.
|
private |
The amount of time between successive "are you started yet?" pings.
|
private |
Can the server_repository be modified?
|
private |
xml, heap, or registry
|
private |
Are we running as a service?
|
private |
SC_NONE, SC_INSTALL, SC_REMOVE, ...
|
private |
The amount of time to wait for a server to response after starting it.
|
private |
Should check the server address and remove previous server if the address is reused.