Class BlockReportContext

java.lang.Object
org.apache.hadoop.hdfs.server.protocol.BlockReportContext

@Private public class BlockReportContext extends Object
The context of the block report. This is a set of fields that the Datanode sends to provide context about a block report RPC. The context includes a unique 64-bit ID which identifies the block report as a whole. It also includes the total number of RPCs which this block report is split into, and the index into that total for the current RPC.
  • Constructor Details

    • BlockReportContext

      public BlockReportContext(int totalRpcs, int curRpc, long reportId, long leaseId)
  • Method Details

    • getTotalRpcs

      public int getTotalRpcs()
    • getCurRpc

      public int getCurRpc()
    • getReportId

      public long getReportId()
    • getLeaseId

      public long getLeaseId()