Ejemplo n.º 1
0
 public CoreGraphDatabase(File storeDir, Config config, GraphDatabaseFacadeFactory.Dependencies dependencies, DiscoveryServiceFactory discoveryServiceFactory)
 {
     System.Func <PlatformModule, AbstractEditionModule> factory = platformModule =>
     {
         _editionModule = new EnterpriseCoreEditionModule(platformModule, discoveryServiceFactory);
         return(_editionModule);
     };
     (new GraphDatabaseFacadeFactory(DatabaseInfo.CORE, factory)).initFacade(storeDir, config, dependencies, this);
 }
Ejemplo n.º 2
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test public void fileWatcherFileNameFilter()
        public virtual void FileWatcherFileNameFilter()
        {
            DatabaseLayout layout = _testDirectory.databaseLayout();

            System.Predicate <string> filter = EnterpriseCoreEditionModule.FileWatcherFileNameFilter();
            assertFalse(filter(layout.MetadataStore().Name));
            assertFalse(filter(layout.NodeStore().Name));
            assertTrue(filter(TransactionLogFiles.DEFAULT_NAME + ".1"));
            assertTrue(filter(IndexConfigStore.INDEX_DB_FILE_NAME + ".any"));
            assertTrue(filter(layout.MetadataStore().Name + PageCacheWarmer.SUFFIX_CACHEPROF));
        }