Interface ProgressListener

All Known Implementing Classes:
CollectedRowsCounter

public interface ProgressListener
Listener interface for monitoring progress.
Author:
Ralf Wisser
  • Method Details

    • collectionJobEnqueued

      void collectionJobEnqueued(int day, ModelElement modelElement)
      A collection-job has been enqueued.
      Parameters:
      day - the day
      modelElement - the association or table to be resolved
    • collectionJobStarted

      void collectionJobStarted(int day, ModelElement modelElement)
      Collection of rows has been started.
      Parameters:
      day - the day
      modelElement - the association or table to be resolved
    • collected

      void collected(int day, ModelElement modelElement, long rc)
      Rows have been collected.
      Parameters:
      day - the day
      modelElement - the association or table which has been resolved
      rc - the number of rows which have been collected
    • exported

      void exported(Table table, long rc)
      Rows have been exported.
      Parameters:
      table - the table from which the rows have been exported
      rc - the number of rows
    • newStage

      void newStage(String stage, boolean isErrorStage, boolean isFinalStage)
      New stage has begun.
      Parameters:
      stage - the stage
      isErrorStage - true if the stage represents an error
      isFinalStage - true if this is the final stage
    • prepareExport

      void prepareExport() throws CancellationException
      Export is ready. This might be cancelled.
      Throws:
      CancellationException
    • warn

      void warn(Supplier<String> msgSupplier)
      User should be warned.
      Parameters:
      msgSupplier - supplier for the warning message