00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039 #include "SideportListener.h"
00040
00041 #include "ariba/overlay/BaseOverlay.h"
00042
00043 namespace ariba {
00044
00045 SideportListener SideportListener::DEFAULT;
00046
00047 SideportListener::SideportListener() : overlay(NULL) {
00048 }
00049
00050 SideportListener::~SideportListener(){
00051 }
00052
00053 string SideportListener::getEndpointDescription( const LinkID& link ) const {
00054 if( overlay == NULL ) return "";
00055 return overlay->getEndpointDescriptor(link).toString();
00056 }
00057
00058 string SideportListener::getEndpointDescription( const NodeID& node ) const {
00059 if( overlay == NULL ) return "";
00060 return overlay->getEndpointDescriptor(node).toString();
00061 }
00062
00063 const NodeID& SideportListener::getNodeID( const LinkID& link ) const {
00064 if( overlay == NULL ) return NodeID::UNSPECIFIED;
00065 return overlay->getNodeID(link);
00066 }
00067
00068 vector<LinkID> SideportListener::getLinkIDs( const NodeID& node ) const {
00069 if( overlay == NULL ) return vector<LinkID>();
00070 return overlay->getLinkIDs( node );
00071 }
00072
00073 void SideportListener::configure( overlay::BaseOverlay* _overlay ) {
00074 overlay = _overlay;
00075 }
00076
00077 void SideportListener::onLinkUp(const LinkID& lnk, const NodeID& local, const NodeID& remote, const SpoVNetID& spovnet){
00078 }
00079
00080 void SideportListener::onLinkDown(const LinkID& lnk, const NodeID& local, const NodeID& remote, const SpoVNetID& spovnet){
00081 }
00082
00083 void SideportListener::onLinkChanged(const LinkID& lnk, const NodeID& local, const NodeID& remote, const SpoVNetID& spovnet){
00084 }
00085
00086 void SideportListener::onLinkFail(const LinkID& lnk, const NodeID& local, const NodeID& remote, const SpoVNetID& spovnet){
00087 }
00088
00089 }