@Singleton public class CloudSigmaComputeServiceAdapter extends Object implements ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
CloudSigmaClient
implementation
and the jclouds ComputeService
ComputeServiceAdapter.NodeAndInitialCredentials<N>
Constructor and Description |
---|
CloudSigmaComputeServiceAdapter(CloudSigmaClient client,
com.google.common.base.Predicate<DriveInfo> driveNotClaimed,
String defaultVncPassword,
com.google.common.cache.LoadingCache<String,DriveInfo> cache,
ExecutorService executor) |
Modifier and Type | Method and Description |
---|---|
ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> |
createNodeWithGroupEncodedIntoName(String tag,
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) |
ServerInfo |
getNode(String id) |
Iterable<Hardware> |
listHardwareProfiles()
Hardware profiles describe available cpu, memory, and disk configurations
that can be used to run a node.
|
Iterable<DriveInfo> |
listImages()
look up the current standard images and do not error out, if they are not
found.
|
Iterable<Location> |
listLocations() |
Iterable<ServerInfo> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
@Inject public CloudSigmaComputeServiceAdapter(CloudSigmaClient client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, @Named(value="jclouds.cloudsigma.vnc-password") String defaultVncPassword, com.google.common.cache.LoadingCache<String,DriveInfo> cache, @Named(value="jclouds.user-threads") ExecutorService executor)
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, Template template)
ComputeServiceAdapter
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<ServerInfo,Hardware,DriveInfo,Location>
tag
- used to aggregate nodes with identical configurationname
- unique supplied name for the node, which has the tag encoded
into it.template
- includes imageId
, locationId
, and
hardwareId
used to resume the instance.ComputeService.createNodesInGroup(String, int, Template)
public Iterable<Hardware> listHardwareProfiles()
ComputeServiceAdapter
listHardwareProfiles
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
ComputeService.listHardwareProfiles()
public Iterable<DriveInfo> listImages()
listImages
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
ComputeService.listImages()
public Iterable<ServerInfo> listNodes()
listNodes
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public Iterable<Location> listLocations()
listLocations
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public ServerInfo getNode(String id)
getNode
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public void destroyNode(String id)
destroyNode
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public void rebootNode(String id)
rebootNode
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public void resumeNode(String id)
resumeNode
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
public void suspendNode(String id)
suspendNode
in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
Copyright © 2009-2012 jclouds. All Rights Reserved.