Class ProgressReporter
java.lang.Object
com.evolveum.midpoint.web.component.progress.ProgressReporter
- All Implemented Interfaces:
ProgressListener
- Author:
- Viliam Repan (lazyman)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCollection<ObjectDeltaOperation<? extends ObjectType>>
long
long
ModelContext<? extends ObjectType>
int
boolean
boolean
boolean
void
onProgressAchieved
(ModelContext<?> modelContext, ProgressInformation progressInformation) Reports a progress achieved.void
void
void
setAbortEnabled
(boolean abortEnabled) void
setAbortRequested
(boolean value) void
setAsynchronousExecution
(boolean asynchronousExecution) void
setAsyncOperationResult
(OperationResult asyncOperationResult) void
setObjectDeltaOperation
(Collection<ObjectDeltaOperation<? extends ObjectType>> objectDeltaOperation) void
setPreviewResult
(ModelContext<? extends ObjectType> previewResult) void
setRefreshInterval
(int refreshInterval) void
setWriteOpResultForProgressActivity
(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: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 interfaceProgressListener
- Parameters:
modelContext
- Current context of the model operation.progressInformation
- Specific progress information.
-
isAbortRequested
public boolean isAbortRequested()- Specified by:
isAbortRequested
in interfaceProgressListener
-
setAbortRequested
public void setAbortRequested(boolean value)
-