public static class DataTransferProtocol.PipelineAck extends Object implements Writable
限定符和类型 | 字段和说明 |
---|---|
static long |
UNKOWN_SEQNO |
构造器和说明 |
---|
DataTransferProtocol.PipelineAck()
default constructor
|
DataTransferProtocol.PipelineAck(long seqno,
short[] replies)
Constructor
|
限定符和类型 | 方法和说明 |
---|---|
short |
getNumOfReplies()
Get the number of replies
|
short |
getReply(int i)
get the ith reply
|
long |
getSeqno()
Get the sequence number
|
boolean |
isSuccess()
Check if this ack contains error status
|
void |
readFields(DataInput in)
Writable interface
|
String |
toString() |
void |
write(DataOutput out)
Serialize the fields of this object to
out . |
public static final long UNKOWN_SEQNO
public DataTransferProtocol.PipelineAck()
public DataTransferProtocol.PipelineAck(long seqno, short[] replies)
seqno
- sequence numberreplies
- an array of repliespublic long getSeqno()
public short getNumOfReplies()
public short getReply(int i)
public boolean isSuccess()
public void readFields(DataInput in) throws IOException
readFields
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2009 The Apache Software Foundation