Package com.jalios.jstore
Class LoadReport
java.lang.Object
com.jalios.jstore.LoadReport
- All Implemented Interfaces:
Cloneable
This class reports informations about the last load.
- Author:
- Olivier Dedieu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClassError(LogEntry entry) Add a class errorvoidaddCreateError(LogEntry entry) Add a create errorvoidaddJavaError(LogEntry entry) Add a java errorvoidaddMutationError(LogEntry entry) Add a mutation errorvoidaddStampError(LogEntry entry) Add a stamp errorclone()Get the value of classErrorList.intGet the value of createCount.Get the value of createErrorList.intGet the value of deleteCount.longGet the value of duration.intReturn the total count of errors that occured during the load.Get the value of javaErrorList.longGet the value of memoryUsed.Get the value of mutationErrorList.intReturns the total count of operations in the store.Get the value of progressTable.Get the value of stampErrorList.Get the value of storeFile.Get the value of storeFileList.longGet the value of storeSize.intGet the value of updateCount.voidIncrement create countvoidIncrement delete countvoidIncrement update countvoidsetDuration(long v) Set the value of duration.voidsetMemoryUsed(long v) Set the value of memoryUsed.voidSet the value of progressTable.voidsetStoreFile(File v) Set the value of storeFile.voidsetStoreFileList(List<File> v) Set the value of storeFileList.voidsetStoreSize(long v) Set the value of storeSize.voidsetStoreSizeMap(Map<File, Long> storeSizeMap)
-
Constructor Details
-
LoadReport
public LoadReport()
-
-
Method Details
-
clone
-
getOpCount
public int getOpCount()Returns the total count of operations in the store. I.E. create ops + update ops + delete ops. Currently InnerLogEntry are not take into account- Returns:
- the total count of store operations
-
getErrorCount
public int getErrorCount()Return the total count of errors that occured during the load. I.E. class errors + create errors + mutation errors + stamp errors.- Returns:
- the total count of errors
-
getStoreFile
Get the value of storeFile.- Returns:
- Value of storeFile.
-
setStoreFile
Set the value of storeFile.- Parameters:
v- Value to assign to storeFile.
-
getStoreFileList
Get the value of storeFileList.- Returns:
- Value of storeFileList.
-
setStoreFileList
Set the value of storeFileList.- Parameters:
v- Value to assign to storeFileList.
-
getCreateCount
public int getCreateCount()Get the value of createCount.- Returns:
- Value of createCount.
-
incCreateCount
public void incCreateCount()Increment create count -
getUpdateCount
public int getUpdateCount()Get the value of updateCount.- Returns:
- Value of updateCount.
-
incUpdateCount
public void incUpdateCount()Increment update count -
getDeleteCount
public int getDeleteCount()Get the value of deleteCount.- Returns:
- Value of deleteCount.
-
incDeleteCount
public void incDeleteCount()Increment delete count -
getProgressTable
Get the value of progressTable.- Returns:
- Value of progressTable.
-
setProgressTable
Set the value of progressTable.- Parameters:
v- Value to assign to progressTable.
-
getDuration
public long getDuration()Get the value of duration.- Returns:
- Value of duration.
-
setDuration
public void setDuration(long v) Set the value of duration.- Parameters:
v- Value to assign to duration.
-
getMemoryUsed
public long getMemoryUsed()Get the value of memoryUsed.- Returns:
- Value of memoryUsed.
- Since:
- jcms-5.0.1
-
setMemoryUsed
public void setMemoryUsed(long v) Set the value of memoryUsed.- Parameters:
v- Value to assign to memoryUsed.- Since:
- jcms-5.5.0
-
getStoreSize
public long getStoreSize()Get the value of storeSize.- Returns:
- Value of storeSize.
- Since:
- jcms-5.5.0
-
setStoreSize
public void setStoreSize(long v) Set the value of storeSize.- Parameters:
v- Value to assign to storeSize.- Since:
- jcms-5.5.0
-
getStoreSizeMap
-
setStoreSizeMap
-
getClassErrorList
Get the value of classErrorList.- Returns:
- Value of classErrorList.
-
addClassError
Add a class error- Parameters:
entry- the erroneous log entry
-
getCreateErrorList
Get the value of createErrorList.- Returns:
- Value of createErrorList.
-
addCreateError
Add a create error- Parameters:
entry- the erroneous log entry
-
getMutationErrorList
Get the value of mutationErrorList.- Returns:
- Value of mutationErrorList.
-
addMutationError
Add a mutation error- Parameters:
entry- the erroneous log entry
-
getStampErrorList
Get the value of stampErrorList.- Returns:
- Value of stampErrorList.
-
addStampError
Add a stamp error- Parameters:
entry- the erroneous log entry
-
getJavaErrorList
Get the value of javaErrorList.- Returns:
- Value of javaErrorList.
-
addJavaError
Add a java error- Parameters:
entry- the erroneous log entry
-