|
OpenDDS
Snapshot(2021/07/09-10:21)
|
Full implementation of the MonitorFactoryImpl. More...
#include <MonitorFactoryImpl.h>


Public Member Functions | |
| MonitorFactoryImpl () | |
| virtual | ~MonitorFactoryImpl () |
| virtual Monitor * | create_sp_monitor (Service_Participant *sp) |
| Factory function to create a service participant monitor object. More... | |
| virtual Monitor * | create_dp_monitor (DomainParticipantImpl *dp) |
| Factory function to create a domain participant monitor object. More... | |
| virtual Monitor * | create_topic_monitor (TopicImpl *topic) |
| Factory function to create a topic monitor object. More... | |
| virtual Monitor * | create_publisher_monitor (PublisherImpl *publisher) |
| Factory function to create a publisher monitor object. More... | |
| virtual Monitor * | create_subscriber_monitor (SubscriberImpl *subscriber) |
| Factory function to create a subscriber monitor object. More... | |
| virtual Monitor * | create_data_writer_monitor (DataWriterImpl *dw) |
| Factory function to create a data writer monitor object. More... | |
| virtual Monitor * | create_data_writer_periodic_monitor (DataWriterImpl *dw) |
| Factory function to create a data writer periodic monitor object. More... | |
| virtual Monitor * | create_data_reader_monitor (DataReaderImpl *dr) |
| Factory function to create a data reader monitor object. More... | |
| virtual Monitor * | create_data_reader_periodic_monitor (DataReaderImpl *dr) |
| Factory function to create a data reader periodic monitor object. More... | |
| virtual Monitor * | create_transport_monitor (TransportImpl *transport) |
| Factory function to create a transport monitor object. More... | |
| virtual void | initialize () |
| Initialize the monitor (required to report data) More... | |
| ServiceParticipantReportDataWriter_ptr | get_sp_writer () |
Public Member Functions inherited from OpenDDS::DCPS::MonitorFactory | |
| MonitorFactory () | |
| virtual | ~MonitorFactory () |
Public Member Functions inherited from ACE_Service_Object | |
| ACE_Service_Object (ACE_Reactor *=0) | |
| virtual | ~ACE_Service_Object (void) |
| virtual int | suspend (void) |
| virtual int | resume (void) |
Public Member Functions inherited from ACE_Event_Handler | |
| virtual | ~ACE_Event_Handler (void) |
| virtual ACE_HANDLE | get_handle (void) const |
| virtual void | set_handle (ACE_HANDLE) |
| virtual int | priority (void) const |
| virtual void | priority (int priority) |
| virtual int | handle_input (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_output (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_exception (ACE_HANDLE fd=ACE_INVALID_HANDLE) |
| virtual int | handle_timeout (const ACE_Time_Value ¤t_time, const void *act=0) |
| virtual int | handle_exit (ACE_Process *) |
| virtual int | handle_close (ACE_HANDLE handle, ACE_Reactor_Mask close_mask) |
| virtual int | handle_signal (int signum, siginfo_t *=0, ucontext_t *=0) |
| virtual int | resume_handler (void) |
| virtual int | handle_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
| virtual int | handle_group_qos (ACE_HANDLE=ACE_INVALID_HANDLE) |
| virtual void | reactor (ACE_Reactor *reactor) |
| virtual ACE_Reactor * | reactor (void) const |
| virtual ACE_Reactor_Timer_Interface * | reactor_timer_interface (void) const |
| virtual Reference_Count | add_reference (void) |
| virtual Reference_Count | remove_reference (void) |
| Reference_Counting_Policy & | reference_counting_policy (void) |
Public Member Functions inherited from ACE_Shared_Object | |
| ACE_Shared_Object (void) | |
| virtual | ~ACE_Shared_Object (void) |
| virtual int | init (int argc, ACE_TCHAR *argv[]) |
| virtual int | fini (void) |
| virtual int | info (ACE_TCHAR **info_string, size_t length=0) const |
Static Public Member Functions | |
| static int | service_initialize () |
Static Public Member Functions inherited from OpenDDS::DCPS::MonitorFactory | |
| static int | service_initialize () |
Static Public Member Functions inherited from ACE_Event_Handler | |
| static ACE_THR_FUNC_RETURN | read_adapter (void *event_handler) |
| static int | register_stdin_handler (ACE_Event_Handler *eh, ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr, int flags=THR_DETACHED) |
| static int | remove_stdin_handler (ACE_Reactor *reactor, ACE_Thread_Manager *thr_mgr) |
Private Member Functions | |
| DDS::DataWriter_ptr | create_data_writer (DDS::DomainParticipant_ptr participant, DDS::Publisher_ptr publisher, const char *type_name, const char *topic_name, const DDS::DataWriterQos &dw_qos) |
Private Attributes | |
| ServiceParticipantReportDataWriter_var | sp_writer_ |
| DomainParticipantReportDataWriter_var | dp_writer_ |
| TopicReportDataWriter_var | topic_writer_ |
| PublisherReportDataWriter_var | pub_writer_ |
| SubscriberReportDataWriter_var | sub_writer_ |
| DataWriterReportDataWriter_var | dw_writer_ |
| DataWriterPeriodicReportDataWriter_var | dw_per_writer_ |
| DataReaderReportDataWriter_var | dr_writer_ |
| DataReaderPeriodicReportDataWriter_var | dr_per_writer_ |
| TransportReportDataWriter_var | transport_writer_ |
Additional Inherited Members | |
Public Types inherited from ACE_Event_Handler | |
| typedef long | Reference_Count |
Public Attributes inherited from ACE_Service_Object | |
| ACE_ALLOC_HOOK_DECLARE | |
Public Attributes inherited from ACE_Event_Handler | |
| LO_PRIORITY | |
| HI_PRIORITY | |
| NULL_MASK | |
| READ_MASK | |
| WRITE_MASK | |
| EXCEPT_MASK | |
| ACCEPT_MASK | |
| CONNECT_MASK | |
| TIMER_MASK | |
| QOS_MASK | |
| GROUP_QOS_MASK | |
| SIGNAL_MASK | |
| ALL_EVENTS_MASK | |
| RWE_MASK | |
| DONT_CALL | |
| ACE_EVENT_HANDLER_NOT_RESUMED | |
| ACE_REACTOR_RESUMES_HANDLER | |
| ACE_APPLICATION_RESUMES_HANDLER | |
Protected Types inherited from ACE_Event_Handler | |
| typedef ACE_Atomic_Op< ACE_SYNCH_MUTEX, Reference_Count > | Atomic_Reference_Count |
Protected Member Functions inherited from ACE_Event_Handler | |
| ACE_Event_Handler (ACE_Reactor *=0, int priority=ACE_Event_Handler::LO_PRIORITY) | |
Protected Attributes inherited from ACE_Event_Handler | |
| Atomic_Reference_Count | reference_count_ |
Full implementation of the MonitorFactoryImpl.
Full version of this library is implemented by the monitor lib.
Definition at line 32 of file MonitorFactoryImpl.h.
| OpenDDS::DCPS::MonitorFactoryImpl::MonitorFactoryImpl | ( | ) |
Definition at line 33 of file MonitorFactoryImpl.cpp.
|
virtual |
Definition at line 37 of file MonitorFactoryImpl.cpp.
|
virtual |
Factory function to create a data reader monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 93 of file MonitorFactoryImpl.cpp.
References dr_writer_.
|
virtual |
Factory function to create a data reader periodic monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 99 of file MonitorFactoryImpl.cpp.
References dr_per_writer_.
|
private |
Definition at line 111 of file MonitorFactoryImpl.cpp.
References ACE_DEBUG, OpenDDS::DCPS::DEFAULT_STATUS_MASK, CORBA::is_nil(), LM_DEBUG, and TOPIC_QOS_DEFAULT.
Referenced by initialize().
|
virtual |
Factory function to create a data writer monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 81 of file MonitorFactoryImpl.cpp.
References dw_writer_.
|
virtual |
Factory function to create a data writer periodic monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 87 of file MonitorFactoryImpl.cpp.
References dw_per_writer_.
|
virtual |
Factory function to create a domain participant monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 48 of file MonitorFactoryImpl.cpp.
References dp_writer_, OpenDDS::DCPS::DomainParticipantImpl::get_domain_id(), and OpenDDS::DCPS::MONITOR_DOMAIN_ID.
|
virtual |
Factory function to create a publisher monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 69 of file MonitorFactoryImpl.cpp.
References pub_writer_.
|
virtual |
Factory function to create a service participant monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 42 of file MonitorFactoryImpl.cpp.
|
virtual |
Factory function to create a subscriber monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 75 of file MonitorFactoryImpl.cpp.
References sub_writer_.
|
virtual |
Factory function to create a topic monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 63 of file MonitorFactoryImpl.cpp.
References topic_writer_.
|
virtual |
Factory function to create a transport monitor object.
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 105 of file MonitorFactoryImpl.cpp.
References transport_writer_.
| ServiceParticipantReportDataWriter_ptr OpenDDS::DCPS::MonitorFactoryImpl::get_sp_writer | ( | ) |
Definition at line 57 of file MonitorFactoryImpl.cpp.
References sp_writer_.
Referenced by OpenDDS::DCPS::SPMonitorImpl::report().
|
virtual |
Initialize the monitor (required to report data)
Reimplemented from OpenDDS::DCPS::MonitorFactory.
Definition at line 139 of file MonitorFactoryImpl.cpp.
References ACE_DEBUG, ACE_TEXT(), OpenDDS::DCPS::TransportRegistry::bind_config(), OpenDDS::DCPS::TransportRegistry::create_config(), create_data_writer(), OpenDDS::DCPS::TransportRegistry::create_inst(), OpenDDS::DCPS::DATA_READER_MONITOR_TOPIC, OpenDDS::DCPS::DATA_READER_PERIODIC_MONITOR_TOPIC, OpenDDS::DCPS::DATA_WRITER_MONITOR_TOPIC, OpenDDS::DCPS::DATA_WRITER_PERIODIC_MONITOR_TOPIC, OpenDDS::DCPS::TransportRegistry::DEFAULT_INST_PREFIX, OpenDDS::DCPS::DEFAULT_STATUS_MASK, OpenDDS::DCPS::DOMAIN_PARTICIPANT_MONITOR_TOPIC, dp_writer_, dr_per_writer_, dr_writer_, DDS::DataWriterQos::durability, dw_per_writer_, dw_writer_, TAO::String_var< charT >::in(), OpenDDS::DCPS::RcHandle< T >::in(), OpenDDS::DCPS::TransportRegistry::instance(), OpenDDS::DCPS::TransportConfig::instances_, CORBA::is_nil(), OpenDDS::DCPS::RcHandle< T >::is_nil(), DDS::DurabilityQosPolicy::kind, LM_DEBUG, OpenDDS::DCPS::MONITOR_DOMAIN_ID, PARTICIPANT_QOS_DEFAULT, pub_writer_, OpenDDS::DCPS::PUBLISHER_MONITOR_TOPIC, PUBLISHER_QOS_DEFAULT, DDS::RETCODE_OK, OpenDDS::DCPS::SERVICE_PARTICIPANT_MONITOR_TOPIC, sp_writer_, sub_writer_, OpenDDS::DCPS::SUBSCRIBER_MONITOR_TOPIC, TheServiceParticipant, TheTransportRegistry, OpenDDS::DCPS::TOPIC_MONITOR_TOPIC, topic_writer_, DDS::TRANSIENT_LOCAL_DURABILITY_QOS, OpenDDS::DCPS::TRANSPORT_MONITOR_TOPIC, and transport_writer_.
|
static |
Definition at line 373 of file MonitorFactoryImpl.cpp.
References OpenDDS::DCPS::ACE_FACTORY_DEFINE(), ACE_STATIC_SVC_DEFINE(), ACE_SVC_NAME(), ACE_SVC_OBJ_T, ACE_TEXT(), ACE_Service_Type::DELETE_OBJ, ACE_Service_Type::DELETE_THIS, OPENDDS_END_VERSIONED_NAMESPACE_DECL, and ACE_Service_Config::process_directive().
|
private |
Definition at line 83 of file MonitorFactoryImpl.h.
Referenced by create_dp_monitor(), and initialize().
|
private |
Definition at line 90 of file MonitorFactoryImpl.h.
Referenced by create_data_reader_periodic_monitor(), and initialize().
|
private |
Definition at line 89 of file MonitorFactoryImpl.h.
Referenced by create_data_reader_monitor(), and initialize().
|
private |
Definition at line 88 of file MonitorFactoryImpl.h.
Referenced by create_data_writer_periodic_monitor(), and initialize().
|
private |
Definition at line 87 of file MonitorFactoryImpl.h.
Referenced by create_data_writer_monitor(), and initialize().
|
private |
Definition at line 85 of file MonitorFactoryImpl.h.
Referenced by create_publisher_monitor(), and initialize().
|
private |
Definition at line 82 of file MonitorFactoryImpl.h.
Referenced by get_sp_writer(), and initialize().
|
private |
Definition at line 86 of file MonitorFactoryImpl.h.
Referenced by create_subscriber_monitor(), and initialize().
|
private |
Definition at line 84 of file MonitorFactoryImpl.h.
Referenced by create_topic_monitor(), and initialize().
|
private |
Definition at line 91 of file MonitorFactoryImpl.h.
Referenced by create_transport_monitor(), and initialize().
1.8.13