@Singleton public class FGCPComputeServiceAdapter extends Object implements ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
FGCPApi
implementation and the jclouds ComputeService
.
Bound in FGCPComputeServiceAdapter.ComputeServiceAdapter.NodeAndInitialCredentials<N>
Modifier and Type | Field and Description |
---|---|
protected Logger |
logger |
protected com.google.common.base.Predicate<String> |
serverCreated |
protected com.google.common.base.Predicate<String> |
serverStopped |
protected com.google.common.base.Predicate<String> |
systemNormal |
protected ResourceIdToFirewallId |
toFirewallId |
protected ResourceIdToSystemId |
toSystemId |
Constructor and Description |
---|
FGCPComputeServiceAdapter(FGCPApi api,
FGCPAsyncApi asyncApi,
ServerStopped serverStopped,
SystemStatusNormal systemNormal,
ComputeServiceConstants.Timeouts timeouts,
ResourceIdToFirewallId toFirewallId,
ResourceIdToSystemId toSystemId) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<VServerMetadata> |
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 id) |
DiskImage |
getImage(String id)
get a specific image by id
|
VServerMetadata |
getNode(String id) |
Iterable<ServerType> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations that can be used to
run a node.
|
Iterable<DiskImage> |
listImages()
Images are the available configured operating systems that someone can run a node with.
|
Iterable<Location> |
listLocations() |
Iterable<VServerMetadata> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Named(value="jclouds.compute") protected Logger logger
protected com.google.common.base.Predicate<String> serverStopped
protected com.google.common.base.Predicate<String> serverCreated
protected com.google.common.base.Predicate<String> systemNormal
protected ResourceIdToFirewallId toFirewallId
protected ResourceIdToSystemId toSystemId
@Inject public FGCPComputeServiceAdapter(FGCPApi api, FGCPAsyncApi asyncApi, ServerStopped serverStopped, SystemStatusNormal systemNormal, ComputeServiceConstants.Timeouts timeouts, ResourceIdToFirewallId toFirewallId, ResourceIdToSystemId toSystemId)
public ComputeServiceAdapter.NodeAndInitialCredentials<VServerMetadata> 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.
N
. If you are not using library-native objects (such as libvirt Domain
) use
JCloudsNativeComputeServiceAdapter
instead.
credentialStore
createNodeWithGroupEncodedIntoName
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,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<ServerType> listHardwareProfiles()
listHardwareProfiles
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
ComputeService.listHardwareProfiles()
public Iterable<DiskImage> listImages()
listImages
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
ComputeService.listImages()
public DiskImage getImage(String id)
getImage
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
id
- ComputeMetadata.getId()
, which is not necessarily ComputeMetadata.getProviderId()
public Iterable<Location> listLocations()
listLocations
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public VServerMetadata getNode(String id)
getNode
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public Iterable<VServerMetadata> listNodes()
listNodes
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<VServerMetadata,ServerType,DiskImage,Location>
Copyright © 2009-2013 jclouds. All Rights Reserved.