@Singleton public class InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn extends Object
Modifier and Type | Class and Description |
---|---|
static class |
InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn.ComputerNameValidator
per john ellis at bluelock, vCloud Director 1.5 is more strict than earlier versions.
|
Modifier and Type | Field and Description |
---|---|
protected String |
buildVersion |
protected VCloudClient |
client |
protected Logger |
logger |
protected NetworkConfigurationForNetworkAndOptions |
networkConfigurationForNetworkAndOptions |
protected com.google.common.base.Predicate<URI> |
successTester |
protected com.google.common.cache.LoadingCache<URI,VAppTemplate> |
vAppTemplates |
Modifier | Constructor and Description |
---|---|
protected |
InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn(VCloudClient client,
com.google.common.base.Predicate<URI> successTester,
com.google.common.cache.LoadingCache<URI,VAppTemplate> vAppTemplates,
NetworkConfigurationForNetworkAndOptions networkConfigurationForNetworkAndOptions,
String buildVersion) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VApp> |
createNodeWithGroupEncodedIntoName(String group,
String name,
Template template) |
void |
ensureVmHasAllocationModeOrPooled(VApp vApp,
IpAddressAllocationMode ipAllocationMode) |
protected VApp |
instantiateVAppFromTemplate(String name,
Template template) |
Task |
updateCPUCountOfVm(Vm vm,
int cpuCount) |
Task |
updateMemoryMBOfVm(Vm vm,
int memoryInMB) |
Task |
updateVmWithNameAndCustomizationScript(Vm vm,
String name,
String customizationScript)
Naming constraints modifying a VM on a VApp in vCloud Director (at least v1.5) can be more
strict than those in a vAppTemplate.
|
void |
waitForTask(Task task) |
@Named(value="jclouds.compute") protected Logger logger
protected final VCloudClient client
protected final com.google.common.base.Predicate<URI> successTester
protected final com.google.common.cache.LoadingCache<URI,VAppTemplate> vAppTemplates
protected final NetworkConfigurationForNetworkAndOptions networkConfigurationForNetworkAndOptions
protected final String buildVersion
@Inject protected InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn(VCloudClient client, com.google.common.base.Predicate<URI> successTester, com.google.common.cache.LoadingCache<URI,VAppTemplate> vAppTemplates, NetworkConfigurationForNetworkAndOptions networkConfigurationForNetworkAndOptions, String buildVersion)
public ComputeServiceAdapter.NodeAndInitialCredentials<VApp> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
protected VApp instantiateVAppFromTemplate(String name, Template template)
public void waitForTask(Task task)
public Task updateVmWithNameAndCustomizationScript(Vm vm, String name, @Nullable String customizationScript)
Ubuntu_10.04
, you must change the name to a
valid (alphanumeric underscore) name before you can update it.public void ensureVmHasAllocationModeOrPooled(VApp vApp, @Nullable IpAddressAllocationMode ipAllocationMode)
Copyright © 2009-2013 jclouds. All Rights Reserved.