public class IndexBuildStatusStorage extends Object implements MetastorageLifecycleListener, CheckpointListener
onStartRebuildIndexes(org.apache.ignite.internal.processors.cache.GridCacheContext, boolean) and onFinishRebuildIndexes(java.lang.String).
For build new indexes, use onStartBuildNewIndex(org.apache.ignite.internal.processors.cache.GridCacheContext) and onFinishBuildNewIndex(java.lang.String).
Use rebuildCompleted(java.lang.String) to check that the index rebuild is complete.CheckpointListener.Context| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_PREFIX
Key prefix for the MetaStorage.
|
| Constructor and Description |
|---|
IndexBuildStatusStorage(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.
|
void |
markIndexRecreate(GridCacheContext<?,?> cacheCtx)
Mark that index.bin recreate in progress.
|
void |
onCacheKernalStart()
Callback on start of
GridCacheProcessor. |
void |
onCheckpointBegin(CheckpointListener.Context ctx) |
void |
onFinishBuildNewIndex(String cacheName)
Callback on the finish of building a new cache index.
|
void |
onFinishRebuildIndexes(String cacheName)
Callback on the finish of rebuilding 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 |
onStartBuildNewIndex(GridCacheContext cacheCtx)
Callback on the start of building a new cache index.
|
void |
onStartRebuildIndexes(GridCacheContext cacheCtx,
boolean recreate)
Callback on the start of rebuilding cache indexes.
|
boolean |
rebuildCompleted(String cacheName)
Check if rebuilding of indexes for the cache has been completed.
|
boolean |
recreateCompleted(String cacheName)
Check if index.bin recreating for the cache has been completed.
|
void |
start()
Callback on start of
GridQueryProcessor. |
void |
stop()
Callback on kernel stop.
|
public static final String KEY_PREFIX
public IndexBuildStatusStorage(GridKernalContext ctx)
ctx - Kernal context.public void start()
GridQueryProcessor.public void onCacheKernalStart()
GridCacheProcessor.public void stop()
public void onStartRebuildIndexes(GridCacheContext cacheCtx, boolean recreate)
cacheCtx - Cache context.recreate - True if index.bin recreating, otherwise building a new index.onFinishRebuildIndexes(java.lang.String)public void onStartBuildNewIndex(GridCacheContext cacheCtx)
cacheCtx - Cache context.onFinishBuildNewIndex(java.lang.String)public void markIndexRecreate(GridCacheContext<?,?> cacheCtx)
public void onFinishRebuildIndexes(String cacheName)
cacheName - Cache name.onStartRebuildIndexes(org.apache.ignite.internal.processors.cache.GridCacheContext, boolean)public void onFinishBuildNewIndex(String cacheName)
cacheName - Cache name.onStartBuildNewIndex(org.apache.ignite.internal.processors.cache.GridCacheContext)public boolean rebuildCompleted(String cacheName)
cacheName - Cache name.True if completed.public boolean recreateCompleted(String cacheName)
cacheName - Cache name.True if index.bin recreate 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.15.0 Release Date : April 25 2023