Package com.jalios.jstore
Class LoadReport
- java.lang.Object
-
- com.jalios.jstore.LoadReport
-
- All Implemented Interfaces:
java.lang.Cloneable
public class LoadReport extends java.lang.Object implements java.lang.Cloneable
This class reports informations about the last load.- Version:
- $Revision: 27753 $
- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Constructor Summary
Constructors Constructor Description LoadReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClassError(LogEntry entry)
Add a class errorvoid
addCreateError(LogEntry entry)
Add a create errorvoid
addJavaError(LogEntry entry)
Add a java errorvoid
addMutationError(LogEntry entry)
Add a mutation errorvoid
addStampError(LogEntry entry)
Add a stamp errorjava.lang.Object
clone()
java.util.ArrayList<LogEntry>
getClassErrorList()
Get the value of classErrorList.int
getCreateCount()
Get the value of createCount.java.util.ArrayList<LogEntry>
getCreateErrorList()
Get the value of createErrorList.int
getDeleteCount()
Get the value of deleteCount.long
getDuration()
Get the value of duration.int
getErrorCount()
Return the total count of errors that occured during the load.java.util.ArrayList<LogEntry>
getJavaErrorList()
Get the value of javaErrorList.long
getMemoryUsed()
Get the value of memoryUsed.java.util.ArrayList<LogEntry>
getMutationErrorList()
Get the value of mutationErrorList.int
getOpCount()
Returns the total count of operations in the store.StampTable
getProgressTable()
Get the value of progressTable.java.util.ArrayList<LogEntry>
getStampErrorList()
Get the value of stampErrorList.java.io.File
getStoreFile()
Get the value of storeFile.long
getStoreSize()
Get the value of storeSize.int
getUpdateCount()
Get the value of updateCount.void
incCreateCount()
Increment create countvoid
incDeleteCount()
Increment delete countvoid
incUpdateCount()
Increment update countvoid
setDuration(long v)
Set the value of duration.void
setMemoryUsed(long v)
Set the value of memoryUsed.void
setProgressTable(StampTable v)
Set the value of progressTable.void
setStoreFile(java.io.File v)
Set the value of storeFile.void
setStoreSize(long v)
Set the value of storeSize.
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone()
- Overrides:
clone
in classjava.lang.Object
-
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
public java.io.File getStoreFile()
Get the value of storeFile.- Returns:
- Value of storeFile.
-
setStoreFile
public void setStoreFile(java.io.File v)
Set the value of storeFile.- Parameters:
v
- Value to assign to storeFile.
-
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
public StampTable getProgressTable()
Get the value of progressTable.- Returns:
- Value of progressTable.
-
setProgressTable
public void setProgressTable(StampTable v)
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
-
getClassErrorList
public java.util.ArrayList<LogEntry> getClassErrorList()
Get the value of classErrorList.- Returns:
- Value of classErrorList.
-
addClassError
public void addClassError(LogEntry entry)
Add a class error- Parameters:
entry
- the erroneous log entry
-
getCreateErrorList
public java.util.ArrayList<LogEntry> getCreateErrorList()
Get the value of createErrorList.- Returns:
- Value of createErrorList.
-
addCreateError
public void addCreateError(LogEntry entry)
Add a create error- Parameters:
entry
- the erroneous log entry
-
getMutationErrorList
public java.util.ArrayList<LogEntry> getMutationErrorList()
Get the value of mutationErrorList.- Returns:
- Value of mutationErrorList.
-
addMutationError
public void addMutationError(LogEntry entry)
Add a mutation error- Parameters:
entry
- the erroneous log entry
-
getStampErrorList
public java.util.ArrayList<LogEntry> getStampErrorList()
Get the value of stampErrorList.- Returns:
- Value of stampErrorList.
-
addStampError
public void addStampError(LogEntry entry)
Add a stamp error- Parameters:
entry
- the erroneous log entry
-
getJavaErrorList
public java.util.ArrayList<LogEntry> getJavaErrorList()
Get the value of javaErrorList.- Returns:
- Value of javaErrorList.
-
addJavaError
public void addJavaError(LogEntry entry)
Add a java error- Parameters:
entry
- the erroneous log entry
-
-