Package io.jmix.jmxconsole.view
Class MBeanOperationResultView.OperationBackgroundTask
java.lang.Object
io.jmix.flowui.backgroundtask.BackgroundTask<Long,Object>
 
io.jmix.jmxconsole.view.MBeanOperationResultView.OperationBackgroundTask
- Enclosing class:
- MBeanOperationResultView
protected class MBeanOperationResultView.OperationBackgroundTask
extends BackgroundTask<Long,Object> 
- 
Nested Class SummaryNested classes/interfaces inherited from class io.jmix.flowui.backgroundtask.BackgroundTaskBackgroundTask.ProgressListener<T,V>, BackgroundTask.ProgressListenerAdapter<T, V> 
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedOperationBackgroundTask(long timeoutSeconds, View<?> view) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidCalled by the execution environment in UI thread when the task is completed.booleanCalled by the execution environment in UI thread if the taskBackgroundTask.run(TaskLifeCycle)method raised an exception.booleanCalled by the execution environment in UI thread if the task timeout is exceeded.run(TaskLifeCycle<Long> taskLifeCycle) Main method that performs a task.protected voidshowResult(String resultMessage) Methods inherited from class io.jmix.flowui.backgroundtask.BackgroundTaskaddProgressListener, canceled, getOwnerView, getParams, getProgressListeners, getTimeoutMilliseconds, getTimeoutSeconds, progress, removeProgressListener
- 
Constructor Details- 
OperationBackgroundTask
 
- 
- 
Method Details- 
runDescription copied from class:BackgroundTaskMain method that performs a task.
 Called by the execution environment in a separate working thread.
 Implementation of this method should support interruption:- In long loops check TaskLifeCycle.isInterrupted()and return if it is true
- Don't swallow InterruptedException- return from the method or don't catch it at all
 - Specified by:
- runin class- BackgroundTask<Long,- Object> 
- Parameters:
- taskLifeCycle- lifecycle object that allows the main method to interact with the execution environment
- Returns:
- task result
 
- In long loops check 
- 
doneDescription copied from class:BackgroundTaskCalled by the execution environment in UI thread when the task is completed.- Overrides:
- donein class- BackgroundTask<Long,- Object> 
- Parameters:
- res- result of execution returned by- BackgroundTask.run(TaskLifeCycle)method
 
- 
handleExceptionDescription copied from class:BackgroundTaskCalled by the execution environment in UI thread if the taskBackgroundTask.run(TaskLifeCycle)method raised an exception.- Overrides:
- handleExceptionin class- BackgroundTask<Long,- Object> 
- Parameters:
- ex- exception
- Returns:
- true if this method implementation actually handles the exception. Used for chaining handlers.
 
- 
handleTimeoutExceptionpublic boolean handleTimeoutException()Description copied from class:BackgroundTaskCalled by the execution environment in UI thread if the task timeout is exceeded.- Overrides:
- handleTimeoutExceptionin class- BackgroundTask<Long,- Object> 
- Returns:
- true if this method implementation actually handles this event. Used for chaining handlers.
 
- 
showResult
 
-