Package com.evolveum.midpoint.model.api
Class ProgressListener.Collecting
java.lang.Object
com.evolveum.midpoint.model.api.ProgressListener.Collecting
- All Implemented Interfaces:
ProgressListener
- Enclosing interface:
- ProgressListener
Just collects model contexts as they are reported by the clockwork.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.api.ProgressListener
ProgressListener.Collecting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ModelContext<?>Returns the model context, while checking it is really the expected (final) one.booleanvoidonProgressAchieved(ModelContext<?> modelContext, ProgressInformation progressInformation) Reports a progress achieved.
-
Constructor Details
-
Collecting
public Collecting()
-
-
Method Details
-
onProgressAchieved
public void onProgressAchieved(ModelContext<?> modelContext, ProgressInformation progressInformation) Description copied from interface:ProgressListenerReports 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:
onProgressAchievedin interfaceProgressListener- Parameters:
modelContext- Current context of the model operation.progressInformation- Specific progress information.
-
getFinalContext
Returns the model context, while checking it is really the expected (final) one. -
isAbortRequested
public boolean isAbortRequested()- Specified by:
isAbortRequestedin interfaceProgressListener
-