Ignore:
Timestamp:
09/20/22 11:12:53 (21 months ago)
Author:
ymipsl
Message:

Refactor service management from context
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/node/context.hpp

    r2404 r2405  
    5555           EVENT_ID_COLLECTIVE=100, 
    5656           EVENT_ID_CLOSE_DEFINITION,EVENT_ID_UPDATE_CALENDAR, 
    57            EVENT_ID_CREATE_FILE_HEADER,EVENT_ID_CONTEXT_FINALIZE, 
     57           EVENT_ID_CONTEXT_FINALIZE, 
    5858           EVENT_ID_CONTEXT_FINALIZE_CLIENT, 
    5959           EVENT_ID_COUPLER_IN_READY, 
     
    104104         void initServer(MPI_Comm intraComm, int serviceType ); 
    105105         void createClientInterComm(MPI_Comm interCommClient, MPI_Comm interCommServer)  ; 
     106  
    106107         void createServerInterComm(void)  ; 
     108         void createServerInterComm_old(void)  ; 
     109         void createServerInterComm(const string& poolId, const string& serverId, vector<pair<string, pair<CContextClient*,CContextServer*>>>& clientServers ) ; 
     110  
    107111 
    108112         bool isInitialized(void); 
     
    168172         // There are something to send on closing context defintion 
    169173         void sendUpdateCalendar(int step); 
    170          void sendCreateFileHeader(void); 
    171174         void sendEnabledFiles(const std::vector<CFile*>& activeFiles); 
    172175         void sendEnabledFieldsInFiles(const std::vector<CFile*>& activeFiles); 
     
    187190         void recvUpdateCalendar(CBufferIn& buffer); 
    188191         static void recvCloseDefinition(CEventServer& event); 
    189          static void recvCreateFileHeader(CEventServer& event); 
    190          void recvCreateFileHeader(CBufferIn& buffer); 
    191192         static void recvSolveInheritanceContext(CEventServer& event); 
    192193         void recvSolveInheritanceContext(CBufferIn& buffer); 
     
    315316         // list of slave servers (IO server or others) 
    316317         set<CContextClient*> slaveServers_ ; 
     318 
     319      private: 
     320        std::string defaultReaderId ; 
     321        std::string defaultWriterId ; 
     322        std::string defaultGathererId ; 
     323 
     324        std::map<std::string, CContextClient*> clients_ ; 
     325        std::map<std::string, CContextClient*> servers_ ; 
     326 
    317327      private: 
    318328         // the map containing context client associated to it string id for coupling out ; 
Note: See TracChangeset for help on using the changeset viewer.