Interface BatchMonitor

All Known Implementing Classes:
BatchProcessor

public interface BatchMonitor
An interface that allows the monitoring of metrics relating to a potentially long-running batch process.
Author:
dward
  • Method Details

    • getProcessName

      String getProcessName()
      Gets the process name.
      Returns:
      the process name
    • getStartTime

      Date getStartTime()
      Gets the start time.
      Returns:
      the start time
    • getTotalResults

      int getTotalResults()
      Gets the total number of results.
      Returns:
      the total number of results
    • getCurrentEntryId

      String getCurrentEntryId()
      Gets the ID of the entry being processed
      Returns:
      the current entry id
    • getSuccessfullyProcessedEntries

      int getSuccessfullyProcessedEntries()
      Gets the number of successfully processed entries.
      Returns:
      the successfully processed entries
    • getPercentComplete

      String getPercentComplete()
      Gets the progress expressed as a percentage.
      Returns:
      the progress expressed as a percentage
    • getTotalErrors

      int getTotalErrors()
      Gets the total number of errors.
      Returns:
      the total number of errors
    • getLastError

      String getLastError()
      Gets the stack trace of the last error.
      Returns:
      the stack trace of the last error
    • getLastErrorEntryId

      String getLastErrorEntryId()
      Gets the entry id that caused the last error.
      Returns:
      the last error entry id
    • getEndTime

      Date getEndTime()
      Gets the end time.
      Returns:
      the end time