Class SolrIndexer.IndexationResult
- java.lang.Object
-
- org.ametys.cms.content.indexing.solr.SolrIndexer.IndexationResult
-
- Enclosing class:
- SolrIndexer
class SolrIndexer.IndexationResult extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected int
_errorCount
protected int
_successCount
-
Constructor Summary
Constructors Constructor Description IndexationResult()
ConstructorIndexationResult(int successCount, int errorCount)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getErrorCount()
Get the errorCount.int
getSuccessCount()
Get the successCount.boolean
hasErrors()
Test if the indexation had errors.void
setErrorCount(int errorCount)
Set the errorCount.void
setSuccessCount(int successCount)
Set the successCount.
-
-
-
Field Detail
-
_successCount
protected int _successCount
-
_errorCount
protected int _errorCount
-
-
Constructor Detail
-
IndexationResult
public IndexationResult()
Constructor
-
IndexationResult
public IndexationResult(int successCount, int errorCount)
Constructor- Parameters:
successCount
- The success count.errorCount
- The error count.
-
-
Method Detail
-
getSuccessCount
public int getSuccessCount()
Get the successCount.- Returns:
- the successCount
-
setSuccessCount
public void setSuccessCount(int successCount)
Set the successCount.- Parameters:
successCount
- the successCount to set
-
hasErrors
public boolean hasErrors()
Test if the indexation had errors.- Returns:
- true if the indexation had errors, false otherwise.
-
getErrorCount
public int getErrorCount()
Get the errorCount.- Returns:
- the errorCount
-
setErrorCount
public void setErrorCount(int errorCount)
Set the errorCount.- Parameters:
errorCount
- the errorCount to set
-
-