java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.rag.util.IndexingStatus

public class IndexingStatus extends Object
Tracks the indexing status of wiki content in Elasticsearch. Thread-safe implementation for concurrent access.
  • Constructor Details

    • IndexingStatus

      public IndexingStatus()
  • Method Details

    • getNbTotalObj

      public int getNbTotalObj()
      Get the total number of items to index.
      Returns:
      the total number of items
    • setNbTotalObj

      public void setNbTotalObj(int nNbTotalObj)
      Set the total number of items to index.
      Parameters:
      nNbTotalObj - the total number of items
    • getCurrentNbIndexedObj

      public int getCurrentNbIndexedObj()
      Get the current number of indexed items.
      Returns:
      the current number of indexed items
    • setCurrentNbIndexedObj

      public void setCurrentNbIndexedObj(int nCurrentNbIndexedObj)
      Set the current number of indexed items.
      Parameters:
      nCurrentNbIndexedObj - the current number
    • getIsRunning

      public AtomicBoolean getIsRunning()
      Returns the running flag as an AtomicBoolean.
      Returns:
      the running flag
    • isRunning

      public boolean isRunning()
      Checks if indexing is currently running.
      Returns:
      true if running, false otherwise
    • getProgress

      public double getProgress()
      Get the progress percentage of indexed items.
      Returns:
      the progress percentage (0-100)
    • getStringSbLogs

      public String getStringSbLogs()
      Returns the logs as a string.
      Returns:
      the logs
    • getSbLogs

      public StringBuilder getSbLogs()
      Returns the StringBuilder for logs.
      Returns:
      the StringBuilder
    • reset

      public void reset()
      Reset the indexing status to initial state.