Ignore:
Timestamp:
Feb 4, 2010, 5:29:37 PM (14 years ago)
Author:
Christoph Mayer
Message:

-von außen konfigurierbare bootstrap module, -periodicbroadcast crash fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/overlay/BaseOverlay.cpp

    r7018 r7532  
    824824        }
    825825
    826 
    827826        //ovl.visShowNodeBubble ( ovlId, nodeId, "joining..." );
    828827        logging_info( "Starting to join spovnet " << id.toString() <<
     
    830829
    831830        if(bootstrapEp.isUnspecified() && state == BaseOverlayStateInvalid){
     831
     832                //** FIRST STEP - MANDATORY */
    832833
    833834                // bootstrap against ourselfs
     
    842843                //ovl.visChangeNodeColor( ovlId, nodeId, OvlVis::NODE_COLORS_GREEN );
    843844
    844                 logging_debug("starting overlay bootstrap module");
    845                 overlayBootstrap.start(this, spovnetId, nodeId);
    846                 overlayBootstrap.publish(bc->getEndpointDescriptor());
    847 
    848845        } else {
     846
     847                //** SECOND STEP - OPTIONAL */
    849848
    850849                // bootstrap against another node
     
    857856}
    858857
    859 void BaseOverlay::leaveSpoVNet() {
    860 
    861         logging_info( "Leaving spovnet " << spovnetId );
    862         bool ret = ( state != this->BaseOverlayStateInvalid );
    863 
     858
     859void BaseOverlay::startBootstrapModules(vector<pair<BootstrapManager::BootstrapType,string> > modules){
     860        logging_debug("starting overlay bootstrap module");
     861        overlayBootstrap.start(this, spovnetId, nodeId, modules);
     862        overlayBootstrap.publish(bc->getEndpointDescriptor());
     863}
     864
     865void BaseOverlay::stopBootstrapModules(){
    864866        logging_debug("stopping overlay bootstrap module");
    865867        overlayBootstrap.stop();
    866868        overlayBootstrap.revoke();
     869}
     870
     871void BaseOverlay::leaveSpoVNet() {
     872
     873        logging_info( "Leaving spovnet " << spovnetId );
     874        bool ret = ( state != this->BaseOverlayStateInvalid );
    867875
    868876        logging_debug( "Dropping all auto-links" );
Note: See TracChangeset for help on using the changeset viewer.