org.jclouds.vcloud.terremark.compute
Class TerremarkVCloudComputeClient
java.lang.Object
org.jclouds.vcloud.compute.internal.CommonVCloudComputeClientImpl<VCloudExpressVAppTemplate,VCloudExpressVApp>
org.jclouds.vcloud.compute.internal.VCloudExpressComputeClientImpl
org.jclouds.vcloud.terremark.compute.TerremarkVCloudComputeClient
- All Implemented Interfaces:
- CommonVCloudComputeClient, VCloudExpressComputeClient
@Singleton
public class TerremarkVCloudComputeClient
- extends VCloudExpressComputeClientImpl
- Author:
- Adrian Cole
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
client
protected final TerremarkVCloudClient client
credentialsProvider
protected final PopulateDefaultLoginCredentialsForImageStrategy credentialsProvider
passwordGenerator
protected final javax.inject.Provider<String> passwordGenerator
credentialStore
protected final Map<String,Credentials> credentialStore
TerremarkVCloudComputeClient
@Inject
protected TerremarkVCloudComputeClient(TerremarkVCloudClient client,
PopulateDefaultLoginCredentialsForImageStrategy credentialsProvider,
@Named(value="PASSWORD")
javax.inject.Provider<String> passwordGenerator,
com.google.common.base.Predicate<URI> successTester,
Map<Status,NodeState> vAppStatusToNodeState,
Map<String,Credentials> credentialStore)
start
public VCloudExpressVApp start(@Nullable
URI VDC,
URI templateId,
String name,
InstantiateVAppTemplateOptions options,
int... portsToOpen)
- Specified by:
start in interface VCloudExpressComputeClient- Overrides:
start in class VCloudExpressComputeClientImpl
createPublicAddressMappedToPorts
public String createPublicAddressMappedToPorts(URI vAppId,
int... ports)
stop
public void stop(URI id)
- deletes the internet service and nodes associated with the vapp. Deletes the IP address, if
there are no others using it. Finally, it powers off and deletes the vapp. Note that we do not
call undeploy, as terremark does not support the command.
- Specified by:
stop in interface CommonVCloudComputeClient- Overrides:
stop in class CommonVCloudComputeClientImpl<VCloudExpressVAppTemplate,VCloudExpressVApp>
getPrivateAddresses
public Set<String> getPrivateAddresses(URI id)
- Specified by:
getPrivateAddresses in interface CommonVCloudComputeClient- Overrides:
getPrivateAddresses in class VCloudExpressComputeClientImpl
getPublicAddresses
public Set<String> getPublicAddresses(URI id)
- Specified by:
getPublicAddresses in interface CommonVCloudComputeClient- Overrides:
getPublicAddresses in class VCloudExpressComputeClientImpl
Copyright © 2009-2010 jclouds. All Rights Reserved.