OpenDDS
Snapshot(2023/04/07-19:43)
|
Service entrypoint. More...
#include <Service_Participant.h>
Classes | |
struct | DiscoveryInfo |
struct | DomainRange |
Public Types | |
enum | { ANY_DOMAIN = -1 } |
Domain value for the default repository IOR. More... | |
enum | TypeObjectEncoding { Encoding_Normal, Encoding_WriteOldFormat, Encoding_ReadOldFormat } |
Static Public Member Functions | |
static Service_Participant * | instance () |
Return a singleton instance of this class. More... | |
Public Attributes | |
MonitorFactory * | monitor_factory_ |
unique_ptr< Monitor > | monitor_ |
Pointer to the monitor object for this object. More... | |
Static Private Attributes | |
static int | zero_argc = 0 |
Service entrypoint.
This class is a singleton that allows DDS client applications to configure OpenDDS.
Definition at line 70 of file Service_Participant.h.
anonymous enum |
Domain value for the default repository IOR.
Enumerator | |
---|---|
ANY_DOMAIN |
Definition at line 73 of file Service_Participant.h.
Enumerator | |
---|---|
Encoding_Normal | |
Encoding_WriteOldFormat | |
Encoding_ReadOldFormat |
Definition at line 459 of file Service_Participant.h.
OpenDDS::DCPS::Service_Participant::Service_Participant | ( | ) |
Definition at line 176 of file Service_Participant.cpp.
References ACE_TEXT(), if(), and initialize().
OpenDDS::DCPS::Service_Participant::~Service_Participant | ( | ) |
Definition at line 227 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR, ACE_GUARD, OpenDDS::DCPS::DCPS_debug_level, dp_factory_servant_, factory_lock_, LM_DEBUG, LM_WARNING, OpenDDS::DCPS::log_level, DDS::RETCODE_ALREADY_DELETED, DDS::RETCODE_OK, OpenDDS::DCPS::retcode_to_string(), shutdown(), and OpenDDS::DCPS::LogLevel::Warning.
void OpenDDS::DCPS::Service_Participant::add_discovery | ( | Discovery_rch | discovery | ) |
Definition at line 2801 of file Service_Participant.cpp.
References ACE_GUARD, discoveryMap_, and maps_lock_.
Referenced by load_configuration().
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 -DCPSChunkAssociationMultiplier
option, or by n_association_chunk_multiplier()
setter.
Definition at line 1500 of file Service_Participant.cpp.
References association_chunk_multiplier_.
void OpenDDS::DCPS::Service_Participant::association_chunk_multiplier | ( | size_t | multiplier | ) |
Set the value returned by n_association_chunk_multiplier()
accessor. See accessor description.
Definition at line 1506 of file Service_Participant.cpp.
References association_chunk_multiplier_.
bool OpenDDS::DCPS::Service_Participant::belongs_to_domain_range | ( | DDS::DomainId_t | domainId | ) | const |
Used by TransportRegistry to determine if a domain ID is part of a [DomainRange]
Definition at line 2360 of file Service_Participant.cpp.
References OPENDDS_VECTOR().
DDS::Duration_t OpenDDS::DCPS::Service_Participant::bit_autopurge_disposed_samples_delay | ( | ) | const |
Definition at line 2928 of file Service_Participant.cpp.
References bit_autopurge_disposed_samples_delay_.
void OpenDDS::DCPS::Service_Participant::bit_autopurge_disposed_samples_delay | ( | const DDS::Duration_t & | duration | ) |
Definition at line 2934 of file Service_Participant.cpp.
References bit_autopurge_disposed_samples_delay_.
DDS::Duration_t OpenDDS::DCPS::Service_Participant::bit_autopurge_nowriter_samples_delay | ( | ) | const |
Definition at line 2916 of file Service_Participant.cpp.
References bit_autopurge_nowriter_samples_delay_.
void OpenDDS::DCPS::Service_Participant::bit_autopurge_nowriter_samples_delay | ( | const DDS::Duration_t & | duration | ) |
Definition at line 2922 of file Service_Participant.cpp.
References bit_autopurge_nowriter_samples_delay_.
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.
Definition at line 1474 of file Service_Participant.cpp.
References bit_lookup_duration_msec_.
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.
Definition at line 1480 of file Service_Participant.cpp.
References bit_lookup_duration_msec_.
OPENDDS_STRING OpenDDS::DCPS::Service_Participant::bit_transport_ip | ( | ) | const |
Definition at line 1454 of file Service_Participant.cpp.
References ACE_TEXT_ALWAYS_CHAR, bit_transport_ip_, and ACE_String_Base< char >::c_str().
int OpenDDS::DCPS::Service_Participant::bit_transport_port | ( | ) | const |
Accessors for bit_transport_port_
.
The accessor is used for client application to configure the local transport listening port number.
Definition at line 1460 of file Service_Participant.cpp.
References bit_transport_port_.
void OpenDDS::DCPS::Service_Participant::bit_transport_port | ( | int | port | ) |
Accessors for bit_transport_port_
.
The accessor is used for client application to configure the local transport listening port number.
Definition at line 1466 of file Service_Participant.cpp.
References ACE_GUARD, bit_transport_port_, and maps_lock_.
|
private |
Create and load a discovery config from a discovery template
Definition at line 2421 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_CHAR_TO_TCHAR, OpenDDS::DCPS::DCPS_debug_level, discoveryMap_, get_discovery_template_instance_name(), LM_DEBUG, LM_ERROR, load_discovery_configuration(), name, ACE_Configuration_Heap::open(), ACE_Configuration_Heap::open_section(), process_customizations(), ACE_Configuration::root_section(), and ACE_Configuration_Heap::set_string_value().
Referenced by get_discovery().
|
private |
Process the domain range template and activate the domain for the given domain ID
Definition at line 2244 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_CHAR_TO_TCHAR, OpenDDS::DCPS::TransportRegistry::create_transport_template_instance(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Service_Participant::DomainRange::discovery_template_name, discoveryMap_, OpenDDS::DCPS::Service_Participant::DomainRange::domain_info, OpenDDS::DCPS::TransportRegistry::get_config_instance_name(), get_discovery_template_instance_name(), get_domain_range_info(), get_transport_base_config_name(), OpenDDS::DCPS::TransportRegistry::instance(), LM_DEBUG, LM_ERROR, load_discovery_configuration(), load_domain_configuration(), name, ACE_Configuration_Heap::open(), ACE_Configuration_Heap::open_section(), OPENDDS_STRING, process_customizations(), ACE_Configuration::root_section(), ACE_Configuration_Heap::set_string_value(), OpenDDS::DCPS::to_dds_string(), and OpenDDS::DCPS::Service_Participant::DomainRange::transport_config_name.
Referenced by get_discovery().
Recorder_ptr OpenDDS::DCPS::Service_Participant::create_recorder | ( | DDS::DomainParticipant_ptr | participant, |
DDS::Topic_ptr | a_topic, | ||
const DDS::SubscriberQos & | subscriber_qos, | ||
const DDS::DataReaderQos & | datareader_qos, | ||
const RecorderListener_rch & | a_listener | ||
) |
Create a Recorder object.
Definition at line 2828 of file Service_Participant.cpp.
References OpenDDS::DCPS::DomainParticipantImpl::create_recorder().
Replayer_ptr OpenDDS::DCPS::Service_Participant::create_replayer | ( | DDS::DomainParticipant_ptr | participant, |
DDS::Topic_ptr | a_topic, | ||
const DDS::PublisherQos & | publisher_qos, | ||
const DDS::DataWriterQos & | datawriter_qos, | ||
const ReplayerListener_rch & | a_listener | ||
) |
Create a Replayer object
Definition at line 2853 of file Service_Participant.cpp.
References OpenDDS::DCPS::DomainParticipantImpl::create_replayer().
DDS::Topic_ptr OpenDDS::DCPS::Service_Participant::create_typeless_topic | ( | DDS::DomainParticipant_ptr | participant, |
const char * | topic_name, | ||
const char * | type_name, | ||
bool | type_has_keys, | ||
const DDS::TopicQos & | qos, | ||
DDS::TopicListener_ptr | a_listener = 0 , |
||
DDS::StatusMask | mask = 0 |
||
) |
Create a topic that does not have the data type registered.
Definition at line 2877 of file Service_Participant.cpp.
References OpenDDS::DCPS::DomainParticipantImpl::create_typeless_topic().
|
inline |
Definition at line 337 of file Service_Participant.h.
References OpenDDS::DCPS::OPENDDS_MAP().
void OpenDDS::DCPS::Service_Participant::default_configuration_file | ( | const ACE_TCHAR * | path | ) |
Set a configuration file to use if -DCPSConfigFile wasn't passed to TheParticipantFactoryWithArgs. Must be used before TheParticipantFactory*() functions are called.
Definition at line 2893 of file Service_Participant.cpp.
References default_configuration_file_.
DDS::ReturnCode_t OpenDDS::DCPS::Service_Participant::delete_recorder | ( | Recorder_ptr | recorder | ) |
Delete an existing Recorder from its DomainParticipant.
Definition at line 2841 of file Service_Participant.cpp.
References OpenDDS::DCPS::RecorderImpl::cleanup(), OpenDDS::DCPS::DomainParticipantImpl::delete_recorder(), OpenDDS::DCPS::RecorderImpl::participant(), and DDS::RETCODE_ERROR.
DDS::ReturnCode_t OpenDDS::DCPS::Service_Participant::delete_replayer | ( | Replayer_ptr | replayer | ) |
Delete an existing Replayer from its DomainParticipant.
Definition at line 2866 of file Service_Participant.cpp.
References OpenDDS::DCPS::ReplayerImpl::cleanup(), OpenDDS::DCPS::DomainParticipantImpl::delete_replayer(), OpenDDS::DCPS::ReplayerImpl::participant(), and DDS::RETCODE_ERROR.
const Service_Participant::RepoKeyDiscoveryMap & OpenDDS::DCPS::Service_Participant::discoveryMap | ( | ) | const |
Definition at line 2816 of file Service_Participant.cpp.
References discoveryMap_.
ACE_INLINE Discovery::RepoKey OpenDDS::DCPS::Service_Participant::domain_to_repo | ( | const DDS::DomainId_t | domain | ) | const |
Convert domainId to repository key.
Definition at line 15 of file Service_Participant.inl.
References ACE_INLINE, OpenDDS::DCPS::Discovery::DEFAULT_REPO, and domainRepoMap_.
const Service_Participant::DomainRepoMap & OpenDDS::DCPS::Service_Participant::domainRepoMap | ( | ) | const |
Definition at line 2822 of file Service_Participant.cpp.
References domainRepoMap_.
ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_backoff_multiplier | ( | ) |
Accessors for FederationBackoffMultiplier.
Definition at line 283 of file Service_Participant.inl.
References ACE_INLINE, and federation_backoff_multiplier_.
Referenced by repository_lost().
ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_backoff_multiplier | ( | ) | const |
Accessors for FederationBackoffMultiplier.
Definition at line 290 of file Service_Participant.inl.
References ACE_INLINE, and federation_backoff_multiplier_.
ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_initial_backoff_seconds | ( | ) |
Accessors for FederationInitialBackoffSeconds.
Definition at line 269 of file Service_Participant.inl.
References ACE_INLINE, and federation_initial_backoff_seconds_.
Referenced by repository_lost().
ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_initial_backoff_seconds | ( | ) | const |
Accessors for FederationInitialBackoffSeconds.
Definition at line 276 of file Service_Participant.inl.
References ACE_INLINE, and federation_initial_backoff_seconds_.
ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_liveliness | ( | ) |
Accessors for FederationLivelinessDuration.
Definition at line 297 of file Service_Participant.inl.
References ACE_INLINE, and federation_liveliness_.
ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_liveliness | ( | ) | const |
Accessors for FederationLivelinessDuration.
Definition at line 304 of file Service_Participant.inl.
References ACE_INLINE, and federation_liveliness_.
ACE_INLINE int & OpenDDS::DCPS::Service_Participant::federation_recovery_duration | ( | ) |
Accessors for FederationRecoveryDuration in seconds.
Definition at line 255 of file Service_Participant.inl.
References ACE_INLINE, and federation_recovery_duration_.
Referenced by repository_lost().
ACE_INLINE int OpenDDS::DCPS::Service_Participant::federation_recovery_duration | ( | ) | const |
Accessors for FederationRecoveryDuration in seconds.
Definition at line 262 of file Service_Participant.inl.
References ACE_INLINE, and federation_recovery_duration_.
|
inline |
Definition at line 329 of file Service_Participant.h.
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.
Definition at line 2752 of file Service_Participant.cpp.
References ACE_ERROR, ACE_GUARD_RETURN, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, factory_lock_, DDS::DurabilityQosPolicy::kind, LM_WARNING, persistent_data_cache_, persistent_data_dir_, DDS::PERSISTENT_DURABILITY_QOS, transient_data_cache_, and DDS::TRANSIENT_DURABILITY_QOS.
Discovery::RepoKey OpenDDS::DCPS::Service_Participant::get_default_discovery | ( | ) |
Definition at line 1301 of file Service_Participant.cpp.
References defaultDiscovery_.
Discovery_rch OpenDDS::DCPS::Service_Participant::get_discovery | ( | const DDS::DomainId_t | domain | ) |
Accessor of the Discovery object for a given domain.
Definition at line 1307 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR, ACE_GUARD_RETURN, ACE_TEXT(), configure_discovery_template(), configure_domain_range_instance(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Discovery::DEFAULT_REPO, OpenDDS::DCPS::Discovery::DEFAULT_RTPS, defaultDiscovery_, discoveryMap_, domainRepoMap_, get_discovery_template_instance_name(), get_domain_range_info(), is_discovery_template(), LM_DEBUG, LM_ERROR, load_discovery_configuration(), maps_lock_, ACE_Configuration_Heap::open(), ACE_Configuration_Heap::open_section(), OPENDDS_STRING, ACE_Configuration::root_section(), OpenDDS::DCPS::RTPS_SECTION_NAME, and set_repo_ior().
Referenced by InfoRepo::init().
|
private |
Definition at line 2719 of file Service_Participant.cpp.
References OpenDDS::DCPS::to_dds_string().
Referenced by configure_discovery_template(), configure_domain_range_instance(), and get_discovery().
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*
and -ORB* options and their arguments.
: Move ORB initialization to after the configuration file is processed and the initial scheduling policy and priority are established.
Definition at line 405 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR, ACE_GUARD_RETURN, ACE_TEXT(), ACE_VERSION, ACE_ARGV_T< CHAR_TYPE >::add(), ACE_String_Base< char >::c_str(), OpenDDS::DCPS::NetworkConfigMonitor::close(), ACE::compiler_beta_version(), ACE::compiler_major_version(), ACE::compiler_minor_version(), ACE::compiler_name(), OpenDDS::DCPS::config_fname, OpenDDS::DCPS::NetworkConfigMonitor::connect(), ACE_Arg_Shifter_T< class >::consume_arg(), OpenDDS::DCPS::MonitorFactory::create_sp_monitor(), ACE_Arg_Shifter_T< class >::cur_arg_strncasecmp(), OpenDDS::DCPS::DCPS_debug_level, default_configuration_file_, OpenDDS::DCPS::NetworkConfigMonitor::disconnect(), dp_factory_servant_, OpenDDS::DCPS::LogLevel::Error, factory_lock_, ACE_OS::fclose(), ACE_OS::fopen(), OpenDDS::DCPS::LogLevel::get_as_string(), ACE_Arg_Shifter_T< class >::get_current(), OpenDDS::DCPS::ReactorTask::get_reactor(), ACE_Arg_Shifter_T< class >::ignore_arg(), OpenDDS::DCPS::LogLevel::Info, OpenDDS::DCPS::MonitorFactory::initialize(), initializeScheduling(), ACE_Dynamic_Service< class >::instance(), OpenDDS::DCPS::ReactorTask::interceptor(), ACE_Arg_Shifter_T< class >::is_anything_left(), ACE_String_Base< char >::is_empty(), ACE_Arg_Shifter_T< class >::is_parameter_next(), job_queue_, LM_DEBUG, LM_ERROR, LM_INFO, LM_NOTICE, LM_WARNING, load_configuration(), OpenDDS::DCPS::log_level, monitor_, monitor_enabled_, monitor_factory_, network_config_monitor_, network_interface_address_topic_, OpenDDS::DCPS::NetworkConfigMonitor::open(), OpenDDS::DCPS::ReactorTask::open_reactor_task(), OPENDDS_VERSION, ORB_argv_, parse_args(), ACE_Service_Config::process_directive(), reactor_task_, OpenDDS::DCPS::RcHandle< T >::reset(), OpenDDS::DCPS::MonitorFactory::service_initialize(), shut_down_, thread_status_manager_, uname(), and ACE_OS::uname().
Referenced by shutdown().
|
private |
Definition at line 2633 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Service_Participant::DomainRange::discovery_template_name, OpenDDS::DCPS::Service_Participant::DomainRange::domain_info, has_domain_range(), LM_DEBUG, OPENDDS_VECTOR(), OpenDDS::DCPS::Service_Participant::DomainRange::range_end, OpenDDS::DCPS::Service_Participant::DomainRange::range_start, and OpenDDS::DCPS::Service_Participant::DomainRange::transport_config_name.
Referenced by configure_domain_range_instance(), and get_discovery().
DDS::ReturnCode_t OpenDDS::DCPS::Service_Participant::get_dynamic_type | ( | DDS::DynamicType_var & | type, |
DDS::DomainParticipant_ptr | participant, | ||
const DDS::BuiltinTopicKey_t & | key | ||
) | const |
Definition at line 2955 of file Service_Participant.cpp.
|
inline |
Definition at line 320 of file Service_Participant.h.
ACE_Thread_Mutex & OpenDDS::DCPS::Service_Participant::get_static_xtypes_lock | ( | ) |
getter for lock that protects the static initialization of XTypes related data structures
Definition at line 2903 of file Service_Participant.cpp.
References OpenDDS::DCPS::RcHandle< T >::get(), network_config_monitor_, and xtypes_lock_.
ThreadStatusManager & OpenDDS::DCPS::Service_Participant::get_thread_status_manager | ( | ) |
Get the service participant's thread status manager.
Definition at line 2898 of file Service_Participant.cpp.
References thread_status_manager_.
bool OpenDDS::DCPS::Service_Participant::get_transport_base_config_name | ( | DDS::DomainId_t | domainId, |
ACE_TString & | name | ||
) | const |
Definition at line 2372 of file Service_Participant.cpp.
References ACE_TEXT(), ACE_TEXT_CHAR_TO_TCHAR, global_transport_config_, OPENDDS_MAP(), and OPENDDS_STRING.
Referenced by configure_domain_range_instance().
XTypes::TypeInformation OpenDDS::DCPS::Service_Participant::get_type_information | ( | DDS::DomainParticipant_ptr | participant, |
const DDS::BuiltinTopicKey_t & | key | ||
) | const |
Get TypeInformation of a remote entity given the corresponding BuiltinTopicKey_t.
Definition at line 2940 of file Service_Participant.cpp.
References OpenDDS::DCPS::DomainParticipantImpl::get_type_lookup_service().
XTypes::TypeObject OpenDDS::DCPS::Service_Participant::get_type_object | ( | DDS::DomainParticipant_ptr | participant, |
const XTypes::TypeIdentifier & | ti | ||
) | const |
Get TypeObject for a given TypeIdentifier.
Definition at line 2963 of file Service_Participant.cpp.
References OpenDDS::DCPS::DomainParticipantImpl::get_type_lookup_service().
|
private |
Definition at line 2627 of file Service_Participant.cpp.
Referenced by get_domain_range_info().
ACE_INLINE const DDS::DataReaderQos & OpenDDS::DCPS::Service_Participant::initial_DataReaderQos | ( | ) | const |
Definition at line 234 of file Service_Participant.inl.
References ACE_INLINE, and initial_DataReaderQos_.
ACE_INLINE const DDS::DataRepresentationQosPolicy & OpenDDS::DCPS::Service_Participant::initial_DataRepresentationQosPolicy | ( | ) | const |
Definition at line 192 of file Service_Participant.inl.
References ACE_INLINE, and initial_DataRepresentationQosPolicy_.
ACE_INLINE const DDS::DataWriterQos & OpenDDS::DCPS::Service_Participant::initial_DataWriterQos | ( | ) | const |
Definition at line 220 of file Service_Participant.inl.
References ACE_INLINE, and initial_DataWriterQos_.
ACE_INLINE const DDS::DeadlineQosPolicy & OpenDDS::DCPS::Service_Participant::initial_DeadlineQosPolicy | ( | ) | const |
Definition at line 85 of file Service_Participant.inl.
References ACE_INLINE, and initial_DeadlineQosPolicy_.
ACE_INLINE const DDS::DestinationOrderQosPolicy & OpenDDS::DCPS::Service_Participant::initial_DestinationOrderQosPolicy | ( | ) | const |
Definition at line 143 of file Service_Participant.inl.
References ACE_INLINE, and initial_DestinationOrderQosPolicy_.
ACE_INLINE const DDS::DomainParticipantFactoryQos & OpenDDS::DCPS::Service_Participant::initial_DomainParticipantFactoryQos | ( | ) | const |
Definition at line 199 of file Service_Participant.inl.
References ACE_INLINE, and initial_DomainParticipantFactoryQos_.
ACE_INLINE const DDS::DomainParticipantQos & OpenDDS::DCPS::Service_Participant::initial_DomainParticipantQos | ( | ) | const |
Definition at line 206 of file Service_Participant.inl.
References ACE_INLINE, and initial_DomainParticipantQos_.
ACE_INLINE const DDS::DurabilityQosPolicy & OpenDDS::DCPS::Service_Participant::initial_DurabilityQosPolicy | ( | ) | const |
Definition at line 64 of file Service_Participant.inl.
References ACE_INLINE, and initial_DurabilityQosPolicy_.
ACE_INLINE const DDS::DurabilityServiceQosPolicy & OpenDDS::DCPS::Service_Participant::initial_DurabilityServiceQosPolicy | ( | ) | const |
Definition at line 71 of file Service_Participant.inl.
References ACE_INLINE, and initial_DurabilityServiceQosPolicy_.
ACE_INLINE const DDS::EntityFactoryQosPolicy & OpenDDS::DCPS::Service_Participant::initial_EntityFactoryQosPolicy | ( | ) | const |
Definition at line 164 of file Service_Participant.inl.
References ACE_INLINE, and initial_EntityFactoryQosPolicy_.
ACE_INLINE const DDS::GroupDataQosPolicy & OpenDDS::DCPS::Service_Participant::initial_GroupDataQosPolicy | ( | ) | const |
Definition at line 43 of file Service_Participant.inl.
References ACE_INLINE, and initial_GroupDataQosPolicy_.
ACE_INLINE const DDS::HistoryQosPolicy & OpenDDS::DCPS::Service_Participant::initial_HistoryQosPolicy | ( | ) | const |
Definition at line 150 of file Service_Participant.inl.
References ACE_INLINE, and initial_HistoryQosPolicy_.
ACE_INLINE const DDS::LatencyBudgetQosPolicy & OpenDDS::DCPS::Service_Participant::initial_LatencyBudgetQosPolicy | ( | ) | const |
Definition at line 92 of file Service_Participant.inl.
References ACE_INLINE, and initial_LatencyBudgetQosPolicy_.
ACE_INLINE const DDS::LifespanQosPolicy & OpenDDS::DCPS::Service_Participant::initial_LifespanQosPolicy | ( | ) | const |
Definition at line 57 of file Service_Participant.inl.
References ACE_INLINE, and initial_LifespanQosPolicy_.
ACE_INLINE const DDS::LivelinessQosPolicy & OpenDDS::DCPS::Service_Participant::initial_LivelinessQosPolicy | ( | ) | const |
Definition at line 115 of file Service_Participant.inl.
References ACE_INLINE, and initial_LivelinessQosPolicy_.
ACE_INLINE const DDS::OwnershipQosPolicy & OpenDDS::DCPS::Service_Participant::initial_OwnershipQosPolicy | ( | ) | const |
Definition at line 99 of file Service_Participant.inl.
References ACE_INLINE, and initial_OwnershipQosPolicy_.
ACE_INLINE const DDS::OwnershipStrengthQosPolicy & OpenDDS::DCPS::Service_Participant::initial_OwnershipStrengthQosPolicy | ( | ) | const |
Definition at line 107 of file Service_Participant.inl.
References ACE_INLINE, and initial_OwnershipStrengthQosPolicy_.
ACE_INLINE const DDS::PartitionQosPolicy & OpenDDS::DCPS::Service_Participant::initial_PartitionQosPolicy | ( | ) | const |
Definition at line 129 of file Service_Participant.inl.
References ACE_INLINE, and initial_PartitionQosPolicy_.
ACE_INLINE const DDS::PresentationQosPolicy & OpenDDS::DCPS::Service_Participant::initial_PresentationQosPolicy | ( | ) | const |
Definition at line 78 of file Service_Participant.inl.
References ACE_INLINE, and initial_PresentationQosPolicy_.
ACE_INLINE const DDS::PropertyQosPolicy & OpenDDS::DCPS::Service_Participant::initial_PropertyQosPolicy | ( | ) | const |
Definition at line 185 of file Service_Participant.inl.
References ACE_INLINE, and initial_PropertyQosPolicy_.
ACE_INLINE const DDS::PublisherQos & OpenDDS::DCPS::Service_Participant::initial_PublisherQos | ( | ) | const |
Definition at line 227 of file Service_Participant.inl.
References ACE_INLINE, and initial_PublisherQos_.
ACE_INLINE const DDS::ReaderDataLifecycleQosPolicy & OpenDDS::DCPS::Service_Participant::initial_ReaderDataLifecycleQosPolicy | ( | ) | const |
Definition at line 178 of file Service_Participant.inl.
References ACE_INLINE, and initial_ReaderDataLifecycleQosPolicy_.
ACE_INLINE const DDS::ReliabilityQosPolicy & OpenDDS::DCPS::Service_Participant::initial_ReliabilityQosPolicy | ( | ) | const |
Definition at line 136 of file Service_Participant.inl.
References ACE_INLINE, and initial_ReliabilityQosPolicy_.
ACE_INLINE const DDS::ResourceLimitsQosPolicy & OpenDDS::DCPS::Service_Participant::initial_ResourceLimitsQosPolicy | ( | ) | const |
Definition at line 157 of file Service_Participant.inl.
References ACE_INLINE, and initial_ResourceLimitsQosPolicy_.
ACE_INLINE const DDS::SubscriberQos & OpenDDS::DCPS::Service_Participant::initial_SubscriberQos | ( | ) | const |
Definition at line 241 of file Service_Participant.inl.
References ACE_INLINE, and initial_SubscriberQos_.
ACE_INLINE const DDS::TimeBasedFilterQosPolicy & OpenDDS::DCPS::Service_Participant::initial_TimeBasedFilterQosPolicy | ( | ) | const |
Definition at line 122 of file Service_Participant.inl.
References ACE_INLINE, and initial_TimeBasedFilterQosPolicy_.
ACE_INLINE const DDS::TopicDataQosPolicy & OpenDDS::DCPS::Service_Participant::initial_TopicDataQosPolicy | ( | ) | const |
Definition at line 36 of file Service_Participant.inl.
References ACE_INLINE, and initial_TopicDataQosPolicy_.
ACE_INLINE const DDS::TopicQos & OpenDDS::DCPS::Service_Participant::initial_TopicQos | ( | ) | const |
Definition at line 213 of file Service_Participant.inl.
References ACE_INLINE, and initial_TopicQos_.
ACE_INLINE const DDS::TransportPriorityQosPolicy & OpenDDS::DCPS::Service_Participant::initial_TransportPriorityQosPolicy | ( | ) | const |
Definition at line 50 of file Service_Participant.inl.
References ACE_INLINE, and initial_TransportPriorityQosPolicy_.
ACE_INLINE const DDS::TypeConsistencyEnforcementQosPolicy & OpenDDS::DCPS::Service_Participant::initial_TypeConsistencyEnforcementQosPolicy | ( | ) | const |
Definition at line 248 of file Service_Participant.inl.
References ACE_INLINE, and initial_TypeConsistencyEnforcementQosPolicy_.
ACE_INLINE const DDS::UserDataQosPolicy & OpenDDS::DCPS::Service_Participant::initial_UserDataQosPolicy | ( | ) | const |
Accessors of the qos policy initial values.
Definition at line 29 of file Service_Participant.inl.
References ACE_INLINE, and initial_UserDataQosPolicy_.
ACE_INLINE const DDS::WriterDataLifecycleQosPolicy & OpenDDS::DCPS::Service_Participant::initial_WriterDataLifecycleQosPolicy | ( | ) | const |
Definition at line 171 of file Service_Participant.inl.
References ACE_INLINE, and initial_WriterDataLifecycleQosPolicy_.
|
private |
Initialize default qos.
Definition at line 833 of file Service_Participant.cpp.
References DDS::PresentationQosPolicy::access_scope, DDS::ALLOW_TYPE_COERCION, DDS::EntityFactoryQosPolicy::autoenable_created_entities, DDS::ReaderDataLifecycleQosPolicy::autopurge_disposed_samples_delay, DDS::ReaderDataLifecycleQosPolicy::autopurge_nowriter_samples_delay, bit_autopurge_disposed_samples_delay_, bit_autopurge_nowriter_samples_delay_, DDS::PresentationQosPolicy::coherent_access, DDS::DataReaderQos::deadline, DDS::DataReaderQos::destination_order, DDS::DataReaderQos::durability, DDS::DURATION_INFINITE_NSEC, DDS::DURATION_INFINITE_SEC, DDS::DURATION_ZERO_NSEC, DDS::DURATION_ZERO_SEC, DDS::PublisherQos::entity_factory, DDS::SubscriberQos::entity_factory, DDS::DomainParticipantFactoryQos::entity_factory, DDS::DomainParticipantQos::entity_factory, DDS::TypeConsistencyEnforcementQosPolicy::force_type_validation, DDS::PublisherQos::group_data, DDS::SubscriberQos::group_data, DDS::DataReaderQos::history, DDS::TypeConsistencyEnforcementQosPolicy::ignore_member_names, DDS::TypeConsistencyEnforcementQosPolicy::ignore_sequence_bounds, DDS::TypeConsistencyEnforcementQosPolicy::ignore_string_bounds, initial_DataReaderQos_, initial_DataRepresentationQosPolicy_, initial_DataWriterQos_, initial_DeadlineQosPolicy_, initial_DestinationOrderQosPolicy_, initial_DomainParticipantFactoryQos_, initial_DomainParticipantQos_, initial_DurabilityQosPolicy_, initial_DurabilityServiceQosPolicy_, initial_EntityFactoryQosPolicy_, initial_GroupDataQosPolicy_, initial_HistoryQosPolicy_, initial_LatencyBudgetQosPolicy_, initial_LifespanQosPolicy_, initial_LivelinessQosPolicy_, initial_OwnershipQosPolicy_, initial_OwnershipStrengthQosPolicy_, initial_PartitionQosPolicy_, initial_PresentationQosPolicy_, initial_PublisherQos_, initial_ReaderDataLifecycleQosPolicy_, initial_ReliabilityQosPolicy_, initial_ResourceLimitsQosPolicy_, initial_SubscriberQos_, initial_TimeBasedFilterQosPolicy_, initial_TopicQos_, initial_TransportPriorityQosPolicy_, initial_TypeConsistencyEnforcementQosPolicy_, initial_UserDataQosPolicy_, initial_WriterDataLifecycleQosPolicy_, DDS::INSTANCE_PRESENTATION_QOS, DDS::TypeConsistencyEnforcementQosPolicy::kind, DDS::DataReaderQos::latency_budget, DDS::LENGTH_UNLIMITED, DDS::DataReaderQos::liveliness, DDS::ResourceLimitsQosPolicy::max_instances, DDS::ResourceLimitsQosPolicy::max_samples, DDS::ResourceLimitsQosPolicy::max_samples_per_instance, DDS::TimeBasedFilterQosPolicy::minimum_separation, DDS::Duration_t::nanosec, DDS::PresentationQosPolicy::ordered_access, DDS::DataReaderQos::ownership, DDS::PublisherQos::partition, DDS::SubscriberQos::partition, DDS::PublisherQos::presentation, DDS::SubscriberQos::presentation, DDS::TypeConsistencyEnforcementQosPolicy::prevent_type_widening, DDS::DataReaderQos::reader_data_lifecycle, DDS::DataReaderQos::reliability, DDS::DataReaderQos::representation, DDS::DataReaderQos::resource_limits, DDS::Duration_t::sec, DDS::DataReaderQos::time_based_filter, DDS::DataReaderQos::type_consistency, DDS::DataReaderQos::user_data, DDS::DomainParticipantQos::user_data, and DDS::DataRepresentationQosPolicy::value.
Referenced by Service_Participant().
|
private |
Initialize the thread scheduling and initial priority.
Definition at line 927 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR, ACE_SCHED_FIFO, ACE_SCHED_OTHER, ACE_SCHED_RR, ACE_SCOPE_THREAD, ACE_TEXT(), ACE_String_Base< char >::c_str(), OpenDDS::DCPS::DCPS_debug_level, EPERM, ACE_OS::last_error(), ACE_String_Base< char >::length(), LM_DEBUG, LM_ERROR, LM_NOTICE, LM_WARNING, ACE_Sched_Params::priority_max(), priority_max_, ACE_Sched_Params::priority_min(), priority_min_, ACE_OS::sched_params(), scheduler_, schedulerQuantum_, schedulerString_, set_repo_ior(), and OpenDDS::DCPS::TimeDuration::value().
Referenced by get_domain_participant_factory().
|
static |
Return a singleton instance of this class.
Definition at line 266 of file Service_Participant.cpp.
References ACE_Singleton< TYPE, ACE_LOCK >::instance().
ReactorInterceptor_rch OpenDDS::DCPS::Service_Participant::interceptor | ( | ) | const |
Definition at line 299 of file Service_Participant.cpp.
References OpenDDS::DCPS::ReactorTask::interceptor(), and reactor_task_.
|
private |
Definition at line 2727 of file Service_Participant.cpp.
References ACE_Allocator::instance(), and OPENDDS_VECTOR().
Referenced by get_discovery().
ACE_INLINE bool OpenDDS::DCPS::Service_Participant::is_shut_down | ( | ) | const |
Accessor for if the participant has been shutdown.
Definition at line 373 of file Service_Participant.inl.
References ACE_INLINE, and shut_down_.
JobQueue_rch OpenDDS::DCPS::Service_Participant::job_queue | ( | ) | const |
Definition at line 305 of file Service_Participant.cpp.
References job_queue_.
void OpenDDS::DCPS::Service_Participant::liveliness_factor | ( | int | factor | ) |
Set the Liveliness propagation delay factor.
factor | % of lease period before sending a liveliness message. |
Definition at line 1513 of file Service_Participant.cpp.
References liveliness_factor_.
int OpenDDS::DCPS::Service_Participant::liveliness_factor | ( | ) | const |
Accessor of the Liveliness propagation delay factor.
Definition at line 1520 of file Service_Participant.cpp.
References liveliness_factor_.
|
private |
Load the common configuration to the Service_Participant singleton.
Definition at line 1705 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, association_chunk_multiplier_, ACE_OS::atoi(), bidir_giop_, bit_enabled_, bit_lookup_duration_msec_, bit_transport_ip_, bit_transport_port_, ACE_String_Base< char >::c_str(), OpenDDS::DCPS::DCPS_debug_level, default_address_, OpenDDS::DCPS::Discovery::DEFAULT_REPO, defaultDiscovery_, ACE_String_Base< char >::empty(), OpenDDS::DCPS::SecurityDebug::fake_encryption, federation_backoff_multiplier_, federation_initial_backoff_seconds_, federation_liveliness_, federation_recovery_duration_, ACE_Configuration_Heap::find_value(), GET_CONFIG_STRING_VALUE, GET_CONFIG_TSTRING_VALUE, GET_CONFIG_VALUE, ACE_Configuration_Heap::get_string_value(), global_transport_config_, liveliness_factor_, LM_ERROR, LM_NOTICE, LM_WARNING, OpenDDS::DCPS::log_bits, OpenDDS::DCPS::log_level, monitor_enabled_, n_chunks_, ACE_Configuration_Heap::open_section(), OPENDDS_STRING, OpenDDS::DCPS::SecurityDebug::parse_flags(), pending_timeout_, persistent_data_dir_, publisher_content_filter_, ACE_Configuration::root_section(), schedulerQuantum_, schedulerString_, OpenDDS::DCPS::security_debug, security_enabled_, ACE_INET_Addr::set(), OpenDDS::DCPS::SecurityDebug::set_debug_level(), OpenDDS::DCPS::LogLevel::set_from_string(), set_repo_ior(), OpenDDS::DCPS::ThreadStatusManager::thread_status_interval(), thread_status_manager_, OpenDDS::DCPS::Transport_debug_level, type_object_encoding(), and value.
Referenced by load_configuration().
int OpenDDS::DCPS::Service_Participant::load_configuration | ( | ACE_Configuration_Heap & | cf, |
const ACE_TCHAR * | filename | ||
) |
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 TransportRegistry singleton.
Definition at line 1562 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, add_discovery(), ACE_String_Base< char >::c_str(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::TransportRegistry::get_config(), OpenDDS::DCPS::TransportRegistry::global_config(), global_transport_config_, OpenDDS::DCPS::TransportRegistry::instance(), OpenDDS::DCPS::StaticDiscovery::instance(), LM_ERROR, LM_NOTICE, load_common_configuration(), load_discovery_configuration(), load_discovery_templates(), load_domain_configuration(), load_domain_ranges(), OpenDDS::DCPS::TransportRegistry::load_transport_configuration(), OpenDDS::DCPS::TransportRegistry::load_transport_templates(), and TheTransportRegistry.
|
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 TransportRegistry singleton.
Definition at line 1533 of file Service_Participant.cpp.
References ACE_ERROR_RETURN, ACE_TEXT(), ACE_String_Base< char >::c_str(), OpenDDS::DCPS::config_fname, ACE_Ini_ImpExp::import_config(), LM_ERROR, and ACE_Configuration_Heap::open().
Referenced by get_domain_participant_factory().
|
private |
Load the discovery configuration to the Service_Participant singleton.
Definition at line 2387 of file Service_Participant.cpp.
References ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, discovery_types_, LM_ERROR, ACE_Configuration_Heap::open_section(), OPENDDS_STRING, ACE_Configuration::root_section(), and TheTransportRegistry.
Referenced by configure_discovery_template(), configure_domain_range_instance(), get_discovery(), and load_configuration().
|
private |
Load the discovery template information
Definition at line 2479 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, OpenDDS::DCPS::CUSTOMIZATION_SECTION_NAME, OpenDDS::DCPS::Service_Participant::DiscoveryInfo::customizations, OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Service_Participant::DiscoveryInfo::disc_info, OpenDDS::DCPS::Service_Participant::DiscoveryInfo::discovery_name, LM_DEBUG, LM_ERROR, ACE_Configuration_Heap::open(), ACE_Configuration_Heap::open_section(), OPENDDS_STRING, OpenDDS::DCPS::processSections(), OpenDDS::DCPS::pullValues(), and ACE_Configuration::root_section().
Referenced by load_configuration().
|
private |
Load the domain configuration to the Service_Participant singleton.
Definition at line 2004 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, OpenDDS::DCPS::convertToInteger(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Discovery::DEFAULT_REPO, OpenDDS::DCPS::Discovery::DEFAULT_RTPS, OpenDDS::DCPS::Discovery::DEFAULT_STATIC, discoveryMap_, OpenDDS::DCPS::TransportRegistry::domain_default_config(), OpenDDS::DCPS::TransportRegistry::get_config(), OpenDDS::DCPS::TransportRegistry::instance(), OpenDDS::DCPS::RcHandle< T >::is_nil(), LM_DEBUG, LM_ERROR, LM_NOTICE, name, ACE_Configuration_Heap::open_section(), OPENDDS_STRING, OpenDDS::DCPS::processSections(), OpenDDS::DCPS::pullValues(), ACE_Configuration::root_section(), and set_repo_domain().
Referenced by configure_domain_range_instance(), and load_configuration().
|
private |
Load the domain range template configuration prior to discovery and domain configuration
Definition at line 2144 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, ACE_String_Base< char >::c_str(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Service_Participant::DomainRange::discovery_template_name, OpenDDS::DCPS::Service_Participant::DomainRange::domain_info, global_transport_config_, LM_DEBUG, LM_ERROR, LM_NOTICE, name, ACE_Configuration_Heap::open_section(), OPENDDS_STRING, parse_domain_range(), OpenDDS::DCPS::processSections(), OpenDDS::DCPS::pullValues(), OpenDDS::DCPS::Service_Participant::DomainRange::range_end, OpenDDS::DCPS::Service_Participant::DomainRange::range_start, ACE_Configuration::root_section(), and OpenDDS::DCPS::Service_Participant::DomainRange::transport_config_name.
Referenced by load_configuration().
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.
Definition at line 1487 of file Service_Participant.cpp.
References n_chunks_.
void OpenDDS::DCPS::Service_Participant::n_chunks | ( | size_t | chunks | ) |
Set the value returned by n_chunks()
accessor.
Definition at line 1493 of file Service_Participant.cpp.
References n_chunks_.
|
inline |
Definition at line 464 of file Service_Participant.h.
ACE_INLINE MonotonicTimePoint OpenDDS::DCPS::Service_Participant::new_pending_timeout_deadline | ( | ) | const |
Get a new pending timeout deadline.
Definition at line 337 of file Service_Participant.inl.
References ACE_INLINE, OpenDDS::DCPS::TimeDuration::is_zero(), OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now(), and pending_timeout_.
typedef OpenDDS::DCPS::Service_Participant::OPENDDS_MAP | ( | Discovery::RepoKey | , |
Discovery_rch | |||
) |
For internal OpenDDS Use (needed for monitor code)
Referenced by get_transport_base_config_name().
typedef OpenDDS::DCPS::Service_Participant::OPENDDS_MAP | ( | DDS::DomainId_t | , |
Discovery::RepoKey | |||
) |
|
private |
|
private |
|
private |
|
private |
|
inline |
Definition at line 356 of file Service_Participant.h.
References name.
|
private |
Parse the command line for user options. e.g. "-DCPSInfoRepo <iorfile>". It consumes -DCPS* options and their arguments
No need to guard this insertion as we are still single threaded here.
No need to guard this insertion as we are still single threaded here.
Definition at line 627 of file Service_Participant.cpp.
References ACE_ERROR, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, association_chunk_multiplier_, ACE_OS::atoi(), bidir_giop_, bit_enabled_, bit_lookup_duration_msec_, bit_transport_ip_, bit_transport_port_, OpenDDS::DCPS::config_fname, ACE_Arg_Shifter_T< class >::consume_arg(), default_address_, OpenDDS::DCPS::Discovery::DEFAULT_REPO, defaultDiscovery_, OpenDDS::DCPS::SecurityDebug::fake_encryption, federation_backoff_multiplier_, federation_initial_backoff_seconds_, federation_liveliness_, federation_recovery_duration_, ACE_Arg_Shifter_T< class >::get_the_parameter(), global_transport_config_, ACE_Arg_Shifter_T< class >::ignore_arg(), ACE_Arg_Shifter_T< class >::is_anything_left(), liveliness_factor_, LM_ERROR, LM_WARNING, OpenDDS::DCPS::log_level, monitor_enabled_, n_chunks_, OpenDDS::DCPS::SecurityDebug::parse_flags(), pending_timeout_, persistent_data_dir_, publisher_content_filter_, OpenDDS::DCPS::security_debug, security_enabled_, ACE_INET_Addr::set(), OpenDDS::DCPS::set_DCPS_debug_level(), OpenDDS::DCPS::SecurityDebug::set_debug_level(), OpenDDS::DCPS::LogLevel::set_from_string(), set_repo_ior(), OpenDDS::DCPS::ThreadStatusManager::thread_status_interval(), thread_status_manager_, OpenDDS::DCPS::Transport_debug_level, and type_object_encoding().
Referenced by get_domain_participant_factory().
|
private |
Definition at line 2570 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), OpenDDS::DCPS::convertToInteger(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::DOMAIN_RANGE_SECTION_NAME, LM_DEBUG, and LM_ERROR.
Referenced by load_domain_ranges().
ACE_INLINE TimeDuration OpenDDS::DCPS::Service_Participant::pending_timeout | ( | ) | const |
Accessors for pending data timeout.
Definition at line 325 of file Service_Participant.inl.
References ACE_INLINE, and pending_timeout_.
ACE_INLINE void OpenDDS::DCPS::Service_Participant::pending_timeout | ( | const TimeDuration & | value | ) |
Accessors for pending data timeout.
Definition at line 331 of file Service_Participant.inl.
References ACE_INLINE, pending_timeout_, and value.
|
inline |
Definition at line 469 of file Service_Participant.h.
|
inline |
Definition at line 474 of file Service_Participant.h.
References OpenDDS::DCPS::OPENDDS_MAP(), OPENDDS_STRING, and value.
ACE_INLINE int OpenDDS::DCPS::Service_Participant::priority_max | ( | ) | const |
Accessors for priority extremums for the current scheduler.
Definition at line 352 of file Service_Participant.inl.
References ACE_INLINE, and priority_max_.
ACE_INLINE int OpenDDS::DCPS::Service_Participant::priority_min | ( | ) | const |
Accessors for priority extremums for the current scheduler.
Definition at line 345 of file Service_Participant.inl.
References ACE_INLINE, and priority_min_.
|
private |
Definition at line 2660 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), OpenDDS::DCPS::convertToInteger(), OpenDDS::DCPS::DCPS_debug_level, LM_DEBUG, LM_ERROR, OPENDDS_STRING, OPENDDS_VECTOR(), and OpenDDS::DCPS::to_dds_string().
Referenced by configure_discovery_template(), and configure_domain_range_instance().
ACE_INLINE bool & OpenDDS::DCPS::Service_Participant::publisher_content_filter | ( | ) |
Accessors for PublisherContentFilter.
Definition at line 359 of file Service_Participant.inl.
References ACE_INLINE, and publisher_content_filter_.
ACE_INLINE bool OpenDDS::DCPS::Service_Participant::publisher_content_filter | ( | ) | const |
Accessors for PublisherContentFilter.
Definition at line 366 of file Service_Participant.inl.
References ACE_INLINE, and publisher_content_filter_.
ACE_Reactor * OpenDDS::DCPS::Service_Participant::reactor | ( | void | ) |
Definition at line 287 of file Service_Participant.cpp.
References OpenDDS::DCPS::ReactorTask::get_reactor(), and reactor_task_.
ACE_thread_t OpenDDS::DCPS::Service_Participant::reactor_owner | ( | ) | const |
Definition at line 293 of file Service_Participant.cpp.
References OpenDDS::DCPS::ReactorTask::get_reactor_owner(), and reactor_task_.
void OpenDDS::DCPS::Service_Participant::register_discovery_type | ( | const char * | section_name, |
Discovery::Config * | cfg | ||
) |
Definition at line 1526 of file Service_Participant.cpp.
References discovery_types_.
void OpenDDS::DCPS::Service_Participant::remap_domains | ( | Discovery::RepoKey | oldKey, |
Discovery::RepoKey | newKey, | ||
bool | attach_participant = true |
||
) |
Rebind a domain from one repository to another.
Definition at line 1073 of file Service_Participant.cpp.
References ACE_GUARD, domainRepoMap_, maps_lock_, OPENDDS_VECTOR(), and set_repo_domain().
Referenced by repository_lost(), and set_repo_ior().
void OpenDDS::DCPS::Service_Participant::repository_lost | ( | Discovery::RepoKey | key | ) |
Failover to a new repository.
Definition at line 1200 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::DCPS_debug_level, discoveryMap_, federation_backoff_multiplier(), federation_initial_backoff_seconds(), federation_recovery_duration(), OpenDDS::DCPS::TimePoint_T< AceClock >::is_zero(), LM_DEBUG, LM_WARNING, OpenDDS::DCPS::TimePoint_T< MonotonicClock >::now(), OPENDDS_ASSERT, remap_domains(), and ACE_OS::sleep().
ACE_INLINE long & OpenDDS::DCPS::Service_Participant::scheduler | ( | void | ) |
Accessors for scheduling policy value.
Definition at line 311 of file Service_Participant.inl.
References ACE_INLINE, and scheduler_.
ACE_INLINE long OpenDDS::DCPS::Service_Participant::scheduler | ( | void | ) | const |
Accessors for scheduling policy value.
Definition at line 318 of file Service_Participant.inl.
References ACE_INLINE, and scheduler_.
|
inline |
Definition at line 333 of file Service_Participant.h.
void OpenDDS::DCPS::Service_Participant::set_default_discovery | ( | const Discovery::RepoKey & | defaultDiscovery | ) |
Definition at line 1295 of file Service_Participant.cpp.
References defaultDiscovery_.
void OpenDDS::DCPS::Service_Participant::set_repo_domain | ( | const DDS::DomainId_t | domain, |
Discovery::RepoKey | repo, | ||
bool | attach_participant = true |
||
) |
Bind DCPSInfoRepo IORs to domains.
Definition at line 1100 of file Service_Participant.cpp.
References CORBA::Exception::_tao_print_exception(), ACE_DEBUG, ACE_GUARD, ACE_TEXT(), OpenDDS::DCPS::LogGuid::c_str(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Discovery::DEFAULT_REPO, discoveryMap_, domainRepoMap_, dp_factory_servant_, LM_DEBUG, maps_lock_, and OPENDDS_VECTOR().
Referenced by load_domain_configuration(), and remap_domains().
bool OpenDDS::DCPS::Service_Participant::set_repo_ior | ( | const char * | ior, |
Discovery::RepoKey | key = Discovery::DEFAULT_REPO , |
||
bool | attach_participant = true |
||
) |
Definition at line 1023 of file Service_Participant.cpp.
References ACE_DEBUG, ACE_ERROR_RETURN, ACE_TEXT(), ACE_TEXT_ALWAYS_CHAR, ACE_TEXT_CHAR_TO_TCHAR, ACE_String_Base< char >::c_str(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::Discovery::DEFAULT_REPO, discovery_types_, LM_DEBUG, LM_ERROR, ACE_Configuration_Heap::open(), ACE_Configuration_Heap::open_section(), OPENDDS_STRING, remap_domains(), OpenDDS::DCPS::REPO_SECTION_NAME, ACE_Configuration::root_section(), ACE_Configuration_Heap::set_string_value(), and TheTransportRegistry.
Referenced by get_discovery(), InfoRepo::init(), initializeScheduling(), load_common_configuration(), and parse_args().
|
inline |
Definition at line 324 of file Service_Participant.h.
void OpenDDS::DCPS::Service_Participant::set_shutdown_listener | ( | RcHandle< ShutdownListener > | listener | ) |
Definition at line 2810 of file Service_Participant.cpp.
References shutdown_listener_.
DDS::ReturnCode_t OpenDDS::DCPS::Service_Participant::shutdown | ( | void | ) |
Stop being a participant in the service.
If the Service Participant has already been shutdown then DDS::RETCODE_ALREADY_DELETED will be returned.
Definition at line 310 of file Service_Participant.cpp.
References CORBA::Exception::_tao_print_exception(), ACE_DEBUG, ACE_ERROR, ACE_GUARD_RETURN, OpenDDS::Security::SecurityRegistry::close(), OpenDDS::DCPS::TransportRegistry::close(), OpenDDS::DCPS::NetworkConfigMonitor::close(), OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::MonitorFactory::deinitialize(), OpenDDS::DCPS::NetworkConfigMonitor::disconnect(), discovery_types_, discoveryMap_, domainRepoMap_, dp_factory_servant_, OpenDDS::DCPS::LogLevel::Error, factory_lock_, ACE_Argv_Type_Converter::get_argc(), get_domain_participant_factory(), ACE_Argv_Type_Converter::get_TCHAR_argv(), OpenDDS::DCPS::TransportRegistry::instance(), LM_DEBUG, LM_NOTICE, OpenDDS::DCPS::log_level, monitor_factory_, network_config_monitor_, network_config_monitor_lock_, network_interface_address_topic_, OpenDDS::DCPS::LogLevel::Notice, persistent_data_cache_, reactor_task_, OpenDDS::DCPS::TransportRegistry::release(), OpenDDS::DCPS::RcHandle< T >::reset(), DDS::RETCODE_ALREADY_DELETED, DDS::RETCODE_ERROR, DDS::RETCODE_OK, DDS::RETCODE_OUT_OF_RESOURCES, DDS::RETCODE_PRECONDITION_NOT_MET, shut_down_, shutdown_listener_, OpenDDS::DCPS::ReactorTask::stop(), and transient_data_cache_.
Referenced by ~Service_Participant().
const TimeSource & OpenDDS::DCPS::Service_Participant::time_source | ( | ) | const |
Definition at line 275 of file Service_Participant.cpp.
References time_source_.
ACE_Reactor_Timer_Interface * OpenDDS::DCPS::Service_Participant::timer | ( | void | ) |
Get the common timer interface. Intended for use by OpenDDS internals only.
Definition at line 281 of file Service_Participant.cpp.
References OpenDDS::DCPS::ReactorTask::get_reactor(), and reactor_task_.
ACE_INLINE Service_Participant::TypeObjectEncoding OpenDDS::DCPS::Service_Participant::type_object_encoding | ( | ) | const |
Definition at line 387 of file Service_Participant.inl.
References ACE_INLINE, and type_object_encoding_.
Referenced by load_common_configuration(), parse_args(), and type_object_encoding().
ACE_INLINE void OpenDDS::DCPS::Service_Participant::type_object_encoding | ( | TypeObjectEncoding | encoding | ) |
Definition at line 393 of file Service_Participant.inl.
References OpenDDS::STUN::encoding(), OPENDDS_END_VERSIONED_NAMESPACE_DECL, and type_object_encoding_.
void OpenDDS::DCPS::Service_Participant::type_object_encoding | ( | const char * | encoding | ) |
Definition at line 2978 of file Service_Participant.cpp.
References ACE_ERROR, Encoding_Normal, Encoding_ReadOldFormat, Encoding_WriteOldFormat, LM_ERROR, name, OPENDDS_END_VERSIONED_NAMESPACE_DECL, type_object_encoding(), and value.
ACE_INLINE bool OpenDDS::DCPS::Service_Participant::use_bidir_giop | ( | ) | const |
Definition at line 380 of file Service_Participant.inl.
References ACE_INLINE, and bidir_giop_.
|
private |
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.
Definition at line 616 of file Service_Participant.h.
Referenced by association_chunk_multiplier(), load_common_configuration(), and parse_args().
|
private |
Enable TAO's Bidirectional GIOP?
Definition at line 753 of file Service_Participant.h.
Referenced by load_common_configuration(), parse_args(), and use_bidir_giop().
|
private |
Definition at line 783 of file Service_Participant.h.
Referenced by bit_autopurge_disposed_samples_delay(), and initialize().
|
private |
Definition at line 782 of file Service_Participant.h.
Referenced by bit_autopurge_nowriter_samples_delay(), and initialize().
|
private |
Definition at line 627 of file Service_Participant.h.
Referenced by load_common_configuration(), and parse_args().
|
private |
The timeout for lookup data from the builtin topic DataReader
.
Definition at line 635 of file Service_Participant.h.
Referenced by bit_lookup_duration_msec(), load_common_configuration(), and parse_args().
|
private |
The builtin topic transport address.
Definition at line 622 of file Service_Participant.h.
Referenced by bit_transport_ip(), load_common_configuration(), and parse_args().
|
private |
The builtin topic transport port number.
Definition at line 625 of file Service_Participant.h.
Referenced by bit_transport_port(), load_common_configuration(), and parse_args().
|
private |
The default network address to use.
Definition at line 638 of file Service_Participant.h.
Referenced by load_common_configuration(), and parse_args().
|
private |
If set before TheParticipantFactoryWithArgs and -DCPSConfigFile is not passed, use this as the configuration file.
Definition at line 777 of file Service_Participant.h.
Referenced by default_configuration_file(), and get_domain_participant_factory().
|
private |
Definition at line 568 of file Service_Participant.h.
Referenced by get_default_discovery(), get_discovery(), load_common_configuration(), parse_args(), and set_default_discovery().
|
private |
Definition at line 550 of file Service_Participant.h.
Referenced by load_discovery_configuration(), register_discovery_type(), set_repo_ior(), and shutdown().
|
private |
The RepoKey to Discovery object mapping.
Definition at line 563 of file Service_Participant.h.
Referenced by add_discovery(), configure_discovery_template(), configure_domain_range_instance(), discoveryMap(), get_discovery(), load_domain_configuration(), repository_lost(), set_repo_domain(), and shutdown().
|
private |
The DomainId to RepoKey mapping.
Definition at line 566 of file Service_Participant.h.
Referenced by domain_to_repo(), domainRepoMap(), get_discovery(), remap_domains(), set_repo_domain(), and shutdown().
|
private |
Definition at line 560 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), set_repo_domain(), shutdown(), and ~Service_Participant().
|
mutableprivate |
The lock to serialize DomainParticipantFactory singleton creation and shutdown.
Definition at line 572 of file Service_Participant.h.
Referenced by get_data_durability_cache(), get_domain_participant_factory(), shutdown(), and ~Service_Participant().
|
private |
This FederationBackoffMultiplier.
Definition at line 704 of file Service_Participant.h.
Referenced by federation_backoff_multiplier(), load_common_configuration(), and parse_args().
|
private |
The FederationInitialBackoffSeconds value.
Definition at line 701 of file Service_Participant.h.
Referenced by federation_initial_backoff_seconds(), load_common_configuration(), and parse_args().
|
private |
This FederationLivelinessDuration.
Definition at line 707 of file Service_Participant.h.
Referenced by federation_liveliness(), load_common_configuration(), and parse_args().
|
private |
The FederationRecoveryDuration value in seconds.
Definition at line 698 of file Service_Participant.h.
Referenced by federation_recovery_duration(), load_common_configuration(), and parse_args().
|
private |
Specifies the name of the transport configuration that is used when the entity tree does not specify one. If not set, the default transport configuration is used.
Definition at line 643 of file Service_Participant.h.
Referenced by get_transport_base_config_name(), load_common_configuration(), load_configuration(), load_domain_ranges(), and parse_args().
|
private |
Definition at line 604 of file Service_Participant.h.
Referenced by initial_DataReaderQos(), and initialize().
|
private |
Definition at line 598 of file Service_Participant.h.
Referenced by initial_DataRepresentationQosPolicy(), and initialize().
|
private |
Definition at line 602 of file Service_Participant.h.
Referenced by initial_DataWriterQos(), and initialize().
|
private |
Definition at line 583 of file Service_Participant.h.
Referenced by initial_DeadlineQosPolicy(), and initialize().
|
private |
Definition at line 591 of file Service_Participant.h.
Referenced by initial_DestinationOrderQosPolicy(), and initialize().
|
private |
Definition at line 606 of file Service_Participant.h.
Referenced by initial_DomainParticipantFactoryQos(), and initialize().
|
private |
Definition at line 600 of file Service_Participant.h.
Referenced by initial_DomainParticipantQos(), and initialize().
|
private |
Definition at line 580 of file Service_Participant.h.
Referenced by initial_DurabilityQosPolicy(), and initialize().
|
private |
Definition at line 581 of file Service_Participant.h.
Referenced by initial_DurabilityServiceQosPolicy(), and initialize().
|
private |
Definition at line 594 of file Service_Participant.h.
Referenced by initial_EntityFactoryQosPolicy(), and initialize().
|
private |
Definition at line 577 of file Service_Participant.h.
Referenced by initial_GroupDataQosPolicy(), and initialize().
|
private |
Definition at line 592 of file Service_Participant.h.
Referenced by initial_HistoryQosPolicy(), and initialize().
|
private |
Definition at line 584 of file Service_Participant.h.
Referenced by initial_LatencyBudgetQosPolicy(), and initialize().
|
private |
Definition at line 579 of file Service_Participant.h.
Referenced by initial_LifespanQosPolicy(), and initialize().
|
private |
Definition at line 587 of file Service_Participant.h.
Referenced by initial_LivelinessQosPolicy(), and initialize().
|
private |
Definition at line 585 of file Service_Participant.h.
Referenced by initial_OwnershipQosPolicy(), and initialize().
|
private |
Definition at line 586 of file Service_Participant.h.
Referenced by initial_OwnershipStrengthQosPolicy(), and initialize().
|
private |
Definition at line 589 of file Service_Participant.h.
Referenced by initial_PartitionQosPolicy(), and initialize().
|
private |
Definition at line 582 of file Service_Participant.h.
Referenced by initial_PresentationQosPolicy(), and initialize().
|
private |
Definition at line 597 of file Service_Participant.h.
Referenced by initial_PropertyQosPolicy().
|
private |
Definition at line 603 of file Service_Participant.h.
Referenced by initial_PublisherQos(), and initialize().
|
private |
Definition at line 596 of file Service_Participant.h.
Referenced by initial_ReaderDataLifecycleQosPolicy(), and initialize().
|
private |
Definition at line 590 of file Service_Participant.h.
Referenced by initial_ReliabilityQosPolicy(), and initialize().
|
private |
Definition at line 593 of file Service_Participant.h.
Referenced by initial_ResourceLimitsQosPolicy(), and initialize().
|
private |
Definition at line 605 of file Service_Participant.h.
Referenced by initial_SubscriberQos(), and initialize().
|
private |
Definition at line 588 of file Service_Participant.h.
Referenced by initial_TimeBasedFilterQosPolicy(), and initialize().
|
private |
Definition at line 576 of file Service_Participant.h.
Referenced by initial_TopicDataQosPolicy().
|
private |
Definition at line 601 of file Service_Participant.h.
Referenced by initial_TopicQos(), and initialize().
|
private |
Definition at line 578 of file Service_Participant.h.
Referenced by initial_TransportPriorityQosPolicy(), and initialize().
|
private |
Definition at line 607 of file Service_Participant.h.
Referenced by initial_TypeConsistencyEnforcementQosPolicy(), and initialize().
|
private |
The initial values of qos policies.
Definition at line 575 of file Service_Participant.h.
Referenced by initial_UserDataQosPolicy(), and initialize().
|
private |
Definition at line 595 of file Service_Participant.h.
Referenced by initial_WriterDataLifecycleQosPolicy(), and initialize().
|
private |
Definition at line 558 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), and job_queue().
|
private |
The propagation delay factor.
Definition at line 619 of file Service_Participant.h.
Referenced by liveliness_factor(), load_common_configuration(), and parse_args().
|
private |
Guard access to the internal maps.
Definition at line 769 of file Service_Participant.h.
Referenced by add_discovery(), bit_transport_port(), get_discovery(), remap_domains(), and set_repo_domain().
unique_ptr<Monitor> OpenDDS::DCPS::Service_Participant::monitor_ |
Pointer to the monitor object for this object.
Definition at line 694 of file Service_Participant.h.
Referenced by get_domain_participant_factory().
|
private |
Enable Monitor functionality.
Definition at line 761 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), load_common_configuration(), and parse_args().
MonitorFactory* OpenDDS::DCPS::Service_Participant::monitor_factory_ |
Pointer to the monitor factory that is used to create monitor objects.
Definition at line 691 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), and shutdown().
|
private |
The configurable value of the number chunks that the DataWriter's
cached allocator can allocate.
Definition at line 611 of file Service_Participant.h.
Referenced by load_common_configuration(), n_chunks(), and parse_args().
|
private |
Definition at line 779 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), get_static_xtypes_lock(), and shutdown().
|
mutableprivate |
Definition at line 780 of file Service_Participant.h.
Referenced by shutdown().
|
private |
Definition at line 787 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), and shutdown().
|
private |
Definition at line 553 of file Service_Participant.h.
Referenced by get_domain_participant_factory().
|
private |
Number of seconds to wait on pending samples to be sent or dropped.
Definition at line 750 of file Service_Participant.h.
Referenced by load_common_configuration(), new_pending_timeout_deadline(), parse_args(), and pending_timeout().
|
private |
The PERSISTENT
data durability cache.
Definition at line 741 of file Service_Participant.h.
Referenced by get_data_durability_cache(), and shutdown().
|
private |
The PERSISTENT
data durability directory.
Definition at line 744 of file Service_Participant.h.
Referenced by get_data_durability_cache(), load_common_configuration(), and parse_args().
|
private |
Definition at line 789 of file Service_Participant.h.
|
private |
Maximum priority value for the current scheduling policy.
Definition at line 730 of file Service_Participant.h.
Referenced by initializeScheduling(), and priority_max().
|
private |
Minimum priority value for the current scheduling policy.
Definition at line 727 of file Service_Participant.h.
Referenced by initializeScheduling(), and priority_min().
|
private |
Allow the publishing side to do content filtering?
Definition at line 733 of file Service_Participant.h.
Referenced by load_common_configuration(), parse_args(), and publisher_content_filter().
|
private |
Definition at line 557 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), interceptor(), reactor(), reactor_owner(), shutdown(), and timer().
|
private |
Scheduling policy value used for setting thread priorities.
Definition at line 724 of file Service_Participant.h.
Referenced by initializeScheduling(), and scheduler().
|
private |
Scheduler time slice from configuration file.
Definition at line 713 of file Service_Participant.h.
Referenced by initializeScheduling(), and load_common_configuration().
|
private |
Scheduling policy value from configuration file.
Definition at line 710 of file Service_Participant.h.
Referenced by initializeScheduling(), and load_common_configuration().
|
private |
Definition at line 630 of file Service_Participant.h.
Referenced by load_common_configuration(), and parse_args().
|
private |
Used to track state of service participant.
Definition at line 764 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), is_shut_down(), and shutdown().
|
private |
Definition at line 766 of file Service_Participant.h.
Referenced by set_shutdown_listener(), and shutdown().
|
private |
Definition at line 755 of file Service_Participant.h.
Referenced by get_domain_participant_factory(), get_thread_status_manager(), load_common_configuration(), and parse_args().
|
private |
Definition at line 556 of file Service_Participant.h.
Referenced by time_source().
|
private |
The TRANSIENT
data durability cache.
Definition at line 738 of file Service_Participant.h.
Referenced by get_data_durability_cache(), and shutdown().
|
private |
Definition at line 785 of file Service_Participant.h.
Referenced by type_object_encoding().
|
private |
Thread mutex used to protect the static initialization of XTypes data structures.
Definition at line 758 of file Service_Participant.h.
Referenced by get_static_xtypes_lock().
|
staticprivate |
Definition at line 771 of file Service_Participant.h.