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

Package org.apache.hadoop.hdfs.protocol

# Class DatanodeLocalInfo

java.lang.Object
org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo

@Private @Evolving public class DatanodeLocalInfo extends Object
Locally available datanode information

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DatanodeLocalInfo(String softwareVersion, String configVersion, long uptime)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getConfigVersion()`
  get config version
  `String`
  `getDatanodeLocalReport()`
  A formatted string for printing the status of the DataNode.
  `String`
  `getSoftwareVersion()`
  get software version
  `long`
  `getUptime()`
  get uptime

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

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

- ## Constructor Details

  - ### DatanodeLocalInfo

    public DatanodeLocalInfo(String softwareVersion, String configVersion, long uptime)

- ## Method Details

  - ### getSoftwareVersion

    public String getSoftwareVersion()
    get software version

  - ### getConfigVersion

    public String getConfigVersion()
    get config version

  - ### getUptime

    public long getUptime()
    get uptime

  - ### getDatanodeLocalReport

    public String getDatanodeLocalReport()
    A formatted string for printing the status of the DataNode.