TAO 4.0.0
|
Generic Connector interface definitions. More...
#include <Transport_Connector.h>
Public Member Functions | |
TAO_Connector (CORBA::ULong tag) | |
Default constructor. | |
virtual | ~TAO_Connector () |
The destructor. | |
CORBA::ULong | tag () const |
int | make_mprofile (const char *ior, TAO_MProfile &mprofile) |
virtual TAO_Profile * | corbaloc_scan (const char *ior, size_t &len) |
virtual int | open (TAO_ORB_Core *orb_core)=0 |
Initialize object and register with reactor. | |
virtual int | close ()=0 |
Shutdown Connector bridge and concrete Connector. | |
virtual TAO_Transport * | connect (TAO::Profile_Transport_Resolver *r, TAO_Transport_Descriptor_Interface *desc, ACE_Time_Value *timeout) |
virtual TAO_Transport * | parallel_connect (TAO::Profile_Transport_Resolver *r, TAO_Transport_Descriptor_Interface *desc, ACE_Time_Value *timeout) |
virtual TAO_Profile * | create_profile (TAO_InputCDR &cdr)=0 |
virtual int | check_prefix (const char *endpoint)=0 |
virtual char | object_key_delimiter () const =0 |
Return the object key delimiter to use or expect. | |
Protected Attributes | |
TAO_Connect_Strategy * | active_connect_strategy_ |
The (a)synch connect strategy. | |
Private Attributes | |
CORBA::ULong const | tag_ |
IOP protocol tag. | |
TAO_ORB_Core * | orb_core_ |
Pointer to our ORB core. | |
Generic Connector interface definitions.
Base class for connector bridge object.
TAO_Connector::TAO_Connector | ( | CORBA::ULong | tag | ) |
Default constructor.
|
virtual |
The destructor.
|
protectedpure virtual |
Cancel the passed svc_handler from the connector.
|
protectedvirtual |
Check whether the connection is not closed.
0 | The connection happens to be not closed, but is now open because an other thread managed to open the handler |
-1 | The connection is closed |
|
pure virtual |
Check that the prefix of the provided endpoint is valid for use with a given pluggable protocol.
|
protected |
For a parallel connection attempt, any pending connection attempts present when the connection completes needs to be cleaned up. In some cases this happens before wait_for_connection_completion needs to be called, so the clean up logic is separated out here.
|
pure virtual |
Shutdown Connector bridge and concrete Connector.
|
virtual |
To support pluggable we need to abstract away the details of the connect () method so it can be called from the invocation code independent of the actual transport protocol in use.
|
virtual |
Helper function to assist corbaloc parsing. The default simply validates the protocol identifier and scans up to the next comma or slash. Any protocol that has a specific need, such as uiop, can override this method to provide a custom scanner. The profile returned is either null if this the ior does not match or an empty profile of the correct type, obtained from make_profile().
|
protected |
Create a connect strategy.
|
pure virtual |
Create a profile for this protocol and initialize it based on the encapsulation in cdr
|
protectedpure virtual |
Make a connection.
int TAO_Connector::make_mprofile | ( | const char * | ior, |
TAO_MProfile & | mprofile ) |
Parse a string containing a URL style IOR and return an MProfile. Verify that ior is in the correct format.
|
protectedvirtual |
Make a connection using - not a pure virtual since not all protocols support this.
|
protectedpure virtual |
Create a profile with a given endpoint.
|
protected |
See if a new connection is allowed.
|
pure virtual |
Return the object key delimiter to use or expect.
|
pure virtual |
Initialize object and register with reactor.
|
protected |
Return the TAO_ORB_Core pointer.
|
protected |
Set the ORB Core pointer.
|
virtual |
A variation on connect that will try simultaneous connections on all endpoints listed in the desc.
|
protectedpure virtual |
Set and validate endpoint. We need to do this to initialize our remote *_Addr's which have not been done during IOR decode.
|
protectedvirtual |
A flag indicating the actual connector supports parallel connection attempts. The base implementation always returns 0. Override to return non-zero if parallel connection attempts may be tried.
CORBA::ULong TAO_Connector::tag | ( | ) | const |
The tag identifying the specific ORB transport layer protocol. For example IOP::TAG_INTERNET_IOP == 0. The tag is used in the IOR to identify the type of profile included. IOR -> {{tag0, profile0} {tag1, profile1} ...}. The IOP module defines the ProfileId typedef to be a CORBA::ULong.
|
protectedvirtual |
In the case of a parallel connection attempt, we take an array of transports, and wait on any of them. When the first one completes, the rest are closed.
|
protectedvirtual |
Wait for connection completion. We have a transport that is not connected yet, wait until it is connected.
true | When we could use transport |
|
protected |
Wait for a transport to be connected Note: no longer changes transport reference count
true | if wait was uneventful |
false | if error occurred during wait |
|
protected |
The (a)synch connect strategy.
|
private |
Pointer to our ORB core.
|
private |
IOP protocol tag.