Class ProgressReporter
java.lang.Object
com.evolveum.midpoint.web.component.progress.ProgressReporter
- All Implemented Interfaces:
ProgressListener
- Author:
- Viliam Repan (lazyman)
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.evolveum.midpoint.model.api.ProgressListener
ProgressListener.Collecting -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollection<ObjectDeltaOperation<? extends ObjectType>>longlongModelContext<? extends ObjectType>intbooleanbooleanbooleanvoidonProgressAchieved(ModelContext<?> modelContext, ProgressInformation progressInformation) Reports a progress achieved.voidvoidvoidsetAbortEnabled(boolean abortEnabled) voidsetAbortRequested(boolean value) voidsetAsynchronousExecution(boolean asynchronousExecution) voidsetAsyncOperationResult(OperationResult asyncOperationResult) voidsetObjectDeltaOperation(Collection<ObjectDeltaOperation<? extends ObjectType>> objectDeltaOperation) voidsetPreviewResult(ModelContext<? extends ObjectType> previewResult) voidsetRefreshInterval(int refreshInterval) voidsetWriteOpResultForProgressActivity(boolean writeOpResultForProgressActivity)
-
Constructor Details
-
ProgressReporter
-
-
Method Details
-
getAsyncOperationResult
-
getRefreshInterval
public int getRefreshInterval() -
isAsynchronousExecution
public boolean isAsynchronousExecution() -
isAbortEnabled
public boolean isAbortEnabled() -
setWriteOpResultForProgressActivity
public void setWriteOpResultForProgressActivity(boolean writeOpResultForProgressActivity) -
getPreviewResult
-
setAsyncOperationResult
-
getObjectDeltaOperation
-
setObjectDeltaOperation
public void setObjectDeltaOperation(Collection<ObjectDeltaOperation<? extends ObjectType>> objectDeltaOperation) -
setPreviewResult
-
setRefreshInterval
public void setRefreshInterval(int refreshInterval) -
setAsynchronousExecution
public void setAsynchronousExecution(boolean asynchronousExecution) -
setAbortEnabled
public void setAbortEnabled(boolean abortEnabled) -
recordExecutionStart
public void recordExecutionStart() -
recordExecutionStop
public void recordExecutionStop() -
getProgress
-
getOperationStartTime
public long getOperationStartTime() -
getOperationDurationTime
public long getOperationDurationTime() -
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.
-
isAbortRequested
public boolean isAbortRequested()- Specified by:
isAbortRequestedin interfaceProgressListener
-
setAbortRequested
public void setAbortRequested(boolean value)
-