Interface PageStoreManager

All Known Implementing Classes:
PageStoreManagerImpl

public interface PageStoreManager
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    allocatePage(int grpId)
    Allocates a page for the given page space.
    void
    exportStore(int grpId, Path destinationPath)
    Exports the store.
    boolean
    Checks if meta page for specified store is persisted.
    int
    metaPageId(int grpId)
    Gets meta page ID for specified store.
    int
    pageCount(int grpId)
    Gets page count.
    void
    read(int grpId, int pageId, ByteBuffer pageBuf)
    Reads a page for the given group ID.
    void
    reservePage(int grpId, int pageId)
    Reserves a page.
    void
    startStore(int grpId, Path path, boolean restorationMode)
    Starts the store with the specified ID.
    void
    stopStore(int grpId)
    Stops the store with the specified ID.
    void
    write(int grpId, int pageId, ByteBuffer pageBuf)
    Writes the page for the given group ID.
  • Method Details

    • read

      void read(int grpId, int pageId, ByteBuffer pageBuf) throws IgniteCheckedException
      Reads a page for the given group ID. Cache ID may be 0 if the page is a meta page.
      Parameters:
      storeId - Group ID.
      pageId - PageID to read.
      pageBuf - Page buffer to write to.
      Throws:
      IgniteCheckedException - if fails.
    • write

      void write(int grpId, int pageId, ByteBuffer pageBuf) throws IgniteCheckedException
      Writes the page for the given group ID. Cache ID may be 0 if the page is a meta page.
      Parameters:
      grpId - Group ID.
      pageId - Page ID.
      pageBuf - Page buffer to write.
      Throws:
      IgniteCheckedException - if fails.
    • allocatePage

      int allocatePage(int grpId) throws IgniteCheckedException
      Allocates a page for the given page space.
      Parameters:
      grpId - Group ID.
      Returns:
      Allocated page ID.
      Throws:
      IgniteCheckedException - if fails.
    • reservePage

      void reservePage(int grpId, int pageId) throws IgniteCheckedException
      Reserves a page.
      Parameters:
      grpId - Group ID.
      pageId - Page ID.
      Throws:
      IgniteCheckedException - if fails.
    • metaPageId

      int metaPageId(int grpId)
      Gets meta page ID for specified store.
      Parameters:
      grpId - Group ID.
      Returns:
      Meta page ID.
    • isMetaPagePersisted

      boolean isMetaPagePersisted(int grpId) throws IgniteCheckedException
      Checks if meta page for specified store is persisted.
      Parameters:
      grpId - Group ID.
      Returns:
      true if persisted, false otherwise.
      Throws:
      IgniteCheckedException - if fails.
    • pageCount

      int pageCount(int grpId)
      Gets page count.
      Parameters:
      grpId - Group ID.
      Returns:
      Page count.
    • startStore

      void startStore(int grpId, Path path, boolean restorationMode) throws IgniteCheckedException
      Starts the store with the specified ID.
      Parameters:
      grpId - Group ID.
      path - Path.
      restorationMode - Flag indicating restoration mode.
      Throws:
      IgniteCheckedException - if fails.
    • stopStore

      void stopStore(int grpId) throws IgniteCheckedException
      Stops the store with the specified ID.
      Parameters:
      grpId - Group ID.
      path - Path.
      Throws:
      IgniteCheckedException - if fails.
    • exportStore

      void exportStore(int grpId, Path destinationPath) throws IgniteCheckedException
      Exports the store.
      Parameters:
      grpId - Group ID.
      destinationPath - destination path.
      Throws:
      IgniteCheckedException - if fails.