Class ProgressListenerRegistry
java.lang.Object
net.sf.jailer.progress.ProgressListenerRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProgressListener(ProgressListener theProgressListener) Adds aProgressListener.voidfireCollected(int day, ModelElement modelElement, long numberOfRows) Notifies all listeners that rows have been collected.voidfireCollectionJobEnqueued(int day, ModelElement modelElement) Notifies all listeners that a collection-job has been enqueued.voidfireCollectionJobStarted(int day, ModelElement modelElement) Notifies all listeners that collection of rows has been started.voidfireExported(Table table, long rc) Notifies all listeners that rows have been exported.voidfireNewStage(String stage, boolean isErrorStage, boolean isFinalStage) Notifies all listeners that a new stage has begun.voidNotifies all listeners that export is ready.voidNotifies all listeners that the user should be warned.
-
Constructor Details
-
ProgressListenerRegistry
public ProgressListenerRegistry()
-
-
Method Details
-
addProgressListener
Adds aProgressListener.- Parameters:
theProgressListener- to add
-
fireCollectionJobEnqueued
Notifies all listeners that a collection-job has been enqueued.- Parameters:
day- the daymodelElement- the association or table to be resolved
-
fireCollectionJobStarted
Notifies all listeners that collection of rows has been started.- Parameters:
day- the daymodelElement- the association or table to be resolved
-
fireCollected
Notifies all listeners that rows have been collected.- Parameters:
day- the daymodelElement- the association or table which has been resolvednumberOfRows- the number of rows which have been collected
-
fireExported
Notifies all listeners that rows have been exported.- Parameters:
table- the table from which the rows have been exportedrc- the number of rows
-
fireNewStage
Notifies all listeners that a new stage has begun.- Parameters:
stage- the stageisErrorStage-trueif the stage represents an errorisFinalStage-trueif this is the final stage
-
firePrepareExport
Notifies all listeners that export is ready. This might be cancelled.- Throws:
CancellationException- if a listener requests cancellation
-
warn
-