Interface TethysUIThreadStatusReport
- All Known Subinterfaces:
TethysUIThreadManager
- All Known Implementing Classes:
TethysUICoreThreadManager
public interface TethysUIThreadStatusReport
Report status.
-
Method Summary
Modifier and TypeMethodDescriptionvoidIs the task cancelled?Obtain the active task.Obtain the thread data.default voidinitTask(OceanusBundleId pTask) Initialise Task.voidInitialise Task.voidSet Completion.default voidsetNewStage(OceanusBundleId pStage) Set new stage.voidsetNewStage(String pStage) Set new stage.voidSet next step.voidsetNextStep(String pStep) Set next step.voidsetNumStages(int pNumStages) Set number of stages.voidsetNumSteps(int pNumSteps) Set number of steps.voidsetStepsDone(int pSteps) Set steps done.voidThrow cancellation exception.
-
Method Details
-
getThreadData
Object getThreadData()Obtain the thread data.- Returns:
- the threadData
-
initTask
Initialise Task.- Parameters:
pTask- the task- Throws:
OceanusException- on cancellation
-
initTask
Initialise Task.- Parameters:
pTask- the task- Throws:
OceanusException- on cancellation
-
setNumStages
Set number of stages.- Parameters:
pNumStages- the number of stages- Throws:
OceanusException- on cancellation
-
setNewStage
Set new stage.- Parameters:
pStage- the new stage- Throws:
OceanusException- on cancellation
-
setNewStage
Set new stage.- Parameters:
pStage- the new stage- Throws:
OceanusException- on cancellation
-
setNumSteps
Set number of steps.- Parameters:
pNumSteps- the number of steps- Throws:
OceanusException- on cancellation
-
setStepsDone
Set steps done.- Parameters:
pSteps- the number of steps done- Throws:
OceanusException- on cancellation
-
setNextStep
Set next step.- Throws:
OceanusException- on cancellation
-
setNextStep
Set next step.- Parameters:
pStep- the step to set- Throws:
OceanusException- on cancellation
-
setCompletion
Set Completion.- Throws:
OceanusException- on cancellation
-
checkForCancellation
Is the task cancelled?- Throws:
OceanusException- on cancellation
-
throwCancelException
Throw cancellation exception.- Throws:
OceanusException- on error
-
getActiveTask
OceanusProfile getActiveTask()Obtain the active task.- Returns:
- the active task
-