fr.cnes.sirius.validate.parallel
Interface ParallelTask

All Superinterfaces:
Callable<ParallelResult>
All Known Implementing Classes:
AbstractSimpleParallelTaskImpl

public interface ParallelTask
extends Callable<ParallelResult>

A ParallelTask instance is meant to be run once by the ParallelRunner in a multithreaded context.

Since:
1.2
Version:
$Id: ParallelTask.java 17578 2017-05-10 12:20:20Z bignon $
Author:
cardosop

Method Summary
 ParallelResult call()
           
 ParallelResult getResult()
          Asynchronous getter for the results.
 String getTaskInfo()
          Returns human-readable info on the status of the task.
 String getTaskLabel()
          Returns a label identifying the task "class".
 

Method Detail

getTaskLabel

String getTaskLabel()
Returns a label identifying the task "class". It's the same for all instances of the task.

Returns:
the task label

getTaskInfo

String getTaskInfo()
Returns human-readable info on the status of the task. Is intended to change depending on the current state of the task.

Returns:
the status of the task.

call

ParallelResult call()
Specified by:
call in interface Callable<ParallelResult>

getResult

ParallelResult getResult()
Asynchronous getter for the results. Is meant to be called after call to call(), and call() has ended. Otherwise behavior is unpredictable.

Returns:
the same ParallelResult object already returned by call()


Copyright © 2017 CNES. All Rights Reserved.