TAO_Implementation_Repository 4.0.3
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Server_Info Struct Reference

Information about IMR registered servers. More...

#include <Server_Info.h>

Collaboration diagram for Server_Info:
Collaboration graph
[legend]

Public Member Functions

 Server_Info ()
 
 Server_Info (const Server_Info &other)
 
 Server_Info (const ACE_CString &fqname, const ACE_CString &aname, const ACE_CString &cmdline, const ImplementationRepository::EnvironmentList &env, const ACE_CString &working_dir, ImplementationRepository::ActivationMode amode, int start_limit, const ACE_CString &partial_ior=ACE_CString(""), const ACE_CString &server_ior=ACE_CString(""), ImplementationRepository::ServerObject_ptr svrobj=ImplementationRepository::ServerObject::_nil())
 
 Server_Info (const ACE_CString &serverId, const ACE_CString &pname, bool jacorb, Server_Info_Ptr alt)
 
Server_Infooperator= (const Server_Info &other)
 
void clear ()
 
void setImRInfo (ImplementationRepository::ServerInformation *info) const
 Convert to the corba type.
 
ImplementationRepository::ServerInformation * createImRServerInfo () const
 
void reset_runtime ()
 
bool is_server (const char *name) const
 
bool has_peer (const char *name) const
 
bool is_mode (ImplementationRepository::ActivationMode m) const
 
ImplementationRepository::ActivationMode mode () const
 
bool is_running () const
 
bool start_allowed ()
 
void started (bool success)
 
void start_limit (int lim)
 
void update_options (const ImplementationRepository::StartupOptions &options)
 
void set_contact (const char *pior, const char *sior, ImplementationRepository::ServerObject_ptr svrobj)
 
Server_Infoactive_info ()
 
const Server_Infoactive_info () const
 
const char * ping_id () const
 

Static Public Member Functions

static bool parse_id (const char *id, ACE_CString &server_id, ACE_CString &poa_name)
 
static void gen_id (const Server_Info *si, ACE_CString &id)
 
static void gen_key (const ACE_CString &server_id, const ACE_CString &poa_name, ACE_CString &key)
 
static void fqname_to_key (const char *fqname, ACE_CString &key)
 

Public Attributes

ACE_CString server_id
 The name of the server instance.
 
ACE_CString poa_name
 the name of the poa
 
bool is_jacorb
 true if the server is JacORB
 
ACE_CString key_name_
 The fully qualified name of this info, combines the serverID and POA name.
 
ACE_CString activator
 The name of the activator in which this server runs.
 
ACE_CString cmdline
 The command line startup command (program and arguments).
 
ImplementationRepository::EnvironmentList env_vars
 Environment Variables.
 
ACE_CString dir
 The working directory.
 
ImplementationRepository::ActivationMode activation_mode_
 The type of activation this supports.
 
int start_limit_
 Limit of retries to start the server.
 
int start_count_
 Current number of start attempts.
 
ACE_CString partial_ior
 Current endpoint used by the server.
 
ACE_CString ior
 IOR of the server object in the server.
 
ACE_Time_Value last_ping
 The timestamp of the last time we verified the server is alive.
 
ImplementationRepository::ServerObject_var server
 The cached server object.
 
CORBA::StringSeq peers
 A comma separated list of additional POAs bound to this server.
 
Server_Info_Ptr alt_info_
 Alternate server info for sharing startup info between linked POAs.
 
int pid
 Last known process ID reported by the activator.
 
bool death_notify
 The locator should expect a notification on server death from activator.
 

Detailed Description

Information about IMR registered servers.

Constructor & Destructor Documentation

◆ Server_Info() [1/4]

Server_Info::Server_Info ( )

◆ Server_Info() [2/4]

Server_Info::Server_Info ( const Server_Info & other)

◆ Server_Info() [3/4]

Server_Info::Server_Info ( const ACE_CString & fqname,
const ACE_CString & aname,
const ACE_CString & cmdline,
const ImplementationRepository::EnvironmentList & env,
const ACE_CString & working_dir,
ImplementationRepository::ActivationMode amode,
int start_limit,
const ACE_CString & partial_ior = ACE_CString(""),
const ACE_CString & server_ior = ACE_CString(""),
ImplementationRepository::ServerObject_ptr svrobj = ImplementationRepository::ServerObject::_nil() )

