TAO_Implementation_Repository 4.0.3
Loading...
Searching...
No Matches
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.
 
int init_from_registry ()
 This version should only be used when run as an nt service.
 
bool service () const
 Service Mode.
 
bool notify_imr () const
 
unsigned int induce_delay () const
 
unsigned int debug () const
 Debug level for the Implementation Repository.
 
const ACE_TStringior_filename () const
 Returns the file where the IOR should be stored.
 
SERVICE_COMMAND service_command () const
 The nt service command to run (install/remove)
 
int save_registry_options ()
 Save the command line arguments as registry settings. (Windows only)
 
const char * cmdline () const
 
const ACE_CStringname () const
 
int env_buf_len () const
 
int max_env_vars () const
 
bool detach_child () const
 

Private Member Functions

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

Private Attributes

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

Member Enumeration Documentation

◆ ACTIVATOR_PROCESS

Enumerator
ENVIRONMENT_BUFFER 
ENVIRONMENT_MAX_VARS 

◆ SERVICE_COMMAND

Enumerator
SC_NONE 
SC_INSTALL 
SC_REMOVE 
SC_INSTALL_NO_LOCATOR 

Constructor & Destructor Documentation

◆ Activator_Options()

Activator_Options::Activator_Options ( )

Member Function Documentation

◆ cmdline()

const char * Activator_Options::cmdline ( ) const

◆ debug()

unsigned int Activator_Options::debug ( ) const

Debug level for the Implementation Repository.

◆ detach_child()

bool Activator_Options::detach_child ( ) const

◆ env_buf_len()

int Activator_Options::env_buf_len ( ) const

◆ induce_delay()

unsigned int Activator_Options::induce_delay ( ) const

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

◆ init()

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

Parse the command-line arguments and initialize the options.

◆ init_from_registry()

int Activator_Options::init_from_registry ( )

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

◆ ior_filename()

const ACE_TString & Activator_Options::ior_filename ( ) const

Returns the file where the IOR should be stored.

◆ load_registry_options()

int Activator_Options::load_registry_options ( )
private

Loads options from the registry.

◆ max_env_vars()

int Activator_Options::max_env_vars ( ) const

◆ name()

const ACE_CString & Activator_Options::name ( ) const

◆ notify_imr()

bool Activator_Options::notify_imr ( ) const

Notify the ImR when server processes die.

Note
Currently this only works on Unix.

◆ parse_args()

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

Parses and pulls out arguments for the ImR.

◆ print_usage()

void Activator_Options::print_usage ( ) const
private

Print the usage information.

◆ save_registry_options()

int Activator_Options::save_registry_options ( )

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

◆ service()

bool Activator_Options::service ( ) const

Service Mode.

◆ service_command()

Activator_Options::SERVICE_COMMAND Activator_Options::service_command ( ) const

The nt service command to run (install/remove)

Member Data Documentation

◆ cmdline_

ACE_CString Activator_Options::cmdline_
private

Our extra command line arguments.

◆ debug_

unsigned int Activator_Options::debug_
private

Debug level.

◆ detach_child_

bool Activator_Options::detach_child_
private

Control signal handling related to child processes.

◆ env_buf_len_

int Activator_Options::env_buf_len_
private

The default environment buffer length.

◆ induce_delay_

unsigned int Activator_Options::induce_delay_
private

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

◆ ior_output_file_

ACE_TString Activator_Options::ior_output_file_
private

File where the IOR of the server object is stored.

◆ max_env_vars_

int Activator_Options::max_env_vars_
private

Maximum number of environment variables.

◆ name_

ACE_CString Activator_Options::name_
private

◆ notify_imr_

bool Activator_Options::notify_imr_
private

Notify the ImR when server processes die.

Note
Currently this only works on Unix.

◆ service_

bool Activator_Options::service_
private

Should we run as a service?

◆ service_command_

SERVICE_COMMAND Activator_Options::service_command_
private

SC_NONE, SC_INSTALL, SC_REMOVE, ...


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