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()
           
 
方法摘要
 byte[] getBytes()
           
 String getContainerId()
           
 int getCurrentIteration()
           
 boolean isStopMessage()
           
 void readFields(DataInput in)
          De-serialize the fields of this object from in.
 void setBytes(byte[] bytes)
           
 void setContainerId(String containerId)
           
 void setCurrentIteration(int currentIteration)
           
 void setStopMessage(boolean isStopMessage)
           
 String toString()
           
 void write(DataOutput out)
          Serialize the fields of this object to out.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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.