public class GoogleComputeEngineServiceAdapter extends Object implements org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
GoogleComputeEngineServiceAdapter(GoogleComputeEngineApi api,
com.google.common.base.Supplier<String> userProject,
com.google.common.base.Function<org.jclouds.compute.options.TemplateOptions,com.google.common.collect.ImmutableMap.Builder<String,String>> metatadaFromTemplateOptions,
com.google.common.base.Predicate<AtomicReference<Operation>> operationDonePredicate,
Long operationCompleteCheckInterval,
Long operationCompleteCheckTimeout,
com.google.common.base.Supplier<Map<URI,? extends org.jclouds.domain.Location>> zones,
FirewallTagNamingConvention.Factory firewallTagNamingConvention) |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<InstanceInZone> |
createNodeWithGroupEncodedIntoName(String group,
String name,
org.jclouds.compute.domain.Template template) |
void |
destroyNode(String name) |
Image |
getImage(String id) |
InstanceInZone |
getNode(String name) |
Iterable<MachineTypeInZone> |
listHardwareProfiles() |
Iterable<Image> |
listImages() |
Iterable<Zone> |
listLocations() |
Iterable<InstanceInZone> |
listNodes() |
Iterable<InstanceInZone> |
listNodesByIds(Iterable<String> ids) |
void |
rebootNode(String name) |
void |
resumeNode(String name) |
void |
suspendNode(String name) |
@Inject public GoogleComputeEngineServiceAdapter(GoogleComputeEngineApi api, com.google.common.base.Supplier<String> userProject, com.google.common.base.Function<org.jclouds.compute.options.TemplateOptions,com.google.common.collect.ImmutableMap.Builder<String,String>> metatadaFromTemplateOptions, @Named(value="zone") com.google.common.base.Predicate<AtomicReference<Operation>> operationDonePredicate, @Named(value="jclouds.google-compute-engine.operation-complete-interval") Long operationCompleteCheckInterval, @Named(value="jclouds.google-compute-engine.operation-complete-timeout") Long operationCompleteCheckTimeout, com.google.common.base.Supplier<Map<URI,? extends org.jclouds.domain.Location>> zones, FirewallTagNamingConvention.Factory firewallTagNamingConvention)
public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<InstanceInZone> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Iterable<MachineTypeInZone> listHardwareProfiles()
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Iterable<Image> listImages()
listImages in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Image getImage(String id)
getImage in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Iterable<Zone> listLocations()
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public InstanceInZone getNode(String name)
getNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Iterable<InstanceInZone> listNodes()
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public Iterable<InstanceInZone> listNodesByIds(Iterable<String> ids)
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public void destroyNode(String name)
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public void rebootNode(String name)
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public void resumeNode(String name)
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>public void suspendNode(String name)
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.