Changeset 2423 for XIOS3


Ignore:
Timestamp:
10/27/22 13:56:18 (18 months ago)
Author:
jderouillat
Message:

Introduce partially trunk's developement to manage N2 servers (especially to put in order the send of closeDefinition to N2 servers)

Location:
XIOS3/branches/xios-3.0-beta/src/node
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/branches/xios-3.0-beta/src/node/context.cpp

    r2397 r2423  
    640640        serverPrimServer.push_back(server);   
    641641 
    642        
     642        // Already integrated in trunk with new service management commit ids = [2405-2407] 
     643        clientsId_[client] = CXios::getContextsManager()->getServerContextName( CXios::defaultPoolId, CXios::defaultServerId, i, type, getContextId() ) ; 
    643644      } 
    644645    } 
     
    11041105    if (serviceType_==CServicesManager::CLIENT)  
    11051106    { 
    1106       for(auto field : fileOutField) slaveServers_.insert(field->getContextClient()) ;  
    1107       for(auto field : fileInField) slaveServers_.insert(field->getContextClient()) ;  
    1108     } 
    1109     else if (serviceType_==CServicesManager::GATHERER)  
    1110       for(auto field : fileOutField) slaveServers_.insert(field->getContextClient()) ;  
     1107      // Intermediary implementation looking at trunk service management commit ids = [2405-2407] 
     1108      //  -> slaveServers from trunk (std::vector), going through a std::set 
     1109      //  -> clientsId_ not implemented for CLIENT for now (while done in trunk within the new service management) 
     1110      set< CContextClient*>  slaves ; // need an ordered list ; 
     1111      for(auto field : fileOutField) slaves.insert(field->getContextClient()) ;  
     1112      for(auto field : fileInField) slaves.insert(field->getContextClient()) ;  
     1113      for(auto& slave : slaves) slaveServers_.push_back(slave) ; 
     1114    } 
     1115    else if (serviceType_==CServicesManager::GATHERER) 
     1116    { 
     1117      // Already integrated in trunk with new service management commit ids = [2405-2407] 
     1118      map<string, CContextClient*> slaves ; // need an ordered list ; 
     1119      for(auto field : fileOutField) slaves[clientsId_[field->getContextClient()]] = field->getContextClient() ; 
     1120      for(auto& slave : slaves) slaveServers_.push_back(slave.second) ; 
     1121    } 
    11111122 
    11121123    for(auto& slaveServer : slaveServers_) sendCloseDefinition(slaveServer) ; 
  • XIOS3/branches/xios-3.0-beta/src/node/context.hpp

    r2326 r2423  
    314314 
    315315         // list of slave servers (IO server or others) 
    316          set<CContextClient*> slaveServers_ ; 
     316         // Already in trunk within the new service management, commit ids = [2405-2407] 
     317         std::vector<CContextClient*> slaveServers_ ; 
     318         std::map<CContextClient*, std::string> clientsId_ ; 
     319 
    317320      private: 
    318321         // the map containing context client associated to it string id for coupling out ; 
Note: See TracChangeset for help on using the changeset viewer.