|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmonks.batch.framework.JobStatistics
JobStatistics holds the useful metrics and information of particular run of a job. These statistics helpful in research of the periodic growth of the jobs. Statistics it holds are start and end time of the run, records have been processed in the run, memory has been utilized in the run and exit code of that run.
Constructor Summary | |
JobStatistics(java.lang.String jobName)
Constructor takes the job name and build the skelton. |
Method Summary | |
java.util.Date |
getEndTime()
Gets the ending time of this job. |
ErrorCode |
getExitCode()
Gets the exit code. |
java.lang.String |
getJobname()
Gets the job name |
long |
getMaxMemoryUsage()
Gets the maximum memory used by this job in bytes. |
long |
getRecordsProcessed()
Gets the number of records processed. |
java.util.Date |
getStartTime()
Gets the start time of this job. |
void |
setEndTime(java.util.Date endTime)
Sets the endtime of the job. |
void |
setExitCode(ErrorCode exitCode)
Sets the given error code as exit code. |
void |
setMaxMemeoryUsage(long memoryUsage)
Sets the maximum memory used for the job in bytes. |
void |
setRecordsProcessed(long recordCount)
Sets the number of the records processed in this job. |
void |
setStartTime(java.util.Date startTime)
Sets the startime of the job. |
java.lang.String |
toString()
Returns the string representation of JobStatistics class in the format {JobStatistics [jobName = value] [startTime = value] [endTime = value]} |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JobStatistics(java.lang.String jobName)
Method Detail |
public void setStartTime(java.util.Date startTime)
startTime
- Starting time of the job.public void setEndTime(java.util.Date endTime)
endTime
- Ending time of the job.public void setRecordsProcessed(long recordCount)
recordCount
- Sets the number of records got processed.public void setMaxMemeoryUsage(long memoryUsage)
public java.util.Date getStartTime()
public java.util.Date getEndTime()
public long getRecordsProcessed()
public long getMaxMemoryUsage()
public java.lang.String getJobname()
public void setExitCode(ErrorCode exitCode)
exitCode
- Error code controller is going to return to the framework.public ErrorCode getExitCode()
public java.lang.String toString()
Returns the string representation of JobStatistics class in the format
{JobStatistics [jobName = value] [startTime = value] [endTime = value]}
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |