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 List<IPersistedPage>
getPersistedPages(String sessionIdentifier)
Get information about all persisted pages with the given session identifier.String
getSessionIdentifier(IPageContext context)
Get the session identifier for pages stored for the given context.Set<String>
getSessionIdentifiers()
Get the identifiers for all stored sessions.Bytes
getTotalSize()
Get total size of all pages stored in all contexts.-
Methods inherited from interface org.apache.wicket.pageStore.IPageStore
addPage, canBeAsynchronous, destroy, detach, end, getPage, removeAllPages, removePage, revertPage, supportsVersioning
-
-
-
-
Method Detail
-
getSessionIdentifier
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
Set<String> getSessionIdentifiers()
Get the identifiers for all stored sessions.- Returns:
- the identifiers of all session.
-
getPersistedPages
List<IPersistedPage> getPersistedPages(String sessionIdentifier)
Get information about all persisted pages with the given session identifier.- Parameters:
sessionIdentifier
- identifier of the session.- Returns:
- all persisted pages
-
getTotalSize
Bytes getTotalSize()
Get total size of all pages stored in all contexts.Optional operation, may return
null
.- Returns:
- total size or
null
-
-