@Singleton public class ElasticStackComputeServiceAdapter extends Object implements ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>
ElasticStackClient implementation
and the jclouds ComputeServiceComputeServiceAdapter.NodeAndInitialCredentials<N>| Constructor and Description |
|---|
ElasticStackComputeServiceAdapter(ElasticStackClient client,
com.google.common.base.Predicate<DriveInfo> driveNotClaimed,
Map<String,WellKnownImage> preinstalledImages,
com.google.common.cache.LoadingCache<String,DriveInfo> cache,
String defaultVncPassword,
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) |
DriveInfo |
getImage(String id)
get a specific image by 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) |
@Named(value="jclouds.compute") protected Logger logger
@Inject public ElasticStackComputeServiceAdapter(ElasticStackClient client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, Map<String,WellKnownImage> preinstalledImages, com.google.common.cache.LoadingCache<String,DriveInfo> cache, @Named(value="jclouds.elasticstack.vnc-password") String defaultVncPassword, @Named(value="jclouds.user-threads") ExecutorService executor)
public ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, 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<ServerInfo,Hardware,DriveInfo,Location>tag - 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<Hardware> listHardwareProfiles()
ComputeServiceAdapterlistHardwareProfiles 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 DriveInfo getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<ServerInfo,Hardware,DriveInfo,Location>id - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()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-2013 jclouds. All Rights Reserved.