ClusterConnector (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.diskbalancer.connectors, interface: ClusterConnector

Package org.apache.hadoop.hdfs.server.diskbalancer.connectors

# Interface ClusterConnector

All Known Implementing Classes:
  `JsonNodeConnector`

public interface ClusterConnector
ClusterConnector interface hides all specifics about how we communicate to the HDFS cluster. This interface returns data in classes that diskbalancer understands.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getConnectorInfo()`
  Returns info about the connector.
  `List<DiskBalancerDataNode>`
  `getNodes()`
  getNodes function returns a list of DiskBalancerDataNodes.

- ## Method Details

  - ### getNodes

    List<DiskBalancerDataNode> getNodes() throws Exception
    getNodes function returns a list of DiskBalancerDataNodes.
    Returns:
      Array of DiskBalancerDataNodes
    Throws:
      `Exception`

  - ### getConnectorInfo

    String getConnectorInfo()
    Returns info about the connector.
    Returns:
      String.