TAO 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TAO_Acceptor_Registry Class Reference

Acceptor Registry and Generic Acceptor interface definitions. All loaded ESIOP or GIOP acceptor bridges must register with this object. More...

#include <Acceptor_Registry.h>

Collaboration diagram for TAO_Acceptor_Registry:
Collaboration graph
[legend]

Public Member Functions

 TAO_Acceptor_Registry ()=default
 Default constructor.
 
 ~TAO_Acceptor_Registry ()
 Default destructor.
 
int open (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, const TAO_EndpointSet &endpoint_set, bool ignore_address)
 Initialize all registered acceptors. Return -1 on error.
 
int close_all ()
 Close all open acceptors.
 
size_t endpoint_count ()
 Returns the total number of endpoints in all of its acceptors.
 
bool is_collocated (const TAO_MProfile &mprofile)
 
TAO_Acceptorget_acceptor (CORBA::ULong tag)
 Return the acceptor bridges.
 
TAO_AcceptorSetIterator begin ()
 
TAO_AcceptorSetIterator end ()
 

Private Member Functions

 TAO_Acceptor_Registry (const TAO_Acceptor_Registry &)=delete
 
TAO_Acceptor_Registryoperator= (const TAO_Acceptor_Registry &)=delete
 
int open_default (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, const char *options)
 Create a default acceptor for all loaded protocols.
 
int open_default (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, int major, int minor, TAO_ProtocolFactorySetItor &factory, const char *options)
 Create a default acceptor using the specified protocol factory.
 
int open_default_i (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, int major, int minor, TAO_ProtocolFactorySetItor &factory, TAO_Acceptor *acceptor, const char *options)
 Open a default acceptor.
 
void extract_endpoint_options (ACE_CString &addrs, ACE_CString &options, TAO_Protocol_Factory *factory)
 Extract endpoint-specific options from the endpoint string.
 
void extract_endpoint_version (ACE_CString &address, int &major, int &minor)
 
int open_i (TAO_ORB_Core *orb_core, ACE_Reactor *reactor, ACE_CString &address, TAO_ProtocolFactorySetItor &factory, bool ignore_address)
 

Private Attributes

TAO_Acceptor ** acceptors_ {}
 List of acceptors that are currently open.
 
size_t size_ {}
 Number of acceptors that are currently open.
 

Detailed Description

Acceptor Registry and Generic Acceptor interface definitions. All loaded ESIOP or GIOP acceptor bridges must register with this object.

This class maintains a list of acceptor factories for all loaded ORB protocols. There is one Acceptor_Registry per ORB_Core.

Constructor & Destructor Documentation

◆ TAO_Acceptor_Registry() [1/2]

TAO_Acceptor_Registry::TAO_Acceptor_Registry ( )
default

Default constructor.

◆ ~TAO_Acceptor_Registry()

TAO_Acceptor_Registry::~TAO_Acceptor_Registry ( )

Default destructor.

◆ TAO_Acceptor_Registry() [2/2]

TAO_Acceptor_Registry::TAO_Acceptor_Registry ( const TAO_Acceptor_Registry & )
privatedelete

Member Function Documentation

◆ begin()

TAO_AcceptorSetIterator TAO_Acceptor_Registry::begin ( )

◆ close_all()

int TAO_Acceptor_Registry::close_all ( )

Close all open acceptors.

◆ end()

TAO_AcceptorSetIterator TAO_Acceptor_Registry::end ( )

◆ endpoint_count()

size_t TAO_Acceptor_Registry::endpoint_count ( )

Returns the total number of endpoints in all of its acceptors.

◆ extract_endpoint_options()

void TAO_Acceptor_Registry::extract_endpoint_options ( ACE_CString & addrs,
ACE_CString & options,
TAO_Protocol_Factory * factory )
private

Extract endpoint-specific options from the endpoint string.

◆ extract_endpoint_version()

void TAO_Acceptor_Registry::extract_endpoint_version ( ACE_CString & address,
int & major,
int & minor )
private

Extract endpoint/address specific version from the endpoint string.

◆ get_acceptor()

TAO_Acceptor * TAO_Acceptor_Registry::get_acceptor ( CORBA::ULong tag)

Return the acceptor bridges.

◆ is_collocated()

bool TAO_Acceptor_Registry::is_collocated ( const TAO_MProfile & mprofile)

Check if there is at least one profile in mprofile that corresponds to a collocated object.

◆ open()

int TAO_Acceptor_Registry::open ( TAO_ORB_Core * orb_core,
ACE_Reactor * reactor,
const TAO_EndpointSet & endpoint_set,
bool ignore_address )

Initialize all registered acceptors. Return -1 on error.

◆ open_default() [1/2]

int TAO_Acceptor_Registry::open_default ( TAO_ORB_Core * orb_core,
ACE_Reactor * reactor,
const char * options )
private

Create a default acceptor for all loaded protocols.

◆ open_default() [2/2]

int TAO_Acceptor_Registry::open_default ( TAO_ORB_Core * orb_core,
ACE_Reactor * reactor,
int major,
int minor,
TAO_ProtocolFactorySetItor & factory,
const char * options )
private

Create a default acceptor using the specified protocol factory.

◆ open_default_i()

int TAO_Acceptor_Registry::open_default_i ( TAO_ORB_Core * orb_core,
ACE_Reactor * reactor,
int major,
int minor,
TAO_ProtocolFactorySetItor & factory,
TAO_Acceptor * acceptor,
const char * options )
private

Open a default acceptor.

◆ open_i()

int TAO_Acceptor_Registry::open_i ( TAO_ORB_Core * orb_core,
ACE_Reactor * reactor,
ACE_CString & address,
TAO_ProtocolFactorySetItor & factory,
bool ignore_address )
private

Iterator through addrs in the string <iop>, and create an acceptor for each one.

◆ operator=()

TAO_Acceptor_Registry & TAO_Acceptor_Registry::operator= ( const TAO_Acceptor_Registry & )
privatedelete

Member Data Documentation

◆ acceptors_

TAO_Acceptor** TAO_Acceptor_Registry::acceptors_ {}
private

List of acceptors that are currently open.

◆ size_

size_t TAO_Acceptor_Registry::size_ {}
private

Number of acceptors that are currently open.


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