org.jclouds.googlecomputeengine.compute
Class GoogleComputeEngineServiceAdapter

java.lang.Object
  extended by org.jclouds.googlecomputeengine.compute.GoogleComputeEngineServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

public class GoogleComputeEngineServiceAdapter
extends Object
implements org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

Author:
David Alves

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

GoogleComputeEngineServiceAdapter

@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)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<InstanceInZone> createNodeWithGroupEncodedIntoName(String group,
                                                                                                                              String name,
                                                                                                                              org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

listHardwareProfiles

public Iterable<MachineTypeInZone> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

listImages

public Iterable<Image> listImages()
Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

getImage

public Image getImage(String id)
Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

listLocations

public Iterable<Zone> listLocations()
Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

getNode

public InstanceInZone getNode(String name)
Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

listNodes

public Iterable<InstanceInZone> listNodes()
Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

listNodesByIds

public Iterable<InstanceInZone> listNodesByIds(Iterable<String> ids)
Specified by:
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

destroyNode

public void destroyNode(String name)
Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

rebootNode

public void rebootNode(String name)
Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

resumeNode

public void resumeNode(String name)
Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>

suspendNode

public void suspendNode(String name)
Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<InstanceInZone,MachineTypeInZone,Image,Zone>


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.