Issue 112: new method for explicitly defining the template you want

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2665 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2010-01-18 20:35:42 +00:00
parent 27de8ac105
commit 4b403298c3
1 changed files with 7 additions and 3 deletions

View File

@ -75,7 +75,11 @@ public class TerremarkVCloudComputeClient {
public String start(String name, Image image, int minCores, int minMegs, public String start(String name, Image image, int minCores, int minMegs,
Map<String, String> properties) { Map<String, String> properties) {
checkArgument(imageCatalogIdMap.containsKey(image), "image not configured: " + image); checkArgument(imageCatalogIdMap.containsKey(image), "image not configured: " + image);
String templateId = imageCatalogIdMap.get(image); return start(name, imageCatalogIdMap.get(image), minCores, minMegs, properties);
}
public String start(String name, String templateId, int minCores, int minMegs,
Map<String, String> properties) {
String vDCId = tmClient.getDefaultVDC().getId(); String vDCId = tmClient.getDefaultVDC().getId();
logger logger
.debug( .debug(
@ -238,8 +242,8 @@ public class TerremarkVCloudComputeClient {
} }
} }
private VApp blockUntilVAppStatusOrThrowException(VApp vApp, Task deployTask, private VApp blockUntilVAppStatusOrThrowException(VApp vApp, Task deployTask, String taskType,
String taskType, VAppStatus expectedStatus) { VAppStatus expectedStatus) {
if (!taskTester.apply(deployTask.getId())) { if (!taskTester.apply(deployTask.getId())) {
throw new TaskException(taskType, vApp, deployTask); throw new TaskException(taskType, vApp, deployTask);
} }