Class CloudStackComputeServiceAdapter
java.lang.Object
org.jclouds.cloudstack.compute.strategy.CloudStackComputeServiceAdapter
- All Implemented Interfaces:
ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
@Singleton
public class CloudStackComputeServiceAdapter
extends Object
implements ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>
defines the connection between the
CloudStackApi implementation
and the jclouds ComputeService-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
ComputeServiceAdapter.NodeAndInitialCredentials<N extends Object> -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCloudStackComputeServiceAdapter(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete, com.google.common.base.Supplier<Map<String, Network>> networkSupplier, com.google.common.base.Supplier<Map<String, Project>> projectSupplier, BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult, StaticNATVirtualMachineInNetwork.Factory staticNATVMInNetwork, CreatePortForwardingRulesForIP setupPortForwardingRulesForIP, CreateFirewallRulesForIP setupFirewallRulesForIP, com.google.common.cache.LoadingCache<String, Set<IPForwardingRule>> vmToRules, Map<String, Credentials> credentialStore, Map<NetworkType, ? extends OptionsConverter> optionsConverters, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String, Zone>> zoneIdToZone, com.google.common.cache.LoadingCache<ZoneAndName, SecurityGroup> securityGroupCache, com.google.common.cache.LoadingCache<String, SshKeyPair> keyPairCache, GroupNamingConvention.Factory namingConvention, GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitCompletion(Iterable<String> jobs) voidawaitCompletion(String job) createNodeWithGroupEncodedIntoName(String group, String name, Template template) deleteFirewallRulesForVMAndReturnDistinctIPs(String virtualMachineId) deleteIPForwardingRulesForVMAndReturnDistinctIPs(String virtualMachineId) voiddestroyNode(String id) voiddestroyVirtualMachine(String virtualMachineId) voiddisableStaticNATOnIPAddresses(Set<String> ipAddresses) voiddisassociateIPAddresses(Set<String> ipAddresses) listNodesByIds(Iterable<String> ids) voidrebootNode(String id) voidresumeNode(String id) voidsuspendNode(String id)
-
Field Details
-
logger
-
-
Constructor Details
-
CloudStackComputeServiceAdapter
@Inject public CloudStackComputeServiceAdapter(CloudStackApi client, com.google.common.base.Predicate<String> jobComplete, com.google.common.base.Supplier<Map<String, Network>> networkSupplier, com.google.common.base.Supplier<Map<String, Project>> projectSupplier, BlockUntilJobCompletesAndReturnResult blockUntilJobCompletesAndReturnResult, StaticNATVirtualMachineInNetwork.Factory staticNATVMInNetwork, CreatePortForwardingRulesForIP setupPortForwardingRulesForIP, CreateFirewallRulesForIP setupFirewallRulesForIP, com.google.common.cache.LoadingCache<String, Set<IPForwardingRule>> vmToRules, Map<String, Credentials> credentialStore, Map<NetworkType, ? extends OptionsConverter> optionsConverters, com.google.common.base.Supplier<com.google.common.cache.LoadingCache<String, Zone>> zoneIdToZone, com.google.common.cache.LoadingCache<ZoneAndName, SecurityGroup> securityGroupCache, com.google.common.cache.LoadingCache<String, SshKeyPair> keyPairCache, GroupNamingConvention.Factory namingConvention, GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull credentialsProvider)
-
-
Method Details
-
createNodeWithGroupEncodedIntoName
public ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> createNodeWithGroupEncodedIntoName(String group, String name, Template template) - Specified by:
createNodeWithGroupEncodedIntoNamein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listHardwareProfiles
- Specified by:
listHardwareProfilesin interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listImages
- Specified by:
listImagesin interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
getImage
- Specified by:
getImagein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listNodes
- Specified by:
listNodesin interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listNodesByIds
- Specified by:
listNodesByIdsin interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listLocations
- Specified by:
listLocationsin interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
getNode
- Specified by:
getNodein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
destroyNode
- Specified by:
destroyNodein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
disassociateIPAddresses
-
destroyVirtualMachine
-
disableStaticNATOnIPAddresses
-
deleteIPForwardingRulesForVMAndReturnDistinctIPs
-
deleteFirewallRulesForVMAndReturnDistinctIPs
-
awaitCompletion
-
awaitCompletion
-
rebootNode
- Specified by:
rebootNodein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
resumeNode
- Specified by:
resumeNodein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
suspendNode
- Specified by:
suspendNodein interfaceComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-