org.apache.hadoop.hdfs.protocol
Class DataTransferProtocol.PipelineAck

java.lang.Object
  extended by org.apache.hadoop.hdfs.protocol.DataTransferProtocol.PipelineAck
All Implemented Interfaces:
org.apache.hadoop.io.Writable
Enclosing interface:
DataTransferProtocol

@InterfaceAudience.Private
@InterfaceStability.Evolving
public static class DataTransferProtocol.PipelineAck
extends Object
implements org.apache.hadoop.io.Writable

reply


Field Summary
static long UNKOWN_SEQNO
           
 
Constructor Summary
DataTransferProtocol.PipelineAck()
          default constructor
DataTransferProtocol.PipelineAck(long seqno, DataTransferProtocol.Status[] replies)
          Constructor
 
Method Summary
 short getNumOfReplies()
          Get the number of replies
 DataTransferProtocol.Status 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKOWN_SEQNO

public static final long UNKOWN_SEQNO
See Also:
Constant Field Values
Constructor Detail

DataTransferProtocol.PipelineAck

public DataTransferProtocol.PipelineAck()
default constructor


DataTransferProtocol.PipelineAck

public DataTransferProtocol.PipelineAck(long seqno,
                                        DataTransferProtocol.Status[] replies)
Constructor

Parameters:
seqno - sequence number
replies - an array of replies
Method Detail

getSeqno

public long getSeqno()
Get the sequence number

Returns:
the sequence number

getNumOfReplies

public short getNumOfReplies()
Get the number of replies

Returns:
the number of replies

getReply

public DataTransferProtocol.Status getReply(int i)
get the ith reply

Returns:
the the ith reply

isSuccess

public boolean isSuccess()
Check if this ack contains error status

Returns:
true if all statuses are SUCCESS

readFields

public void readFields(DataInput in)
                throws IOException
Writable interface

Specified by:
readFields in interface org.apache.hadoop.io.Writable
Throws:
IOException

write

public void write(DataOutput out)
           throws IOException
Specified by:
write in interface org.apache.hadoop.io.Writable
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009 The Apache Software Foundation