Class KVStoreBasedConsolePolicy

java.lang.Object
org.jgrapes.core.internal.ComponentVertex
org.jgrapes.core.Component
org.jgrapes.webconsole.base.KVStoreBasedConsolePolicy
All Implemented Interfaces:
Iterable<ComponentType>, Channel, ComponentType, Eligible, Manager

A component that restores the console layout using key/value events for persisting the data between sessions.Boot Event Sequence

This component requires another component that handles the key/value store events (KeyValueStoreUpdate, KeyValueStoreQuery) used by this component for implementing persistence. When the web console becomesready, this policy sends a query for the persisted data.

When the web console has been prepared, the policy sends the last layout as retrieved from persistent storage to the web console and then generates render events for all web console components contained in this layout.

Each time the layout is changed in the web console, the web console sends the new layout data and this component updates the persistent storage accordingly.