public class IndexingStatusService extends Object
| Modifier and Type | Method and Description |
|---|---|
int |
getCurrentNbIndexedObj(String strDataSourceId)
Get the current number of indexed objects
|
IndexingStatus |
getIndexingStatus(String strDataSourceId)
Get the indexing status
|
static IndexingStatusService |
getInstance()
Get the instance of the indexing status service
|
int |
getNbTotalObj(String strDataSourceId)
Get the total number of data objects to index
|
double |
getPercent(String strDataSourceId)
Get the percent of indexed objects
|
void |
registerIndexingStatus(String strDataSourceId,
IndexingStatus status)
Register the indexing status
|
void |
removeIndexingStatus(String strDataSourceId,
IndexingStatus status)
Remove the indexing status
|
void |
setCurrentNbIndexedObj(int nCurrentNbIndexedObj,
String strDataSourceId)
Set the current number of indexed objects
|
void |
setnNbTotalObj(int nNbTotalObj,
String strDataSourceId)
Set the total number of data objects to index
|
public static IndexingStatusService getInstance()
public IndexingStatus getIndexingStatus(String strDataSourceId)
strDateSourceId - the data source idpublic void registerIndexingStatus(String strDataSourceId, IndexingStatus status)
strDateSourceId - the data source idstatus - the indexing statuspublic void removeIndexingStatus(String strDataSourceId, IndexingStatus status)
strDateSourceId - the data source idstatus - the indexing statuspublic int getNbTotalObj(String strDataSourceId)
strDateSourceId - the data source idpublic void setnNbTotalObj(int nNbTotalObj,
String strDataSourceId)
nNbTotalObj - The total number of objsstrDateSourceId - the data source idpublic int getCurrentNbIndexedObj(String strDataSourceId)
strDateSourceId - the data source idpublic void setCurrentNbIndexedObj(int nCurrentNbIndexedObj,
String strDataSourceId)
nCurrentNbIndexedObj - the currentstrDateSourceId - the data source idpublic double getPercent(String strDataSourceId)
strDateSourceId - the data source idCopyright © 2021 City of Paris. All rights reserved.