|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
public interface Progressable
A facility for reporting progress.
isKillTask is helpful for you to determine whether to kill itself to involve fail-over mechanism. By using
fail-over, we can launch task in other machines which will improve the efficiency.
For 10 tasks, 9 of them are very fast while the last one is very slow, which makes the whole iteration is very slow. It is important to kill this task and launch it in other machines.
Since no too much computation on master, isKillTask only works on worker nodes so far.
| 方法摘要 | |
|---|---|
void |
progress(int currentIteration,
int totalIteration,
String status,
boolean isLastUpdate,
boolean isKillTask)
Report progress to caller. |
| 方法详细信息 |
|---|
void progress(int currentIteration,
int totalIteration,
String status,
boolean isLastUpdate,
boolean isKillTask)
currentIteration - current iteration.totalIteration - total iteration.status - report current status description to caller.isLastUpdate - whether it is last update of current iterationisKillTask - Whether to kill itself because of computation is too long over a threshold or a statistics time over
95% other tasks.
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||