Interface OPageIsBrokenListener

All Known Implementing Classes:
OAbstractPaginatedStorage, ODirectMemoryStorage, OLocalPaginatedStorage

public interface OPageIsBrokenListener
Listener which is called when it is detected that data page in file is broken. Typically it means that magic number stored inside of the page of hash code generated by data does not match values stored in page itself. Listener should either delegate code to other thread or should execute operations which will consume very small amount of time.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    pageIsBroken(String fileName, long pageIndex)
    Method is called by write cache when it is detected that data page in file is broken.
  • Method Details

    • pageIsBroken

      void pageIsBroken(String fileName, long pageIndex)
      Method is called by write cache when it is detected that data page in file is broken.
      Parameters:
      fileName - Name of broken file.
      pageIndex - Index of page which is broken in file.