public abstract class BaseNodePoolComputeServiceAdapter extends Object implements NodePoolComputeServiceAdapter
NodePoolComputeService, takes care of keeping (not changing assignments)
and of everything that does not change the pool.JCloudsNativeComputeServiceAdapter.NodeWithInitialCredentialsComputeServiceAdapter.NodeAndInitialCredentials<N>| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.base.Supplier<ComputeService> |
backendComputeService |
protected com.google.common.base.Supplier<Template> |
backendTemplate |
protected AdminAccess.Builder |
initialCredentialsBuilder |
protected NodeMetadataStore |
metadataStore |
protected String |
poolGroupName |
| Constructor and Description |
|---|
BaseNodePoolComputeServiceAdapter(com.google.common.base.Supplier<ComputeService> backendComputeService,
com.google.common.base.Supplier<Template> backendTemplate,
String poolGroupName,
NodeMetadataStore metadataStore,
String poolNodeAdminAccess,
AdminAccess.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<? extends NodeMetadata> |
addToPool(int number) |
void |
destroyPool() |
ComputeServiceContext |
getBackendComputeServiceContext() |
protected Set<NodeMetadata> |
getBackendNodes() |
Image |
getImage(String id)
get a specific image by id
|
NodeMetadata |
getNode(String id) |
String |
getPoolGroupName() |
Iterable<Hardware> |
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() |
Iterable<NodeMetadata> |
listNodes() |
void |
rebootNode(String id) |
void |
resumeNode(String id) |
void |
suspendNode(String id) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrentSize, idleNodes, maxNodes, minNodes, usedNodescreateNodeWithGroupEncodedIntoName, destroyNodeprotected final com.google.common.base.Supplier<ComputeService> backendComputeService
protected final com.google.common.base.Supplier<Template> backendTemplate
protected final String poolGroupName
protected final NodeMetadataStore metadataStore
protected final AdminAccess.Builder initialCredentialsBuilder
public BaseNodePoolComputeServiceAdapter(com.google.common.base.Supplier<ComputeService> backendComputeService, com.google.common.base.Supplier<Template> backendTemplate, @Named(value="jclouds.nodepool.backend-group") String poolGroupName, NodeMetadataStore metadataStore, @Named(value="jclouds.nodepool.admin-access") String poolNodeAdminAccess, AdminAccess.Configuration configuration)
public NodeMetadata getNode(String id)
JCloudsNativeComputeServiceAdaptergetNode in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>getNode in interface JCloudsNativeComputeServiceAdapterpublic Iterable<NodeMetadata> listNodes()
JCloudsNativeComputeServiceAdapterlistNodes in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>listNodes in interface JCloudsNativeComputeServiceAdapterpublic Iterable<Hardware> listHardwareProfiles()
JCloudsNativeComputeServiceAdapterlistHardwareProfiles in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>listHardwareProfiles in interface JCloudsNativeComputeServiceAdapterComputeService.listHardwareProfiles()public Iterable<Image> listImages()
JCloudsNativeComputeServiceAdapterlistImages in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>listImages in interface JCloudsNativeComputeServiceAdapterComputeService.listImages()public Iterable<Location> listLocations()
JCloudsNativeComputeServiceAdapterlistLocations in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>listLocations in interface JCloudsNativeComputeServiceAdapterpublic Image getImage(String id)
ComputeServiceAdaptergetImage in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>id - ComputeMetadata.getId(), which is not necessarily ComputeMetadata.getProviderId()public void suspendNode(String id)
suspendNode in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>public void resumeNode(String id)
resumeNode in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>public void rebootNode(String id)
JCloudsNativeComputeServiceAdapterrebootNode in interface ComputeServiceAdapter<NodeMetadata,Hardware,Image,Location>rebootNode in interface JCloudsNativeComputeServiceAdapterprotected Set<NodeMetadata> getBackendNodes()
public void destroyPool()
destroyPool in interface NodePoolComputeServiceAdapterpublic ComputeServiceContext getBackendComputeServiceContext()
getBackendComputeServiceContext in interface NodePoolComputeServiceAdapterprotected Set<? extends NodeMetadata> addToPool(int number)
public String getPoolGroupName()
getPoolGroupName in interface NodePoolComputeServiceAdapterCopyright © 2009-2013 jclouds. All Rights Reserved.