Class IndexingStatus
java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.rag.util.IndexingStatus
Tracks the indexing status of wiki content in Elasticsearch. Thread-safe implementation for concurrent access.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the current number of indexed items.Returns the running flag as an AtomicBoolean.intGet the total number of items to index.doubleGet the progress percentage of indexed items.Returns the StringBuilder for logs.Returns the logs as a string.booleanChecks if indexing is currently running.voidreset()Reset the indexing status to initial state.voidsetCurrentNbIndexedObj(int nCurrentNbIndexedObj) Set the current number of indexed items.voidsetNbTotalObj(int nNbTotalObj) Set the total number of items to index.
-
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
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
Returns the logs as a string.- Returns:
- the logs
-
getSbLogs
Returns the StringBuilder for logs.- Returns:
- the StringBuilder
-
reset
public void reset()Reset the indexing status to initial state.
-