|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheViewListener
Callback interface for installing views on a cache.
A cache-level component (StateTransferManager
)
will implement this interface and add itself as a cache view listener in order to transfer cache state
to the new owners during the prepare phase.
The view is installed in two phases, so every prepareView(CacheView,CacheView)
call will be followed either by a commitView(int)
or a rollbackView(int, int)
.
Method Summary | |
---|---|
void |
commitView(int viewId)
Called before committing a cache view. |
void |
postInstallView(int viewId)
Called after the cache view was installed successfully. |
void |
preInstallView()
Called after a node left or after a merge, even if we're not preparing a new view yet we know we'll prepare one soon. |
void |
prepareView(CacheView newView,
CacheView oldView)
Called after preparing a cache view. |
void |
rollbackView(int newViewId,
int committedViewId)
Called before rolling back a cache view installation. |
Method Detail |
---|
void prepareView(CacheView newView, CacheView oldView) throws Exception
Exception
void commitView(int viewId)
void rollbackView(int newViewId, int committedViewId)
void preInstallView()
void postInstallView(int viewId)
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |