BlockReportContext (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.protocol, class: BlockReportContext

Package org.apache.hadoop.hdfs.server.protocol

# 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 Summary

  Constructors
  Constructor
  Description
  `BlockReportContext(int totalRpcs, int curRpc, long reportId, long leaseId)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `getCurRpc()`
  `long`
  `getLeaseId()`
  `long`
  `getReportId()`
  `int`
  `getTotalRpcs()`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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()