org.jclouds.vcloud.compute.strategy
Class InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn
java.lang.Object
org.jclouds.vcloud.compute.strategy.InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn
- All Implemented Interfaces:
- CreateNodeWithGroupEncodedIntoName
@Singleton
public class InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn
- extends Object
- implements CreateNodeWithGroupEncodedIntoName
- Author:
- Adrian Cole
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
client
protected final VCloudClient client
getNode
protected final GetNodeMetadataStrategy getNode
successTester
protected final com.google.common.base.Predicate<URI> successTester
InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn
@Inject
protected InstantiateVAppTemplateWithGroupEncodedIntoNameThenCustomizeDeployAndPowerOn(com.google.common.base.Predicate<URI> successTester,
VCloudClient client,
GetNodeMetadataStrategy getNode)
createNodeWithGroupEncodedIntoName
public NodeMetadata createNodeWithGroupEncodedIntoName(String tag,
String name,
Template template)
- Description copied from interface:
CreateNodeWithGroupEncodedIntoName
- create a node given the name and template parameters such as imageid, hardwareid, and
locationid.
- Specified by:
createNodeWithGroupEncodedIntoName
in interface CreateNodeWithGroupEncodedIntoName
- Parameters:
tag
- group name supplied by the username
- supplied by CreateNodesInGroupThenAddToSet
and must have the tag encoded into
it.template
- supplied by the user
- Returns:
- NodeMetadata from the new object, most likely in some pending state.
waitForTask
public void waitForTask(Task task,
VApp vAppResponse)
updateVmWithCustomizationScript
public Task updateVmWithCustomizationScript(Vm vm,
String customizationScript)
updateVmWithIpAddressAllocationMode
public Task updateVmWithIpAddressAllocationMode(Vm vm,
IpAddressAllocationMode ipAddressAllocationMode)
updateCPUCountOfVm
public Task updateCPUCountOfVm(Vm vm,
int cpuCount)
updateMemoryMBOfVm
public Task updateMemoryMBOfVm(Vm vm,
int memoryInMB)
Copyright © 2009-2011 jclouds. All Rights Reserved.