/** * Is flushing required? */ public boolean flushCheck() { return new RuntimeMemoryChecker( ApplicationSetup.MEMORY_THRESHOLD_SINGLEPASS, maxMem) .checkMemory(); } }
@Override protected void load_indexer_properties() { super.load_indexer_properties(); docsPerCheck = ApplicationSetup.DOCS_CHECK_SINGLEPASS; maxDocsPerFlush = Integer.parseInt(ApplicationSetup.getProperty("indexing.singlepass.max.documents.flush", "0")); memoryCheck = new RuntimeMemoryChecker(); logger.info("Checking memory usage every " + docsPerCheck + " maxDocPerFlush=" + maxDocsPerFlush); }