Exemplo n.º 1
0
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test void fileWatcherFileNameFilter()
        internal virtual void FileWatcherFileNameFilter()
        {
            DatabaseLayout layout = _testDirectory.databaseLayout();

            System.Predicate <string> filter = CommunityEditionModule.CommunityFileWatcherFileNameFilter();
            assertFalse(filter(layout.MetadataStore().Name));
            assertFalse(filter(layout.NodeStore().Name));
            assertTrue(filter(TransactionLogFiles.DEFAULT_NAME + ".1"));
            assertTrue(filter(IndexConfigStore.INDEX_DB_FILE_NAME + ".any"));
        }
Exemplo 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));
        }
Exemplo n.º 3
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 databaseLayout = ClusterRule.TestDirectory.databaseLayout();

            System.Predicate <string> filter = HighlyAvailableEditionModule.FileWatcherFileNameFilter();
            string metadataStoreName         = databaseLayout.MetadataStore().Name;

            assertFalse(filter(metadataStoreName));
            assertFalse(filter(databaseLayout.NodeStore().Name));
            assertTrue(filter(TransactionLogFiles.DEFAULT_NAME + ".1"));
            assertTrue(filter(IndexConfigStore.INDEX_DB_FILE_NAME + ".any"));
            assertTrue(filter(StoreUtil.BRANCH_SUBDIRECTORY));
            assertTrue(filter(StoreUtil.TEMP_COPY_DIRECTORY_NAME));
            assertTrue(filter(metadataStoreName + PageCacheWarmer.SUFFIX_CACHEPROF));
        }