public interface CacheViewListener
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)
.Modifier and Type | Method and Description |
---|---|
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.
|
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)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.