Class ProgressListenerRegistry

java.lang.Object
net.sf.jailer.progress.ProgressListenerRegistry

public class ProgressListenerRegistry extends Object
Registry for ProgressListener.
Author:
Ralf Wisser
  • Constructor Details

    • ProgressListenerRegistry

      public ProgressListenerRegistry()
  • Method Details

    • addProgressListener

      public void addProgressListener(ProgressListener theProgressListener)
      Parameters:
      theProgressListener - to add
    • fireCollectionJobEnqueued

      public void fireCollectionJobEnqueued(int day, ModelElement modelElement)
      Notifies all listeners that a collection-job has been enqueued.
      Parameters:
      day - the day
      modelElement - the association or table to be resolved
    • fireCollectionJobStarted

      public void fireCollectionJobStarted(int day, ModelElement modelElement)
      Notifies all listeners that collection of rows has been started.
      Parameters:
      day - the day
      modelElement - the association or table to be resolved
    • fireCollected

      public void fireCollected(int day, ModelElement modelElement, long numberOfRows)
      Notifies all listeners that rows have been collected.
      Parameters:
      day - the day
      modelElement - the association or table which has been resolved
      numberOfRows - the number of rows which have been collected
    • fireExported

      public void fireExported(Table table, long rc)
      Notifies all listeners that rows have been exported.
      Parameters:
      table - the table from which the rows have been exported
      rc - the number of rows
    • fireNewStage

      public void fireNewStage(String stage, boolean isErrorStage, boolean isFinalStage)
      Notifies all listeners that a new stage has begun.
      Parameters:
      stage - the stage
      isErrorStage - true if the stage represents an error
      isFinalStage - true if this is the final stage
    • firePrepareExport

      public void firePrepareExport() throws CancellationException
      Notifies all listeners that export is ready. This might be cancelled.
      Throws:
      CancellationException - if a listener requests cancellation
    • warn

      public void warn(Supplier<String> msgSupplier)
      Notifies all listeners that the user should be warned.
      Parameters:
      msgSupplier - supplier for the warning message