mirror of https://github.com/apache/jclouds.git
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:
parent
27de8ac105
commit
4b403298c3
|
@ -75,7 +75,11 @@ public class TerremarkVCloudComputeClient {
|
|||
public String start(String name, Image image, int minCores, int minMegs,
|
||||
Map<String, String> properties) {
|
||||
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();
|
||||
logger
|
||||
.debug(
|
||||
|
@ -238,8 +242,8 @@ public class TerremarkVCloudComputeClient {
|
|||
}
|
||||
}
|
||||
|
||||
private VApp blockUntilVAppStatusOrThrowException(VApp vApp, Task deployTask,
|
||||
String taskType, VAppStatus expectedStatus) {
|
||||
private VApp blockUntilVAppStatusOrThrowException(VApp vApp, Task deployTask, String taskType,
|
||||
VAppStatus expectedStatus) {
|
||||
if (!taskTester.apply(deployTask.getId())) {
|
||||
throw new TaskException(taskType, vApp, deployTask);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue