Changeset 2483 for source/ariba/overlay/BaseOverlay.h
- Timestamp:
- Feb 24, 2009, 10:06:43 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.h
r2473 r2483 43 43 #include <iostream> 44 44 #include <algorithm> 45 #include <ctime> 45 46 #include <boost/foreach.hpp> 46 47 … … 50 51 #include "ariba/utility/misc/Demultiplexer.hpp" 51 52 #include "ariba/utility/logging/Logging.h" 53 #include "ariba/utility/system/Timer.h" 52 54 53 55 #include "ariba/communication/EndpointDescriptor.h" … … 67 69 using std::map; 68 70 using std::make_pair; 71 using std::pair; 69 72 70 73 using ariba::communication::EndpointDescriptor; … … 92 95 using ariba::utility::MessageSender; 93 96 using ariba::utility::seqnum_t; 97 using ariba::utility::Timer; 94 98 95 99 #define ovl OvlVis::instance() … … 109 113 public MessageReceiver, 110 114 public CommunicationEvents, 111 public OverlayStructureEvents { 115 public OverlayStructureEvents, 116 protected Timer { 112 117 113 118 use_logging_h( BaseOverlay ); … … 248 253 virtual void onNodeJoin( const NodeID& node ); 249 254 255 // for timer events 256 virtual void eventFunction(); 257 250 258 private: 251 259 … … 316 324 static const LinkItem UNSPECIFIED; 317 325 318 LinkItem( const LinkID& _link, const NodeID& _node, 326 LinkItem( const LinkID& _link, const NodeID& _node, 319 327 const ServiceID& _service, ServiceInterface* _interface ) 320 : link( _link ), node( _node ), service( _service ), interface( _interface ){ 328 : link( _link ), node( _node ), service( _service ), interface( _interface ), 329 autolink( false ), lastuse( time(NULL) ) { 321 330 } 331 332 // general information about the link 322 333 323 334 const LinkID link; … … 325 336 ServiceID service; 326 337 ServiceInterface* interface; 338 339 // information needed for auto links 340 341 void markused(){ 342 lastuse = time(NULL); 343 } 344 345 bool autolink; 346 time_t lastuse; 327 347 }; 328 348
Note:
See TracChangeset
for help on using the changeset viewer.