@Singleton public class CloudStackComputeServiceAdapter extends Object implements org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>
CloudStackApi implementation
and the jclouds ComputeService| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
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) |
@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)
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<VirtualMachine> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Iterable<ServiceOffering> listHardwareProfiles()
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Iterable<Template> listImages()
listImages in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Template getImage(String id)
getImage in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Iterable<VirtualMachine> listNodes()
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Iterable<VirtualMachine> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public Iterable<Zone> listLocations()
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public VirtualMachine getNode(String id)
getNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public void destroyNode(String id)
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public void destroyVirtualMachine(String virtualMachineId)
public Set<String> deleteIPForwardingRulesForVMAndReturnDistinctIPs(String virtualMachineId)
public Set<String> deleteFirewallRulesForVMAndReturnDistinctIPs(String virtualMachineId)
public void awaitCompletion(String job)
public void rebootNode(String id)
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public void resumeNode(String id)
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>public void suspendNode(String id)
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<VirtualMachine,ServiceOffering,Template,Zone>Copyright © 2009-2017 The Apache Software Foundation. All Rights Reserved.