Class JsonNodeConnector
java.lang.Object
org.apache.hadoop.hdfs.server.diskbalancer.connectors.JsonNodeConnector
- All Implemented Interfaces:
ClusterConnector
A connector that understands JSON data cluster models.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns info about the connector.getNodes()getNodes function connects to a cluster definition file and returns nodes defined in that file.
-
Constructor Details
-
JsonNodeConnector
Constructs a JsonNodeConnector.- Parameters:
clusterURI- - A file URL that contains cluster information.
-
-
Method Details
-
getNodes
getNodes function connects to a cluster definition file and returns nodes defined in that file.- Specified by:
getNodesin interfaceClusterConnector- Returns:
- Array of DiskBalancerDataNodes
- Throws:
Exception
-
getConnectorInfo
Returns info about the connector.- Specified by:
getConnectorInfoin interfaceClusterConnector- Returns:
- String.
-