Interface PageStoreManager
- All Known Implementing Classes:
PageStoreManagerImpl
public interface PageStoreManager
-
Method Summary
Modifier and TypeMethodDescriptionintallocatePage(int grpId) Allocates a page for the given page space.voidexportStore(int grpId, Path destinationPath) Exports the store.booleanisMetaPagePersisted(int grpId) Checks if meta page for specified store is persisted.intmetaPageId(int grpId) Gets meta page ID for specified store.intpageCount(int grpId) Gets page count.voidread(int grpId, int pageId, ByteBuffer pageBuf) Reads a page for the given group ID.voidreservePage(int grpId, int pageId) Reserves a page.voidstartStore(int grpId, Path path, boolean restorationMode) Starts the store with the specified ID.voidstopStore(int grpId) Stops the store with the specified ID.voidwrite(int grpId, int pageId, ByteBuffer pageBuf) Writes the page for the given group ID.
-
Method Details
-
read
Reads a page for the given group ID. Cache ID may be0if 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
Writes the page for the given group ID. Cache ID may be0if the page is a meta page.- Parameters:
grpId- Group ID.pageId- Page ID.pageBuf- Page buffer to write.- Throws:
IgniteCheckedException- if fails.
-
allocatePage
Allocates a page for the given page space.- Parameters:
grpId- Group ID.- Returns:
- Allocated page ID.
- Throws:
IgniteCheckedException- if fails.
-
reservePage
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
Checks if meta page for specified store is persisted.- Parameters:
grpId- Group ID.- Returns:
trueif persisted,falseotherwise.- Throws:
IgniteCheckedException- if fails.
-
pageCount
int pageCount(int grpId) Gets page count.- Parameters:
grpId- Group ID.- Returns:
- Page count.
-
startStore
Starts the store with the specified ID.- Parameters:
grpId- Group ID.path- Path.restorationMode- Flag indicating restoration mode.- Throws:
IgniteCheckedException- if fails.
-
stopStore
Stops the store with the specified ID.- Parameters:
grpId- Group ID.path- Path.- Throws:
IgniteCheckedException- if fails.
-
exportStore
Exports the store.- Parameters:
grpId- Group ID.destinationPath- destination path.- Throws:
IgniteCheckedException- if fails.
-