use of alien4cloud.deployment.matching.services.nodes.MatchingConfigurations in project yorc-a4c-plugin by ystia.
the class AbstractLocationConfigurer method getMatchingConfigurations.
public Map<String, MatchingConfiguration> getMatchingConfigurations(String matchingConfigRelativePath) {
Path matchingConfigPath = selfContext.getPluginPath().resolve(matchingConfigRelativePath);
MatchingConfigurations matchingConfigurations = null;
try {
matchingConfigurations = matchingConfigurationsParser.parseFile(matchingConfigPath).getResult();
} catch (ParsingException e) {
return Maps.newHashMap();
}
Map<String, MatchingConfiguration> ret = matchingConfigurations.getMatchingConfigurations();
printMatchingConfigurations(ret);
return ret;
}
use of alien4cloud.deployment.matching.services.nodes.MatchingConfigurations in project alien4cloud by alien4cloud.
the class MockOpenStackLocationConfigurer method getMatchingConfigurations.
@Override
public Map<String, MatchingConfiguration> getMatchingConfigurations() {
Path matchingConfigPath = selfContext.getPluginPath().resolve("openstack/mock-resources-matching-config.yml");
MatchingConfigurations matchingConfigurations = null;
try {
matchingConfigurations = matchingConfigurationsParser.parseFile(matchingConfigPath).getResult();
} catch (ParsingException e) {
return Maps.newHashMap();
}
return matchingConfigurations.getMatchingConfigurations();
}
use of alien4cloud.deployment.matching.services.nodes.MatchingConfigurations in project alien4cloud by alien4cloud.
the class MockAmazonLocationConfigurer method getMatchingConfigurations.
@Override
public Map<String, MatchingConfiguration> getMatchingConfigurations() {
Path matchingConfigPath = selfContext.getPluginPath().resolve("aws/mock-resources-matching-config.yml");
MatchingConfigurations matchingConfigurations = null;
try {
matchingConfigurations = matchingConfigurationsParser.parseFile(matchingConfigPath).getResult();
} catch (ParsingException e) {
return Maps.newHashMap();
}
return matchingConfigurations.getMatchingConfigurations();
}
Aggregations