OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::ScheduleCommand Class Reference

Inheritance diagram for OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::ScheduleCommand:

Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::ScheduleCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ScheduleCommand (EndHistoricSamplesMissedSweeper *sweeper, OpenDDS::DCPS::RcHandle< OpenDDS::DCPS::WriterInfo > &info)
virtual void execute ()

Detailed Description

Definition at line 152 of file DataReaderImpl.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::ScheduleCommand::ScheduleCommand ( EndHistoricSamplesMissedSweeper sweeper,
OpenDDS::DCPS::RcHandle< OpenDDS::DCPS::WriterInfo > &  info 
) [inline]

Definition at line 154 of file DataReaderImpl.h.

00156       : CommandBase(sweeper, info)
00157     { }


Member Function Documentation

void OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::ScheduleCommand::execute (  )  [virtual]

Definition at line 3426 of file DataReaderImpl.cpp.

References OpenDDS::DCPS::DCPS_debug_level, OpenDDS::DCPS::RcHandle< T >::in(), OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::CommandBase::info_, OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::schedule_timer(), and OpenDDS::DCPS::EndHistoricSamplesMissedSweeper::CommandBase::sweeper_.

03427 {
03428   static const ACE_Time_Value ten_seconds(10);
03429 
03430   //Pass pointer to writer info for timer to use, must decrease ref count when canceling timer
03431   const void* arg = reinterpret_cast<const void*>(info_.in());
03432   info_->_add_ref();
03433 
03434   info_->historic_samples_timer_ = sweeper_->reactor()->schedule_timer(sweeper_,
03435                                                                        arg,
03436                                                                        ten_seconds);
03437   if (DCPS_debug_level) {
03438     ACE_DEBUG((LM_INFO, "(%P|%t) EndHistoricSamplesMissedSweeper::ScheduleCommand::execute() - Scheduled sweeper %d\n", info_->historic_samples_timer_));
03439   }
03440 }


The documentation for this class was generated from the following files:
Generated on Fri Feb 12 20:06:12 2016 for OpenDDS by  doxygen 1.4.7