Changeset 6854 for source/ariba/overlay/modules
- Timestamp:
- Nov 5, 2009, 6:58:38 PM (15 years ago)
- Location:
- source/ariba/overlay/modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/modules/OverlayInterface.cpp
r3718 r6854 83 83 } 84 84 85 std::string OverlayInterface::debugInformation() const { 86 return "No Information Available."; 87 } 88 85 89 const OverlayParameterSet& OverlayInterface::getParameters() const { 86 90 return parameters; -
source/ariba/overlay/modules/OverlayInterface.h
r6266 r6854 173 173 const OverlayParameterSet& getParameters() const; 174 174 175 virtual std::string debugInformation() const; 176 175 177 protected: 176 178 /// Reference to an active base overlay -
source/ariba/overlay/modules/chord/Chord.cpp
r6832 r6854 473 473 } 474 474 475 /// @see OverlayInterface.h 476 std::string Chord::debugInformation() const { 477 std::ostringstream s; 478 s << "protocol : Chord" << endl; 479 s << "node_id : " << nodeid.toString() << endl; 480 s << "predecessor: " << (table->get_predesessor()==NULL? "<none>" : 481 table->get_predesessor()->toString()) << endl; 482 s << "successor : " << (table->get_successor()==NULL? "<none>" : 483 table->get_successor()->toString()) << endl; 484 s << "nodes: " << endl; 485 for (size_t i = 0; i < table->size(); i++) { 486 route_item* it = (*table)[i]; 487 if (it->ref_count != 0 && !it->info.isUnspecified()) { 488 s << it->id.toString().substr(0,6) 489 << " using " << it->info.toString().substr(0,6) << endl; 490 } 491 } 492 return s.str(); 493 } 494 495 496 475 497 }} // namespace ariba, overlay -
source/ariba/overlay/modules/chord/Chord.h
r6266 r6854 138 138 const LinkID& lnk = LinkID::UNSPECIFIED); 139 139 140 /// @see OverlayInterface.h 141 virtual std::string debugInformation() const; 142 140 143 /// @see Timer.h 141 144 virtual void eventFunction();
Note:
See TracChangeset
for help on using the changeset viewer.