|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectml.shifu.guagua.io.HaltBytable
public abstract class HaltBytable
Abstract Bytable implementation to read and store halt status.
Halt status is used for master or worker result to determine whether the application should be terminated.
By default master is the only one who has the right to stop the application if halt status in master result, no matter halt status in each worker is true.
One switch in GuaguaConstants#GUAGUA_WORKER_HALT_ENABLE, if enabled, 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 |
| 构造方法详细信息 |
|---|
public HaltBytable()
| 方法详细信息 |
|---|
public void setHalt(boolean isHalt)
isHalt is true.
public boolean isHalt()
public void write(DataOutput out)
throws IOException
Bytable 复制的描述out.
Bytable 中的 writeout - DataOuput to serialize this object into.
IOException - In case of any io exception.
public abstract void doWrite(DataOutput out)
throws IOException
IOException
public void readFields(DataInput in)
throws IOException
Bytable 复制的描述in.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
Bytable 中的 readFieldsin - DataInput to de-seriablize this object from.
IOException - In case of any io exception.
public abstract void doReadFields(DataInput in)
throws IOException
IOException
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||