@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 com.google.common.base.Supplier<NetworkConfig> |
defaultNetworkConfig |
protected Logger |
logger |
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,
com.google.common.base.Supplier<NetworkConfig> defaultNetworkConfig,
String buildVersion) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VApp> |
createNodeWithGroupEncodedIntoName(String group,
String name,
Template template) |
void |
ensureVmHasAllocationModeOrPooled(VApp vApp,
IpAddressAllocationMode ipAllocationMode) |
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) |
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 com.google.common.base.Supplier<NetworkConfig> defaultNetworkConfig
protected final String buildVersion
@Inject protected InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn(VCloudClient client, com.google.common.base.Predicate<URI> successTester, com.google.common.cache.LoadingCache<URI,VAppTemplate> vAppTemplates, com.google.common.base.Supplier<NetworkConfig> defaultNetworkConfig, @Named(value="jclouds.build-version") String buildVersion)
public ComputeServiceAdapter.NodeAndInitialCredentials<VApp> createNodeWithGroupEncodedIntoName(String group, 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-2012 jclouds. All Rights Reserved.