Ejemplo n.º 1
0
BasicWorldState::BasicWorldState (DisseminationService *pDisService)
    : PeerState (PeerState::NEIGHBOR_STATES),
      _remoteNodes (true, true, true, true),
      _neighborStates(true, true, true, true)
{
    _pDisService = pDisService;

    ConfigFileReader cfgReader (pDisService->_pCfgMgr);
    _bDataCacheStateSeqId = cfgReader.isDataCacheStateEnabled();
    _bTopologyStateSeqId = cfgReader.isTopologyStateEnabled();
    _bSubscriptionStateSeqId = cfgReader.isSubscriptionStateEnabled();
    _ui32DataCacheStateSeqId = _ui32TopologyStateSeqId = _ui32SubscriptionStateSeqId = 1;

    _ui32DeadPeerInterval = DisseminationService::DEFAULT_DEAD_PEER_INTERVAL;
}