Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages

# ImR_Locator_i Class Reference

`#include <ImR_Locator_i.h>`

Inheritance diagram for ImR_Locator_i:

[legend]
Collaboration diagram for ImR_Locator_i:

[legend]
List of all members.

## Public Methods
| ImR_Locator_i ()
int | init (ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS)
virtual CORBA::Long | register_activator (const char *activator, ImplementationRepository::Administration_ptr admin, const ImplementationRepository::Locator::ServerNameList &servers ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void | unregister_activator (const char *activator, CORBA::Long token ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
virtual void | activate_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)
virtual void | activate_server_in_activator (const char *server, const char *activator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)
virtual void | register_server (const char *server, const ImplementationRepository::StartupOptions &options ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::AlreadyRegistered, ImplementationRepository::NotFound)
virtual void | reregister_server (const char *server, const ImplementationRepository::StartupOptions &options ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException,ImplementationRepository::NotFound )
virtual void | remove_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | remove_server_in_activator (const char *server, const char *activator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | shutdown_server (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | shutdown_server_in_activator (const char *server, const char *activator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | server_is_running_in_activator (const char *server, const char *activator, const char *partial_ior, ImplementationRepository::ServerObject_ptr server_object ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | server_is_running (const char *server, const char *partial_ior, ImplementationRepository::ServerObject_ptr server_object ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | server_is_shutting_down (const char *server ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | server_is_shutting_down_in_activator (const char *server, const char *activator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
char * | find_ior (const char *object_name ACE_ENV_ARG_DECL) throw (CORBA::SystemException, ImplementationRepository::NotFound)
| IOR_LookupTable_Callback method helper. Will return an IOR.
virtual void | find (const char *server, ImplementationRepository::ServerInformation_out info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | find_in_activator (const char *server, const char *activator, ImplementationRepository::ServerInformation_out info ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound)
virtual void | list (CORBA::ULong how_many, ImplementationRepository::ServerInformationList_out server_list, ImplementationRepository::ServerInformationIterator_out server_iterator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException)
char * | activate_server_with_startup (const char *server, int check_startup ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)
## Private Methods
int | setup_multicast (ACE_Reactor *reactor, const char *ior)
ImplementationRepository::Administration_ptr | choose_activator (const char *activator ACE_ENV_ARG_DECL_WITH_DEFAULTS) throw (ImplementationRepository::NotFound, CORBA::SystemException)
## Private Attributes
ActivatorMap | activator_map_
ServerMap | server_map_
ImR_Forwarder * | forwarder_impl_
ImR_Adapter_Activator * | activator_
IORTable::Locator_var | ins_locator_
| The locator interface for the IORTable.

## Constructor & Destructor Documentation

ImR_Locator_i::ImR_Locator_i | ( |  | ) |

## Member Function Documentation

void ImR_Locator_i::activate_server | ( | const char *server | ACE_ENV_ARG_DECL_WITH_DEFAULTS | ) | throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::activate_server_in_activator | ( | const char * | server,
|  | const char *activator | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

char * ImR_Locator_i::activate_server_with_startup | ( | const char * | server,
|  | int check_startup | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound, ImplementationRepository::CannotActivate)

ImplementationRepository::Administration_ptr ImR_Locator_i::choose_activator | ( | const char *activator | ACE_ENV_ARG_DECL_WITH_DEFAULTS | ) | throw (ImplementationRepository::NotFound, CORBA::SystemException)`[private]`

void ImR_Locator_i::find | ( | const char * | server,
|  | ImplementationRepository::ServerInformation_out info | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::find_in_activator | ( | const char * | server,
|  | const char * | activator,
|  | ImplementationRepository::ServerInformation_out info | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

char * ImR_Locator_i::find_ior | ( | const char *object_name | ACE_ENV_ARG_DECL | ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| IOR_LookupTable_Callback method helper. Will return an IOR. Implements POA_ImplementationRepository::Administration.

int ImR_Locator_i::init | ( | ACE_ENV_SINGLE_ARG_DECL_WITH_DEFAULTS |  | ) |

void ImR_Locator_i::list | ( | CORBA::ULong | how_many,
|  | ImplementationRepository::ServerInformationList_out | server_list,
|  | ImplementationRepository::ServerInformationIterator_out server_iterator | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

CORBA::Long ImR_Locator_i::register_activator | ( | const char * | activator,
|  | ImplementationRepository::Administration_ptr | admin,
|  | const ImplementationRepository::Locator::ServerNameList &servers | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

void ImR_Locator_i::register_server | ( | const char * | server,
|  | const ImplementationRepository::StartupOptions &options | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::AlreadyRegistered, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::remove_server | ( | const char *server | ACE_ENV_ARG_DECL_WITH_DEFAULTS | ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::remove_server_in_activator | ( | const char * | server,
|  | const char *activator | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

void ImR_Locator_i::reregister_server | ( | const char * | server,
|  | const ImplementationRepository::StartupOptions &options | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException,ImplementationRepository::NotFound )`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::server_is_running | ( | const char * | server,
|  | const char * | partial_ior,
|  | ImplementationRepository::ServerObject_ptr server_object | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::server_is_running_in_activator | ( | const char * | server,
|  | const char * | activator,
|  | const char * | partial_ior,
|  | ImplementationRepository::ServerObject_ptr server_object | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

virtual void ImR_Locator_i::server_is_shutting_down | ( | const char *server | ACE_ENV_ARG_DECL_WITH_DEFAULTS | ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::server_is_shutting_down_in_activator | ( | const char * | server,
|  | const char *activator | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

int ImR_Locator_i::setup_multicast | ( | ACE_Reactor * | reactor,
|  | const char * | ior
| ) | `[private]`

  | First, figure out if we should set up a multicast handler (based on command line settings) and which port to set it up (based on the environment, command line, or the default IMPLREPOSERVICE port). Then register the handler with the Parameters:
  reactor. |
  Return values:
  0 | ok
  -1 | failed

void ImR_Locator_i::shutdown_server | ( | const char *server | ACE_ENV_ARG_DECL_WITH_DEFAULTS | ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Administration.

void ImR_Locator_i::shutdown_server_in_activator | ( | const char * | server,
|  | const char *activator | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException, ImplementationRepository::NotFound)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

void ImR_Locator_i::unregister_activator | ( | const char * | activator,
|  | CORBA::Long token | ACE_ENV_ARG_DECL_WITH_DEFAULTS
| ) | throw (CORBA::SystemException)`[virtual]`

| Implements POA_ImplementationRepository::Locator.

## Member Data Documentation

ImR_Adapter_Activator* ImR_Locator_i::activator_`[private]`

ActivatorMap ImR_Locator_i::activator_map_`[private]`

ImR_Forwarder* ImR_Locator_i::forwarder_impl_`[private]`

IORTable::Locator_var ImR_Locator_i::ins_locator_`[private]`

| The locator interface for the IORTable.

ServerMap ImR_Locator_i::server_map_`[private]`

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

- ImR_Locator_i.h
- ImR_Locator_i.cpp