Package org.apache.wicket.pageStore
Interface IPersistentPageStore
-
- All Superinterfaces:
IPageStore
- All Known Implementing Classes:
DiskPageStore,FilePageStore,InMemoryPageStore
public interface IPersistentPageStore extends IPageStore
A store that can provide information about stored pages.This is an optional interface to a store that is not involved during normal page processing. Rather, it is used for analysis of application memory footprint.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<IPersistedPage>getPersistedPages(java.lang.String sessionIdentifier)Get information about all persisted pages with the given session identifier.java.lang.StringgetSessionIdentifier(IPageContext context)Get the session identifier for pages stored for the given context.java.util.Set<java.lang.String>getSessionIdentifiers()Get the identifiers for all stored sessions.org.apache.wicket.util.lang.BytesgetTotalSize()Get total size of all pages stored in all contexts.-
Methods inherited from interface org.apache.wicket.pageStore.IPageStore
addPage, canBeAsynchronous, destroy, detach, getPage, removeAllPages, removePage, supportsVersioning
-
-
-
-
Method Detail
-
getSessionIdentifier
java.lang.String getSessionIdentifier(IPageContext context)
Get the session identifier for pages stored for the given context.- Parameters:
context- a context of pages- Returns:
- the identifier of the session.
- See Also:
getPersistedPages(String)
-
getSessionIdentifiers
java.util.Set<java.lang.String> getSessionIdentifiers()
Get the identifiers for all stored sessions.- Returns:
- the identifiers of all session.
-
getPersistedPages
java.util.List<IPersistedPage> getPersistedPages(java.lang.String sessionIdentifier)
Get information about all persisted pages with the given session identifier.- Parameters:
the- identifier of the session.- Returns:
- all persisted pages
-
getTotalSize
org.apache.wicket.util.lang.Bytes getTotalSize()
Get total size of all pages stored in all contexts.Optional operation, may return
null.- Returns:
- total size or
null
-
-