Class BacktraceDatabaseFileContext

    • Constructor Summary

      Constructors 
      Constructor Description
      BacktraceDatabaseFileContext​(java.lang.String databasePath, long maxDatabaseSize, int maxRecordNumber)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Remove all files from database directory
      java.lang.Iterable<java.io.File> getAll()
      Get all physical files stored in database directory
      java.lang.Iterable<java.io.File> getRecords()
      Get all valid physical records stored in database directory
      void removeOrphaned​(java.lang.Iterable<BacktraceDatabaseRecord> existingRecords)
      Remove orphaned files existing in database directory
      boolean validFileConsistency()
      Valid all files consistencies
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BacktraceDatabaseFileContext

        public BacktraceDatabaseFileContext​(java.lang.String databasePath,
                                            long maxDatabaseSize,
                                            int maxRecordNumber)
    • Method Detail

      • getAll

        public java.lang.Iterable<java.io.File> getAll()
        Get all physical files stored in database directory
        Specified by:
        getAll in interface DatabaseFileContext
        Returns:
        all existing physical files
      • getRecords

        public java.lang.Iterable<java.io.File> getRecords()
        Get all valid physical records stored in database directory
        Specified by:
        getRecords in interface DatabaseFileContext
        Returns:
        all existing physical records
      • removeOrphaned

        public void removeOrphaned​(java.lang.Iterable<BacktraceDatabaseRecord> existingRecords)
        Remove orphaned files existing in database directory
        Specified by:
        removeOrphaned in interface DatabaseFileContext
        Parameters:
        existingRecords - existing entries in BacktraceDatabaseContext
      • clear

        public void clear()
        Remove all files from database directory
        Specified by:
        clear in interface DatabaseFileContext