Class ConnectorFactory
java.lang.Object
org.apache.hadoop.hdfs.server.diskbalancer.connectors.ConnectorFactory
Connector factory creates appropriate connector based on the URL.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterConnectorgetCluster(URI clusterURI, org.apache.hadoop.conf.Configuration conf) Constructs an appropriate connector based on the URL.
-
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:
IOExceptionURISyntaxException
-