Changeset 5284 for source/ariba/overlay
- Timestamp:
- Jul 24, 2009, 3:23:11 PM (15 years ago)
- Location:
- source/ariba/overlay
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/overlay/BaseOverlay.cpp
r5274 r5284 185 185 // route message using overlay 186 186 else { 187 logging_error("Could not send message ");187 logging_error("Could not send message descriptor=" << ld ); 188 188 logging_debug( "sendMessage: Routing message to node " << ld->remoteNode.toString() ); 189 189 overlayInterface->routeMessage( ld->remoteNode, message ); … … 689 689 690 690 void BaseOverlay::onLinkUp(const LinkID& id, 691 const NetworkLocator* local, const NetworkLocator* remote) {691 const address_v* local, const address_v* remote) { 692 692 logging_debug( "Link up with base communication link id=" << id ); 693 693 … … 740 740 // if link is a relayed link ->convert to direct link 741 741 if (ld->relay) { 742 logging_force( "Converting to direct link: " << ld ); 742 743 ld->up = true; 743 744 ld->relay = false; … … 756 757 757 758 void BaseOverlay::onLinkDown(const LinkID& id, 758 const NetworkLocator* local, const NetworkLocator* remote) {759 const address_v* local, const address_v* remote) { 759 760 760 761 // get descriptor for link … … 780 781 781 782 void BaseOverlay::onLinkChanged(const LinkID& id, 782 const NetworkLocator* oldlocal, const NetworkLocator* newlocal,783 const NetworkLocator* oldremote, const NetworkLocator* newremote) {783 const address_v* oldlocal, const address_v* newlocal, 784 const address_v* oldremote, const address_v* newremote) { 784 785 785 786 // get descriptor for link … … 797 798 798 799 void BaseOverlay::onLinkFail(const LinkID& id, 799 const NetworkLocator* local, const NetworkLocator* remote) {800 const address_v* local, const address_v* remote) { 800 801 logging_debug( "Link fail with base communication link id=" << id ); 801 802 … … 813 814 } 814 815 815 void BaseOverlay::onLinkQoSChanged(const LinkID& id, const NetworkLocator* local,816 const NetworkLocator* remote, const QoSParameterSet& qos) {816 void BaseOverlay::onLinkQoSChanged(const LinkID& id, const address_v* local, 817 const address_v* remote, const QoSParameterSet& qos) { 817 818 logging_debug( "Link quality changed with base communication link id=" << id ); 818 819 … … 826 827 } 827 828 828 bool BaseOverlay::onLinkRequest( const LinkID& id, const NetworkLocator* local,829 const NetworkLocator* remote ) {830 logging_debug("Accepting link request from " << remote->to String() );829 bool BaseOverlay::onLinkRequest( const LinkID& id, const address_v* local, 830 const address_v* remote ) { 831 logging_debug("Accepting link request from " << remote->to_string() ); 831 832 return true; 832 833 } … … 1358 1359 case OverlayMsg::typeDirectLink: { 1359 1360 LinkDescriptor* rld = getDescriptor( overlayMsg->getRelayLink() ); 1361 logging_force( "Received direct link convert notification for " << rld ); 1360 1362 rld->communicationId = ld->communicationId; 1361 1363 rld->communicationUp = true; -
source/ariba/overlay/BaseOverlay.h
r5151 r5284 118 118 namespace overlay { 119 119 120 using namespace ariba::addressing; 121 120 122 class LinkDescriptor; 121 123 … … 285 287 * @see ariba::communication::CommunicationEvents.h 286 288 */ 287 virtual void onLinkUp(const LinkID& id, const NetworkLocator* local,288 const NetworkLocator* remote);289 290 /** 291 * @see ariba::communication::CommunicationEvents.h 292 */ 293 virtual void onLinkDown(const LinkID& id, const NetworkLocator* local,294 const NetworkLocator* remote);289 virtual void onLinkUp(const LinkID& id, const address_v* local, 290 const address_v* remote); 291 292 /** 293 * @see ariba::communication::CommunicationEvents.h 294 */ 295 virtual void onLinkDown(const LinkID& id, const address_v* local, 296 const address_v* remote); 295 297 296 298 /** … … 298 300 */ 299 301 virtual void onLinkChanged(const LinkID& id, 300 const NetworkLocator* oldlocal, const NetworkLocator* newlocal,301 const NetworkLocator* oldremote, const NetworkLocator* newremote);302 303 /** 304 * @see ariba::communication::CommunicationEvents.h 305 */ 306 virtual void onLinkFail(const LinkID& id, const NetworkLocator* local,307 const NetworkLocator* remote);302 const address_v* oldlocal, const address_v* newlocal, 303 const address_v* oldremote, const address_v* newremote); 304 305 /** 306 * @see ariba::communication::CommunicationEvents.h 307 */ 308 virtual void onLinkFail(const LinkID& id, const address_v* local, 309 const address_v* remote); 308 310 309 311 /** … … 311 313 */ 312 314 virtual void onLinkQoSChanged(const LinkID& id, 313 const NetworkLocator* local, const NetworkLocator* remote,315 const address_v* local, const address_v* remote, 314 316 const QoSParameterSet& qos); 315 317 … … 317 319 * @see ariba::communication::CommunicationEvents.h 318 320 */ 319 virtual bool onLinkRequest(const LinkID& id, const NetworkLocator* local,320 const NetworkLocator* remote);321 virtual bool onLinkRequest(const LinkID& id, const address_v* local, 322 const address_v* remote); 321 323 322 324 /** -
source/ariba/overlay/LinkDescriptor.h
r5151 r5284 128 128 s << "serv=" << service.toString() << " "; 129 129 s << "overId=" << overlayId.toString().substr(0,6) << " "; 130 s << "commUp=" << communicationUp << " "; 130 131 s << "commId=" << communicationId.toString().substr(0,6) << " "; 131 132 s << "usedAsRel=" << usedAsRelay << " ";
Note:
See TracChangeset
for help on using the changeset viewer.