Class IgniteDataStore
- java.lang.Object
-
- org.apache.wicket.pageStore.AbstractPersistentPageStore
-
- org.wicketstuff.datastores.ignite.IgniteDataStore
-
- All Implemented Interfaces:
IPageStore,IPersistentPageStore
public class IgniteDataStore extends AbstractPersistentPageStore implements IPersistentPageStore
An IPageStore implementation that saves serialized pages in Apache IgniteIgnite is not compatible with Java 9 - the following JVM parameters must be used:
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
- Author:
- Alexey Prudnikov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.wicket.pageStore.AbstractPersistentPageStore
AbstractPersistentPageStore.PersistedPage
-
-
Constructor Summary
Constructors Constructor Description IgniteDataStore(String applicatioName, org.apache.ignite.Ignite ignite)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddPersistedPage(String sessionIdentifier, IManageablePage page)voiddestroy()protected IManageablePagegetPersistedPage(String sessionIdentifier, int id)List<IPersistedPage>getPersistedPages(String contextIdentifier)Set<String>getSessionIdentifiers()BytesgetTotalSize()protected voidremoveAllPersistedPages(String sessionIdentifier)protected voidremovePersistedPage(String sessionIdentifier, IManageablePage page)booleansupportsVersioning()-
Methods inherited from class org.apache.wicket.pageStore.AbstractPersistentPageStore
addPage, canBeAsynchronous, createSessionIdentifier, getPage, getSessionIdentifier, removeAllPages, removePage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.wicket.pageStore.IPageStore
addPage, canBeAsynchronous, detach, end, getPage, removeAllPages, removePage, revertPage
-
Methods inherited from interface org.apache.wicket.pageStore.IPersistentPageStore
getSessionIdentifier
-
-
-
-
Constructor Detail
-
IgniteDataStore
public IgniteDataStore(String applicatioName, org.apache.ignite.Ignite ignite)
Constructor- Parameters:
ignite- The Apache Ignite instance
-
-
Method Detail
-
getPersistedPage
protected IManageablePage getPersistedPage(String sessionIdentifier, int id)
- Specified by:
getPersistedPagein classAbstractPersistentPageStore
-
removePersistedPage
protected void removePersistedPage(String sessionIdentifier, IManageablePage page)
- Specified by:
removePersistedPagein classAbstractPersistentPageStore
-
removeAllPersistedPages
protected void removeAllPersistedPages(String sessionIdentifier)
- Specified by:
removeAllPersistedPagesin classAbstractPersistentPageStore
-
addPersistedPage
protected void addPersistedPage(String sessionIdentifier, IManageablePage page)
- Specified by:
addPersistedPagein classAbstractPersistentPageStore
-
destroy
public void destroy()
- Specified by:
destroyin interfaceIPageStore- Overrides:
destroyin classAbstractPersistentPageStore
-
supportsVersioning
public boolean supportsVersioning()
- Specified by:
supportsVersioningin interfaceIPageStore
-
getSessionIdentifiers
public Set<String> getSessionIdentifiers()
- Specified by:
getSessionIdentifiersin interfaceIPersistentPageStore
-
getPersistedPages
public List<IPersistedPage> getPersistedPages(String contextIdentifier)
- Specified by:
getPersistedPagesin interfaceIPersistentPageStore
-
getTotalSize
public Bytes getTotalSize()
- Specified by:
getTotalSizein interfaceIPersistentPageStore
-
-