ml.shifu.guagua.io
类 BytableWrapper
java.lang.Object
ml.shifu.guagua.io.BytableWrapper
- 所有已实现的接口:
- Bytable
public class BytableWrapper
- extends Object
- implements Bytable
A Bytable wrapper to wrap some useful information to netty server and client communication.
BytableWrapper
public BytableWrapper()
getCurrentIteration
public int getCurrentIteration()
- 返回:
- the currentIteration
setCurrentIteration
public void setCurrentIteration(int currentIteration)
- 参数:
currentIteration - the currentIteration to set
getContainerId
public String getContainerId()
- 返回:
- the containerId
setContainerId
public void setContainerId(String containerId)
- 参数:
containerId - the containerId to set
isStopMessage
public boolean isStopMessage()
- 返回:
- the isStopMessage
setStopMessage
public void setStopMessage(boolean isStopMessage)
- 参数:
isStopMessage - the isStopMessage to set
getBytes
public byte[] getBytes()
- 返回:
- the bytes
setBytes
public void setBytes(byte[] bytes)
- 参数:
bytes - the bytes to set
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.
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.
toString
public String toString()
- 覆盖:
- 类
Object 中的 toString
Copyright © 2015. All Rights Reserved.