public class JsonNodeConnector extends Object implements ClusterConnector
Constructor and Description |
---|
JsonNodeConnector(URL clusterURI)
Constructs a JsonNodeConnector.
|
Modifier and Type | Method and Description |
---|---|
String |
getConnectorInfo()
Returns info about the connector.
|
List<DiskBalancerDataNode> |
getNodes()
getNodes function connects to a cluster definition file
and returns nodes defined in that file.
|
public JsonNodeConnector(URL clusterURI)
clusterURI
- - A file URL that contains cluster information.public List<DiskBalancerDataNode> getNodes() throws Exception
getNodes
in interface ClusterConnector
Exception
public String getConnectorInfo()
getConnectorInfo
in interface ClusterConnector
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.