public class IndexRebuildStateStorage extends Object implements MetastorageLifecycleListener, CheckpointListener
onStartRebuildIndexes(org.apache.ignite.internal.processors.cache.GridCacheContext)
and after it onFinishRebuildIndexes(java.lang.String). Use completed(java.lang.String) to check
if the index rebuild has completed.
To prevent leaks, it is necessary to use onFinishRebuildIndexes(java.lang.String)
when detecting the fact of destroying the cache.CheckpointListener.Context| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PREFIX
Key prefix for the MetaStorage.
|
| Constructor and Description |
|---|
IndexRebuildStateStorage(GridKernalContext ctx)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterCheckpointEnd(CheckpointListener.Context ctx)
Do some actions after checkpoint end.
|
void |
beforeCheckpointBegin(CheckpointListener.Context ctx)
Do some actions before checkpoint write lock.
|
boolean |
completed(String cacheName)
Check if rebuilding of indexes for the cache has been completed.
|
void |
onCacheKernalStart()
Callback on start of
GridCacheProcessor. |
void |
onCheckpointBegin(CheckpointListener.Context ctx) |
void |
onFinishRebuildIndexes(String cacheName)
Callback on finish of rebuild cache indexes.
|
void |
onMarkCheckpointBegin(CheckpointListener.Context ctx) |
void |
onReadyForRead(ReadOnlyMetastorage metastorage)
Is called when metastorage is made ready for read-only operations very early on node startup phase.
|
void |
onReadyForReadWrite(ReadWriteMetastorage metastorage)
Fully functional metastore capable of performing reading and writing operations.
|
void |
onStartRebuildIndexes(GridCacheContext cacheCtx)
Callback on start of rebuild cache indexes.
|
void |
start()
Callback on start of
GridQueryProcessor. |
void |
stop()
Callback on kernel stop.
|
public static final String KEY_PREFIX
public IndexRebuildStateStorage(GridKernalContext ctx)
ctx - Kernal context.public void start()
GridQueryProcessor.public void onCacheKernalStart()
GridCacheProcessor.public void stop()
public void onStartRebuildIndexes(GridCacheContext cacheCtx)
cacheCtx - Cache context.onFinishRebuildIndexes(java.lang.String)public void onFinishRebuildIndexes(String cacheName)
cacheName - Cache name.onStartRebuildIndexes(org.apache.ignite.internal.processors.cache.GridCacheContext)public boolean completed(String cacheName)
cacheName - Cache name.True if completed.public void onReadyForReadWrite(ReadWriteMetastorage metastorage)
onReadyForReadWrite in interface MetastorageLifecycleListenermetastorage - Fully functional meta storage.public void onReadyForRead(ReadOnlyMetastorage metastorage)
onReadyForRead in interface MetastorageLifecycleListenermetastorage - Read-only meta storage.public void onMarkCheckpointBegin(CheckpointListener.Context ctx)
onMarkCheckpointBegin in interface CheckpointListenerpublic void onCheckpointBegin(CheckpointListener.Context ctx)
onCheckpointBegin in interface CheckpointListenerpublic void beforeCheckpointBegin(CheckpointListener.Context ctx)
beforeCheckpointBegin in interface CheckpointListenerpublic void afterCheckpointEnd(CheckpointListener.Context ctx)
afterCheckpointEnd in interface CheckpointListener
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.11.1 Release Date : December 20 2021