ml.shifu.guagua.util
接口 Progressable


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.
 

方法详细信息

progress

void progress(int currentIteration,
              int totalIteration,
              String status,
              boolean isLastUpdate,
              boolean isKillTask)
Report progress to caller.

参数:
currentIteration - current iteration.
totalIteration - total iteration.
status - report current status description to caller.
isLastUpdate - whether it is last update of current iteration
isKillTask - Whether to kill itself because of computation is too long over a threshold or a statistics time over 95% other tasks.


Copyright © 2015. All Rights Reserved.