Class IndexBuildStatusHolder


  • public class IndexBuildStatusHolder
    extends Object
    Cache index build status. The following operations affect the status: rebuilding indexes and building a new index.

    If the operation starts executing, then the status is INIT. If all operations are completed, then the status is COMPLETED. Status DELETE is used for persistent cache to mark at the beginning of a checkpoint that all operations have been completed and they will be committed to it.

    • Constructor Detail

      • IndexBuildStatusHolder

        public IndexBuildStatusHolder​(boolean persistent,
                                      boolean rebuild,
                                      boolean recreate)
        Constructor.
        Parameters:
        persistent - Persistent cache.
        rebuild - True if rebuilding indexes, otherwise building a new index.
        recreate - True if index.bin recreating, otherwise building a new index.
    • Method Detail

      • onStartOperation

        public void onStartOperation​(boolean rebuild,
                                     boolean recreate)
        Callback on the start of of the operation.
        Parameters:
        rebuild - True if rebuilding indexes, otherwise building a new index.
        recreate - True if index.bin recreating, false otherwise.
        See Also:
        onFinishOperation(boolean)
      • rebuild

        public boolean rebuild()
        Checking whether rebuilding indexes is in progress.
        Returns:
        True if in progress.
      • recreate

        public boolean recreate()
        Returns:
        True if index.bin recreating, otherwise building a new index.
      • buildNewIndexes

        public int buildNewIndexes()
        Getting the count of new indexes that are currently being built.
        Returns:
        Count of new indexes being built.
      • persistent

        public boolean persistent()
        Checking if the cache is persistent.
        Returns:
        True if persistent.