}
}
public URI[] getLocations(DeploymentInfo deploymentInfo) {
Object deploymentID = deploymentInfo.getDeploymentID();
NetworkConnectorTracker networkConnectorTracker;
synchronized (deploymentIdToNetworkConnectorTracker) {
networkConnectorTracker = deploymentIdToNetworkConnectorTracker.get(deploymentID);
}
if (null == networkConnectorTracker) {
return null;
}
Set<URI> connectorURIs;
try {
connectorURIs = networkConnectorTracker.getConnectorURIs(deploymentID);
} catch (NetworkConnectorTrackerException e) {
return null;
}
return connectorURIs.toArray(new URI[connectorURIs.size()]);
}