InternalRegistryI::InternalRegistryI(const RegistryIPtr& registry, const DatabasePtr& database, const ReapThreadPtr& reaper, const WellKnownObjectsManagerPtr& wellKnownObjects, ReplicaSessionManager& session) : _registry(registry), _database(database), _reaper(reaper), _wellKnownObjects(wellKnownObjects), _fileCache(new FileCache(database->getCommunicator())), _session(session) { Ice::PropertiesPtr properties = database->getCommunicator()->getProperties(); _nodeSessionTimeout = properties->getPropertyAsIntWithDefault("IceGrid.Registry.NodeSessionTimeout", 30); _replicaSessionTimeout = properties->getPropertyAsIntWithDefault("IceGrid.Registry.ReplicaSessionTimeout", 30); }
AdminSessionFactory::AdminSessionFactory(const SessionServantManagerPtr& servantManager, const DatabasePtr& database, const ReapThreadPtr& reaper, const RegistryIPtr& registry) : _servantManager(servantManager), _database(database), _timeout(registry->getSessionTimeout()), _reaper(reaper), _registry(registry), _filters(false) { if(_servantManager) // Not set if Glacier2 session manager adapter not enabled { Ice::PropertiesPtr props = database->getCommunicator()->getProperties(); const_cast<bool&>(_filters) = props->getPropertyAsIntWithDefault("IceGrid.Registry.AdminSessionFilters", 0) > 0; } }