public final class GoogleComputeEngineServiceAdapter extends Object implements ComputeServiceAdapter<Instance,MachineType,Image,Location>
Instance.selfLink()Instance.metadata() as jclouds-groupInstance.metadata() as jclouds-imageMachineType.selfLink()Image.selfLink()Zone.name()Zone.selfLink()ComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Method and Description |
|---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<Instance> |
createNodeWithGroupEncodedIntoName(String group,
String name,
Template template)
ComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name. |
void |
destroyNode(String selfLink) |
Image |
getImage(String selfLink)
get a specific image by id
|
Instance |
getNode(String selfLink) |
Instance.Scheduling |
getScheduling(GoogleComputeEngineTemplateOptions options) |
Iterable<MachineType> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<Image> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Location> |
listLocations()
Unlike EC2, you cannot default GCE instances to a region.
|
Iterable<Instance> |
listNodes() |
Iterable<Instance> |
listNodesByIds(Iterable<String> selfLinks) |
void |
rebootNode(String selfLink) |
void |
resumeNode(String selfLink) |
void |
suspendNode(String selfLink) |
public ComputeServiceAdapter.NodeAndInitialCredentials<Instance> createNodeWithGroupEncodedIntoName(String group, String name, Template template)
ComputeServiceAdapterComputeService.createNodesInGroup(String, int, Template) generates the parameters
passed into this method such that each node in the set has a unique name.
N. If you are not using library-native objects (such as libvirt Domain) use
JCloudsNativeComputeServiceAdapter instead.
credentialStorecreateNodeWithGroupEncodedIntoName in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>group - used to aggregate nodes with identical configurationname - unique supplied name for the node, which has the group encoded into it.template - includes imageId, locationId, and hardwareId used to resume
the instance.ComputeService.createNodesInGroup(String, int, Template)public Iterable<MachineType> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>ComputeService.listHardwareProfiles()public Iterable<Image> listImages()
ComputeServiceAdapterlistImages in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>ComputeService.listImages()public Image getImage(String selfLink)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>selfLink - Image#getId, which is not necessarily Image#getProviderIdpublic Iterable<Location> listLocations()
listLocations in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public Instance getNode(String selfLink)
getNode in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public Iterable<Instance> listNodes()
listNodes in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public Iterable<Instance> listNodesByIds(Iterable<String> selfLinks)
listNodesByIds in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public void destroyNode(String selfLink)
destroyNode in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public void rebootNode(String selfLink)
rebootNode in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public void resumeNode(String selfLink)
resumeNode in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public void suspendNode(String selfLink)
suspendNode in interface ComputeServiceAdapter<Instance,MachineType,Image,Location>public Instance.Scheduling getScheduling(GoogleComputeEngineTemplateOptions options)
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.