Class CloudStackComputeServiceAdapter
java.lang.Object
org.jclouds.cloudstack.compute.strategy.CloudStackComputeServiceAdapter
- All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
@Singleton
public class CloudStackComputeServiceAdapter
extends Object
implements org.jclouds.compute.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
org.jclouds.compute.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, org.jclouds.domain.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, org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention, org.jclouds.compute.config.GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull credentialsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidawaitCompletion(Iterable<String> jobs) voidawaitCompletion(String job) org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine>createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.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
@Named("jclouds.compute") protected org.jclouds.logging.Logger 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, org.jclouds.domain.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, org.jclouds.compute.functions.GroupNamingConvention.Factory namingConvention, org.jclouds.compute.config.GetLoginForProviderFromPropertiesAndStoreCredentialsOrReturnNull credentialsProvider)
-
-
Method Details
-
createNodeWithGroupEncodedIntoName
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template) - Specified by:
createNodeWithGroupEncodedIntoNamein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listHardwareProfiles
- Specified by:
listHardwareProfilesin interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listImages
- Specified by:
listImagesin interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
getImage
- Specified by:
getImagein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listNodes
- Specified by:
listNodesin interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listNodesByIds
- Specified by:
listNodesByIdsin interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
listLocations
- Specified by:
listLocationsin interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
getNode
- Specified by:
getNodein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
destroyNode
- Specified by:
destroyNodein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
disassociateIPAddresses
-
destroyVirtualMachine
-
disableStaticNATOnIPAddresses
-
deleteIPForwardingRulesForVMAndReturnDistinctIPs
-
deleteFirewallRulesForVMAndReturnDistinctIPs
-
awaitCompletion
-
awaitCompletion
-
rebootNode
- Specified by:
rebootNodein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
resumeNode
- Specified by:
resumeNodein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-
suspendNode
- Specified by:
suspendNodein interfaceorg.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering, Template, Zone>
-