Пример #1
0
        public virtual GraphDatabaseFacade NewGraphDatabase(Config config, Dependencies dependencies)
        {
            EnterpriseEditionSettings.Mode mode = (EnterpriseEditionSettings.Mode)config.Get(EnterpriseEditionSettings.mode);
            File storeDir = ( File )config.Get(GraphDatabaseSettings.databases_root_path);
            SecureDiscoveryServiceFactory discoveryServiceFactory = ( SecureDiscoveryServiceFactory )(new OpenEnterpriseDiscoveryServiceFactorySelector()).Select((Config)config);

            switch (mode)
            {
            case EnterpriseEditionSettings.Mode.CORE:
                return(new OpenEnterpriseCoreGraphDatabase(storeDir, config, dependencies, discoveryServiceFactory));

            case EnterpriseEditionSettings.Mode.READ_REPLICA:
                return(new OpenEnterpriseReadReplicaGraphDatabase(storeDir, config, dependencies, discoveryServiceFactory));

            case EnterpriseEditionSettings.Mode.SINGLE:
                return(new OpenEnterpriseGraphDatabaseFacade(storeDir, config, dependencies));

            default:
                return(base.NewGraphDatabase(config, dependencies));
            }
        }
Пример #2
0
 /// <param name="config"> </param>
 /// <param name="graphFactory"> </param>
 /// <param name="dependencies"> </param>
 public EnterpriseNeoServer(Config config, GraphFactory graphFactory, Dependencies dependencies) : base(config, graphFactory, dependencies)
 {
 }
Пример #3
0
 /// <param name="config"> </param>
 /// <param name="dependencies"> </param>
 public EnterpriseNeoServer(Config config, Dependencies dependencies) : base(config, new OpenEnterpriseGraphFactory(), dependencies)
 {
 }
Пример #4
0
 protected internal override AbstractNeoServer CreateNeoServer(GraphFactory graphFactory, Config config, Dependencies dependencies)
 {
     return(new OpenEnterpriseNeoServer(config, graphFactory, dependencies));
 }
Пример #5
0
 public PlatformModuleAnonymousInnerClass(GraphDatabaseFacadeFactoryAnonymousInnerClass outerInstance, File storeDir, Config config, UnknownType databaseInfo, Org.Neo4j.Graphdb.facade.GraphDatabaseFacadeFactory.Dependencies dependencies, LifeSupport lifeMock) : base(storeDir, config, databaseInfo, dependencies)
 {
     this.outerInstance = outerInstance;
     this._lifeMock     = lifeMock;
 }