#include <Service_Participant.h>
Inheritance diagram for OpenDDS::DCPS::Service_Participant:


This class is a singleton that allows DDS client applications to configure OpenDDS. This includes running the ORB to support OpenDDS.
set_ORB() before calling get_domain_particpant_factory() and will run the ORB *or* it will not call set_ORB() first and get_domain_particpant_factory() will automatically create an ORB to be used by OpenDDS and will run that ORB in a thread it creates.This class may read a configuration file that will configure Transports as well as DCPS (e.g. number of ORB threads).
| typedef std::map< ::DDS::DomainId_t, RepoKey> OpenDDS::DCPS::Service_Participant::DomainRepoMap |
The DomainId to RepoKey mapping.
| typedef int OpenDDS::DCPS::Service_Participant::RepoKey |
Key type for storing repository objects.
| typedef std::map< RepoKey, DCPSInfo_var> OpenDDS::DCPS::Service_Participant::RepoMap |
The DomainId to DCPSInfo/repository object references container.
| typedef std::map< RepoKey, ACE_TString> OpenDDS::DCPS::Service_Participant::RepoTransportIpMap |
The builtin topic transport address.
| typedef std::map< RepoKey, TransportImpl_rch> OpenDDS::DCPS::Service_Participant::RepoTransportMap |
The mapping from repository key to transport implementations.
| typedef std::map< RepoKey, int> OpenDDS::DCPS::Service_Participant::RepoTransportPortMap |
The builtin topic transport port number.
| OpenDDS::DCPS::Service_Participant::Service_Participant | ( | ) |
Constructor.
| OpenDDS::DCPS::Service_Participant::~Service_Participant | ( | ) |
Destructor.
| void OpenDDS::DCPS::Service_Participant::association_chunk_multiplier | ( | size_t | multiplier | ) |
See accessor description.
| size_t OpenDDS::DCPS::Service_Participant::association_chunk_multiplier | ( | ) | const |
This accessor is to provide the multiplier for allocators that have resources used on a per association basis. Has a default, can be set by the -DCPSChunkAssociationMutltiplier option, or by n_association_chunk_multiplier() setter.
| void OpenDDS::DCPS::Service_Participant::bit_lookup_duration_msec | ( | int | msec | ) |
Accessor for bit_lookup_duration_msec_. The accessor is used for client application to configure the timeout for lookup data from the builtin topic datareader. Value is in milliseconds.
| int OpenDDS::DCPS::Service_Participant::bit_lookup_duration_msec | ( | ) | const |
Accessor for bit_lookup_duration_msec_. The accessor is used for client application to configure the timeout for lookup data from the builtin topic datareader. Value is in milliseconds.
| TransportImpl_rch OpenDDS::DCPS::Service_Participant::bit_transport_impl | ( | ::DDS::DomainId_t | domain = ANY_DOMAIN |
) |
Accessor of the TransportImpl used by the builtin topics.
| void OpenDDS::DCPS::Service_Participant::bit_transport_port | ( | int | port, | |
| RepoKey | repo = DEFAULT_REPO | |||
| ) |
Accessors for bit_transport_port_.
The accessor is used for client application to configure the local transport listening port number.
| int OpenDDS::DCPS::Service_Participant::bit_transport_port | ( | RepoKey | repo = DEFAULT_REPO |
) | const |
Accessors for bit_transport_port_.
The accessor is used for client application to configure the local transport listening port number.
| ACE_INLINE const Service_Participant::RepoKey OpenDDS::DCPS::Service_Participant::domain_to_repo | ( | const ::DDS::DomainId_t | domain | ) | const |
Convert domainId to repository key.
| ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_backoff_multiplier | ( | ) | const |
Accessors for FederationBackoffMultiplier.
| ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_backoff_multiplier | ( | ) |
Accessors for FederationBackoffMultiplier.
| ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_initial_backoff_seconds | ( | ) | const |
Accessors for FederationInitialBackoffSeconds.
| ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_initial_backoff_seconds | ( | ) |
Accessors for FederationInitialBackoffSeconds.
| ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_liveliness | ( | ) | const |
Accessors for FederationLivelinessDuration.
| ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_liveliness | ( | ) |
Accessors for FederationLivelinessDuration.
| ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_recovery_duration | ( | ) | const |
Accessors for FederationRecoveryDuration in seconds.
| ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_recovery_duration | ( | ) |
Accessors for FederationRecoveryDuration in seconds.
| bool OpenDDS::DCPS::Service_Participant::get_BIT | ( | ) | [inline] |
| DataDurabilityCache * OpenDDS::DCPS::Service_Participant::get_data_durability_cache | ( | ::DDS::DurabilityQosPolicy const & | durability | ) |
Get the data durability cache corresponding to the given DurabilityQosPolicy and sample list depth.
| DDS::DomainParticipantFactory_ptr OpenDDS::DCPS::Service_Participant::get_domain_participant_factory | ( | int & | argc = zero_argc, |
|
| ACE_TCHAR * | argv[] = 0 | |||
| ) |
Initialize the DDS client environment and get the DomainParticipantFactory.
This method consumes -DCPS* options and thier arguments. Unless the client/application code calls other methods to define how the ORB is run, calling this method will initiallize the ORB and then run it in a separate thread.
| CORBA::ORB_ptr OpenDDS::DCPS::Service_Participant::get_ORB | ( | ) |
Get the ORB used by OpenDDS.
Only valid after set_ORB() or get_domain_participant_factory() called.
| DCPSInfo_ptr OpenDDS::DCPS::Service_Participant::get_repository | ( | const ::DDS::DomainId_t | domain | ) |
Accessor of the DCPSInfo object reference.
| int OpenDDS::DCPS::Service_Participant::init_bit_transport_impl | ( | RepoKey | repo = DEFAULT_REPO |
) |
Create the TransportImpl for all builtin topics.
| ACE_INLINE::DDS::DataReaderQos OpenDDS::DCPS::Service_Participant::initial_DataReaderQos | ( | ) | const |
| ACE_INLINE::DDS::DataWriterQos OpenDDS::DCPS::Service_Participant::initial_DataWriterQos | ( | ) | const |
| ACE_INLINE::DDS::DeadlineQosPolicy OpenDDS::DCPS::Service_Participant::initial_DeadlineQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::DestinationOrderQosPolicy OpenDDS::DCPS::Service_Participant::initial_DestinationOrderQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::DomainParticipantQos OpenDDS::DCPS::Service_Participant::initial_DomainParticipantQos | ( | ) | const |
| ACE_INLINE::DDS::DurabilityQosPolicy OpenDDS::DCPS::Service_Participant::initial_DurabilityQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::DurabilityServiceQosPolicy OpenDDS::DCPS::Service_Participant::initial_DurabilityServiceQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::EntityFactoryQosPolicy OpenDDS::DCPS::Service_Participant::initial_EntityFactoryQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::GroupDataQosPolicy OpenDDS::DCPS::Service_Participant::initial_GroupDataQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::HistoryQosPolicy OpenDDS::DCPS::Service_Participant::initial_HistoryQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::LatencyBudgetQosPolicy OpenDDS::DCPS::Service_Participant::initial_LatencyBudgetQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::LifespanQosPolicy OpenDDS::DCPS::Service_Participant::initial_LifespanQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::LivelinessQosPolicy OpenDDS::DCPS::Service_Participant::initial_LivelinessQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::OwnershipQosPolicy OpenDDS::DCPS::Service_Participant::initial_OwnershipQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::OwnershipStrengthQosPolicy OpenDDS::DCPS::Service_Participant::initial_OwnershipStrengthQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::PartitionQosPolicy OpenDDS::DCPS::Service_Participant::initial_PartitionQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::PresentationQosPolicy OpenDDS::DCPS::Service_Participant::initial_PresentationQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::PublisherQos OpenDDS::DCPS::Service_Participant::initial_PublisherQos | ( | ) | const |
| ACE_INLINE::DDS::ReaderDataLifecycleQosPolicy OpenDDS::DCPS::Service_Participant::initial_ReaderDataLifecycleQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::ReliabilityQosPolicy OpenDDS::DCPS::Service_Participant::initial_ReliabilityQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::ResourceLimitsQosPolicy OpenDDS::DCPS::Service_Participant::initial_ResourceLimitsQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::SubscriberQos OpenDDS::DCPS::Service_Participant::initial_SubscriberQos | ( | ) | const |
| ACE_INLINE::DDS::TimeBasedFilterQosPolicy OpenDDS::DCPS::Service_Participant::initial_TimeBasedFilterQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::TopicDataQosPolicy OpenDDS::DCPS::Service_Participant::initial_TopicDataQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::TopicQos OpenDDS::DCPS::Service_Participant::initial_TopicQos | ( | ) | const |
| ACE_INLINE::DDS::TransportPriorityQosPolicy OpenDDS::DCPS::Service_Participant::initial_TransportPriorityQosPolicy | ( | ) | const |
| ACE_INLINE::DDS::UserDataQosPolicy OpenDDS::DCPS::Service_Participant::initial_UserDataQosPolicy | ( | ) | const |
Accessors of the qos policy initial values.
| ACE_INLINE::DDS::WriterDataLifecycleQosPolicy OpenDDS::DCPS::Service_Participant::initial_WriterDataLifecycleQosPolicy | ( | ) | const |
| void OpenDDS::DCPS::Service_Participant::initialize | ( | ) | [private] |
Initalize default qos.
| Service_Participant * OpenDDS::DCPS::Service_Participant::instance | ( | void | ) | [static] |
Return a singleton instance of this class.
| int OpenDDS::DCPS::Service_Participant::liveliness_factor | ( | ) | const |
Accessor of the Liveliness propagation delay factor.
| void OpenDDS::DCPS::Service_Participant::liveliness_factor | ( | int | factor | ) |
Set the Liveliness propagation delay factor.
| factor | % of lease period before sending a liveliness message. |
| int OpenDDS::DCPS::Service_Participant::load_common_configuration | ( | ) | [private] |
Load the common configuration to the Service_Participant singleton.
| int OpenDDS::DCPS::Service_Participant::load_configuration | ( | ) | [private] |
Import the configuration file to the ACE_Configuration_Heap object and load common section configuration to the Service_Participant singleton and load the factory and transport section configuration to the TransportFactory singleton.
| int OpenDDS::DCPS::Service_Participant::load_domain_configuration | ( | ) | [private] |
Load the domain configuration to the Service_Participant singleton.
: Check this conversion.
: Check this conversion.
| int OpenDDS::DCPS::Service_Participant::load_repo_configuration | ( | ) | [private] |
Load the repository configuration to the Service_Participant singleton.
: Check this conversion.
| void OpenDDS::DCPS::Service_Participant::n_chunks | ( | size_t | chunks | ) |
| size_t OpenDDS::DCPS::Service_Participant::n_chunks | ( | ) | const |
This accessor is to provide the configurable number of chunks that a DataWriter's cached allocator need to allocate when the resource limits are infinite. Has a default, can be set by the -DCPSChunks option, or by n_chunks() setter.
| int OpenDDS::DCPS::Service_Participant::parse_args | ( | int & | argc, | |
| ACE_TCHAR * | argv[] | |||
| ) | [private] |
Parse the command line for user options. e.g. "-DCPSInfo <iorfile>". It consumes -DCPS* options and thier arguments
| void OpenDDS::DCPS::Service_Participant::remap_domains | ( | const RepoKey | oldKey, | |
| const RepoKey | newKey | |||
| ) |
Rebind a domain from one repository to another.
| void OpenDDS::DCPS::Service_Participant::repository_lost | ( | const RepoKey | key | ) |
Failover to a new repository.
| void OpenDDS::DCPS::Service_Participant::set_BIT | ( | bool | b | ) | [inline] |
| int OpenDDS::DCPS::Service_Participant::set_ORB | ( | CORBA::ORB_ptr | orb | ) |
Client provides an ORB for the OpenDDS client to use.
| void OpenDDS::DCPS::Service_Participant::set_repo | ( | DCPSInfo_ptr | repo, | |
| const RepoKey | key = DEFAULT_REPO | |||
| ) |
Load DCPSInfoRepo reference directly.
| void OpenDDS::DCPS::Service_Participant::set_repo_domain | ( | const ::DDS::DomainId_t | domain, | |
| const RepoKey | repo | |||
| ) |
Bind DCPSInfoRepo IORs to domains.
| void OpenDDS::DCPS::Service_Participant::set_repo_ior | ( | const ACE_TCHAR * | ior, | |
| const RepoKey | key = DEFAULT_REPO | |||
| ) |
Load DCPSInfoRepo IORs.
| void OpenDDS::DCPS::Service_Participant::shutdown | ( | ) |
Stop being a participant in the service.
Will shutdown the ORB unless it was given via set_ORB().
| int OpenDDS::DCPS::Service_Participant::svc | ( | ) | [virtual] |
Launch a thread to run the orb.
| PortableServer::POA_ptr OpenDDS::DCPS::Service_Participant::the_poa | ( | ) |
Accessor of the poa that application used.
The configurable value of maximum number of expected associations for publishers and subscribers. This is used to pre allocate enough memory and reduce heap allocations.
The timeout for lookup data from the builtin topic DataReader.
| ACE_Configuration_Heap OpenDDS::DCPS::Service_Participant::cf_ |
The configuration object that imports the configuration file.
| ::DDS::DomainParticipantFactory_var OpenDDS::DCPS::Service_Participant::dp_factory_ |
The domain participant factory object reference.
The domain participant factory servant.
Allocate the factory on the heap to avoid the circular dependency since the OpenDDS::DCPS::DomainParticipantFactoryImpl constructor calls the OpenDDS::DCPS::Service_Participant singleton.
| TAO_SYNCH_MUTEX OpenDDS::DCPS::Service_Participant::factory_lock_ |
The lock to serialize DomainParticipantFactory singleton creation and shutdown.
This FederationBackoffMultiplier.
The FederationInitialBackoffSeconds value.
This FederationLivelinessDuration.
The FederationRecoveryDuration value in seconds.
| ::DDS::DestinationOrderQosPolicy OpenDDS::DCPS::Service_Participant::initial_DestinationOrderQosPolicy_ |