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

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

# Class ConnectorFactory

java.lang.Object
org.apache.hadoop.hdfs.server.diskbalancer.connectors.ConnectorFactory

public final class ConnectorFactory extends Object
Connector factory creates appropriate connector based on the URL.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static ClusterConnector`
  `getCluster(URI clusterURI, org.apache.hadoop.conf.Configuration conf)`
  Constructs an appropriate connector based on the URL.

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

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

- ## Method Details

  - ### getCluster

    public static ClusterConnector getCluster(URI clusterURI, org.apache.hadoop.conf.Configuration conf) throws IOException, URISyntaxException
    Constructs an appropriate connector based on the URL.
    Parameters:
      `clusterURI` - - URL
    Returns:
      ClusterConnector
    Throws:
      `IOException`
      `URISyntaxException`