ml.shifu.guagua.io
类 HaltBytable

java.lang.Object
  继承者 ml.shifu.guagua.io.HaltBytable
所有已实现的接口:
Bytable

public abstract class HaltBytable
extends Object
implements Bytable

Abstract Bytable implementation to read and store halt status.

One can add halt status for master or worker result. Guagua will determine whether the application should be terminated.

By default master has the only right to stop the application if halt status in master result.

One switch in GuaguaConstants#GUAGUA_WORKER_HALT_ENABLE, if this switch is on, application will be terminated if all workers are halted no matter what is the master halt status.


构造方法摘要
HaltBytable()
           
 
方法摘要
abstract  void doReadFields(DataInput in)
          Read fields from in stream.
abstract  void doWrite(DataOutput out)
          Write fields to out stream.
 boolean isHalt()
          Return halt status.
 void readFields(DataInput in)
          De-serialize the fields of this object from in.
 void setHalt(boolean isHalt)
          Set status to halt if isHalt is true.
 void write(DataOutput out)
          Serialize the fields of this object to out.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

HaltBytable

public HaltBytable()
方法详细信息

setHalt

public void setHalt(boolean isHalt)
Set status to halt if isHalt is true.


isHalt

public boolean isHalt()
Return halt status.


write

public void write(DataOutput out)
           throws IOException
从接口 Bytable 复制的描述
Serialize the fields of this object to out.

指定者:
接口 Bytable 中的 write
参数:
out - DataOuput to serialize this object into.
抛出:
IOException - In case of any io exception.

doWrite

public abstract void doWrite(DataOutput out)
                      throws IOException
Write fields to out stream.

抛出:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
从接口 Bytable 复制的描述
De-serialize the fields of this object from in.

For efficiency, implementations should attempt to re-use storage in the existing object where possible.

指定者:
接口 Bytable 中的 readFields
参数:
in - DataInput to de-seriablize this object from.
抛出:
IOException - In case of any io exception.

doReadFields

public abstract void doReadFields(DataInput in)
                           throws IOException
Read fields from in stream.

抛出:
IOException


Copyright © 2014. All Rights Reserved.