◆ Server_Info() [4/4]

Server_Info::Server_Info ( const ACE_CString & serverId,
const ACE_CString & pname,
bool jacorb,
Server_Info_Ptr alt )

Member Function Documentation

◆ active_info() [1/2]

Server_Info * Server_Info::active_info ( )

◆ active_info() [2/2]

const Server_Info * Server_Info::active_info ( ) const

◆ clear()

void Server_Info::clear ( )

◆ createImRServerInfo()

ImplementationRepository::ServerInformation * Server_Info::createImRServerInfo ( ) const

◆ fqname_to_key()

void Server_Info::fqname_to_key ( const char * fqname,
ACE_CString & key )
static

◆ gen_id()

void Server_Info::gen_id ( const Server_Info * si,
ACE_CString & id )
static

◆ gen_key()

void Server_Info::gen_key ( const ACE_CString & server_id,
const ACE_CString & poa_name,
ACE_CString & key )
static

◆ has_peer()

bool Server_Info::has_peer ( const char * name) const

◆ is_mode()

bool Server_Info::is_mode ( ImplementationRepository::ActivationMode m) const

◆ is_running()

bool Server_Info::is_running ( ) const

◆ is_server()

bool Server_Info::is_server ( const char * name) const

◆ mode()

ImplementationRepository::ActivationMode Server_Info::mode ( ) const

◆ operator=()

Server_Info & Server_Info::operator= ( const Server_Info & other)

◆ parse_id()

bool Server_Info::parse_id ( const char * id,
ACE_CString & server_id,
ACE_CString & poa_name )
static

◆ ping_id()

const char * Server_Info::ping_id ( ) const

◆ reset_runtime()

void Server_Info::reset_runtime ( )

◆ set_contact()

void Server_Info::set_contact ( const char * pior,
const char * sior,
ImplementationRepository::ServerObject_ptr svrobj )

◆ setImRInfo()

void Server_Info::setImRInfo ( ImplementationRepository::ServerInformation * info) const

Convert to the corba type.

◆ start_allowed()

bool Server_Info::start_allowed ( )

◆ start_limit()

void Server_Info::start_limit ( int lim)

◆ started()

void Server_Info::started ( bool success)

◆ update_options()

void Server_Info::update_options ( const ImplementationRepository::StartupOptions & options)

Member Data Documentation

◆ activation_mode_

ImplementationRepository::ActivationMode Server_Info::activation_mode_

The type of activation this supports.

◆ activator

ACE_CString Server_Info::activator

The name of the activator in which this server runs.

◆ alt_info_

Server_Info_Ptr Server_Info::alt_info_

Alternate server info for sharing startup info between linked POAs.

◆ cmdline

ACE_CString Server_Info::cmdline

The command line startup command (program and arguments).

◆ death_notify

bool Server_Info::death_notify

The locator should expect a notification on server death from activator.

◆ dir

ACE_CString Server_Info::dir

The working directory.

◆ env_vars

ImplementationRepository::EnvironmentList Server_Info::env_vars

Environment Variables.

◆ ior

ACE_CString Server_Info::ior

IOR of the server object in the server.

◆ is_jacorb

bool Server_Info::is_jacorb

true if the server is JacORB

◆ key_name_

ACE_CString Server_Info::key_name_

The fully qualified name of this info, combines the serverID and POA name.

◆ last_ping

ACE_Time_Value Server_Info::last_ping

The timestamp of the last time we verified the server is alive.

◆ partial_ior

ACE_CString Server_Info::partial_ior

Current endpoint used by the server.

◆ peers

CORBA::StringSeq Server_Info::peers

A comma separated list of additional POAs bound to this server.

◆ pid

int Server_Info::pid

Last known process ID reported by the activator.

◆ poa_name

ACE_CString Server_Info::poa_name

the name of the poa

◆ server

ImplementationRepository::ServerObject_var Server_Info::server

The cached server object.

◆ server_id

ACE_CString Server_Info::server_id

The name of the server instance.

◆ start_count_

int Server_Info::start_count_

Current number of start attempts.

◆ start_limit_

int Server_Info::start_limit_

Limit of retries to start the server.


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