- Timestamp:
- 10/27/22 13:56:18 (18 months ago)
- 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 640 640 serverPrimServer.push_back(server); 641 641 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() ) ; 643 644 } 644 645 } … … 1104 1105 if (serviceType_==CServicesManager::CLIENT) 1105 1106 { 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 } 1111 1122 1112 1123 for(auto& slaveServer : slaveServers_) sendCloseDefinition(slaveServer) ; -
XIOS3/branches/xios-3.0-beta/src/node/context.hpp
r2326 r2423 314 314 315 315 // 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 317 320 private: 318 321 // the map containing context client associated to it string id for coupling out ;
Note: See TracChangeset
for help on using the changeset viewer.