Class ProgressListener.Collecting

java.lang.Object
com.evolveum.midpoint.model.api.ProgressListener.Collecting
All Implemented Interfaces:
ProgressListener
Enclosing interface:
ProgressListener

public static class ProgressListener.Collecting extends Object implements ProgressListener
Just collects model contexts as they are reported by the clockwork.
  • Constructor Details

    • Collecting

      public Collecting()
  • Method Details

    • onProgressAchieved

      public void onProgressAchieved(ModelContext<?> modelContext, ProgressInformation progressInformation)
      Description copied from interface: ProgressListener
      Reports a progress achieved. The idea is to provide as much information as practically possible, so the client could take whatever it wants. Obviously, the method should not take too much time in order not to slow down the main execution routine.
      Specified by:
      onProgressAchieved in interface ProgressListener
      Parameters:
      modelContext - Current context of the model operation.
      progressInformation - Specific progress information.
    • getFinalContext

      @NotNull public @NotNull ModelContext<?> getFinalContext()
      Returns the model context, while checking it is really the expected (final) one.
    • isAbortRequested

      public boolean isAbortRequested()
      Specified by:
      isAbortRequested in interface ProgressListener