TAO_Implementation_Repository  2.4.2
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
Activator_Options Class Reference

#include <Activator_Options.h>

Collaboration diagram for Activator_Options:
Collaboration graph
[legend]

Public Types

enum  SERVICE_COMMAND { SC_NONE, SC_INSTALL, SC_REMOVE, SC_INSTALL_NO_LOCATOR }
 
enum  ACTIVATOR_PROCESS { ENVIRONMENT_BUFFER = 16 * 1024, ENVIRONMENT_MAX_VARS = 512 }
 

Public Member Functions

 Activator_Options ()
 
int init (int argc, ACE_TCHAR *argv[])
 Parse the command-line arguments and initialize the options. More...
 
int init_from_registry ()
 This version should only be used when run as an nt service. More...
 
bool service (void) const
 Service Mode. More...
 
bool notify_imr (void) const
 
unsigned int induce_delay (void) const
 
unsigned int debug (void) const
 Debug level for the Implementation Repository. More...
 
const ACE_TStringior_filename (void) const
 Returns the file where the IOR should be stored. More...
 
SERVICE_COMMAND service_command (void) const
 The nt service command to run (install/remove) More...
 
int save_registry_options ()
 Save the command line arguments as registry settings. (Windows only) More...
 
const char * cmdline (void) const
 
const ACE_CStringname (void) const
 
int env_buf_len (void) const
 
int max_env_vars (void) const
 
bool detach_child (void) const
 

Private Member Functions

int parse_args (int &argc, ACE_TCHAR *argv[])
 Parses and pulls out arguments for the ImR. More...
 
void print_usage (void) const
 Print the usage information. More...
 
int load_registry_options ()
 Loads options from the registry. More...
 

Private Attributes

ACE_CString cmdline_
 Our extra command line arguments. More...
 
unsigned int debug_
 Debug level. More...
 
ACE_TString ior_output_file_
 File where the IOR of the server object is stored. More...
 
bool service_
 Should we run as a service? More...
 
bool notify_imr_
 
unsigned int induce_delay_
 
SERVICE_COMMAND service_command_
 SC_NONE, SC_INSTALL, SC_REMOVE, ... More...
 
ACE_CString name_
 
int env_buf_len_
 The default environment buffer length. More...
 
int max_env_vars_
 Maximum number of environment variables. More...
 
bool detach_child_
 Control signal handling related to child processes. More...
 

Member Enumeration Documentation

Enumerator
ENVIRONMENT_BUFFER 
ENVIRONMENT_MAX_VARS 
Enumerator
SC_NONE 
SC_INSTALL 
SC_REMOVE 
SC_INSTALL_NO_LOCATOR 

Constructor & Destructor Documentation

Activator_Options::Activator_Options ( )

Member Function Documentation

const char * Activator_Options::cmdline ( void  ) const
unsigned int Activator_Options::debug ( void  ) const

Debug level for the Implementation Repository.

bool Activator_Options::detach_child ( void  ) const
int Activator_Options::env_buf_len ( void  ) const
unsigned int Activator_Options::induce_delay ( void  ) const

When notifying of child death, pause this number of milliseconds to simulate a heavily loaded server.

int Activator_Options::init ( int  argc,
ACE_TCHAR argv[] 
)

Parse the command-line arguments and initialize the options.

int Activator_Options::init_from_registry ( void  )

This version should only be used when run as an nt service.

const ACE_TString & Activator_Options::ior_filename ( void  ) const

Returns the file where the IOR should be stored.

int Activator_Options::load_registry_options ( )
private

Loads options from the registry.

int Activator_Options::max_env_vars ( void  ) const
const ACE_CString & Activator_Options::name ( void  ) const
bool Activator_Options::notify_imr ( void  ) const

Notify the ImR when server processes die. Note : Currently this only works on Unix.

int Activator_Options::parse_args ( int &  argc,
ACE_TCHAR argv[] 
)
private

Parses and pulls out arguments for the ImR.

void Activator_Options::print_usage ( void  ) const
private

Print the usage information.

int Activator_Options::save_registry_options ( )

Save the command line arguments as registry settings. (Windows only)

bool Activator_Options::service ( void  ) const

Service Mode.

Activator_Options::SERVICE_COMMAND Activator_Options::service_command ( void  ) const

The nt service command to run (install/remove)

Member Data Documentation

ACE_CString Activator_Options::cmdline_
private

Our extra command line arguments.

unsigned int Activator_Options::debug_
private

Debug level.

bool Activator_Options::detach_child_
private

Control signal handling related to child processes.

int Activator_Options::env_buf_len_
private

The default environment buffer length.

unsigned int Activator_Options::induce_delay_
private
ACE_TString Activator_Options::ior_output_file_
private

File where the IOR of the server object is stored.

int Activator_Options::max_env_vars_
private

Maximum number of environment variables.

ACE_CString Activator_Options::name_
private
bool Activator_Options::notify_imr_
private
bool Activator_Options::service_
private

Should we run as a service?

SERVICE_COMMAND Activator_Options::service_command_
private

SC_NONE, SC_INSTALL, SC_REMOVE, ...


The documentation for this class was generated from the following files: