Class IndexingStatus
java.lang.Object
fr.paris.lutece.plugins.elasticdata.service.IndexingStatus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGet the current number of indexed objectsReturns the IsRunningintGet the total number of data objects to indexdoubleGet the percent of indexed objectsReturns the SbLogsReturns the SbLogsvoidreset()Reset the Indexing StatusvoidsetCurrentNbIndexedObj(int nCurrentNbIndexedObj) Set the current number of indexed objectsvoidsetIsRunning(AtomicBoolean bIsRunning) Sets the IsRunningvoidsetnNbTotalObj(int nNbTotalObj) Set the total number of data objects to indexvoidsetSbLogs(StringBuilder sbLogs) Sets the SbLogs
-
Constructor Details
-
IndexingStatus
public IndexingStatus()
-
-
Method Details
-
getNbTotalObj
public int getNbTotalObj()Get the total number of data objects to index- Returns:
- the total number or data objects to index
-
setnNbTotalObj
public void setnNbTotalObj(int nNbTotalObj) Set the total number of data objects to index- Parameters:
nNbTotalObj- The total number of objs
-
getCurrentNbIndexedObj
public int getCurrentNbIndexedObj()Get the current number of indexed objects- Returns:
- the current number of indexed objects
-
setCurrentNbIndexedObj
public void setCurrentNbIndexedObj(int nCurrentNbIndexedObj) Set the current number of indexed objects- Parameters:
nCurrentNbIndexedObj- the current
-
getIsRunning
Returns the IsRunning- Returns:
- The IsRunning
-
setIsRunning
Sets the IsRunning- Parameters:
bIsRunning- The IsRunning
-
getProgress
public double getProgress()Get the percent of indexed objects- Returns:
- the percent of the indexed objects
-
getStringSbLogs
Returns the SbLogs- Returns:
- The SbLogs
-
getSbLogs
Returns the SbLogs- Returns:
- The SbLogs
-
setSbLogs
Sets the SbLogs- Parameters:
sbLogs- The SbLogs
-
reset
public void reset()Reset the Indexing Status
-