org.jclouds.glesys.compute
Class GleSYSComputeServiceAdapter

java.lang.Object
  extended by org.jclouds.glesys.compute.GleSYSComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

@Singleton
public class GleSYSComputeServiceAdapter
extends Object
implements org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

defines the connection between the GleSYSApi implementation and the jclouds ComputeService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Field Summary
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
GleSYSComputeServiceAdapter(GleSYSApi api, GleSYSAsyncApi aapi, com.google.common.util.concurrent.ListeningExecutorService userExecutor, org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts, com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)
           
 
Method Summary
 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerDetails> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 OSTemplate getImage(String id)
           
 ServerDetails getNode(String id)
           
 Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
           
 Set<OSTemplate> listImages()
           
 Set<String> listLocations()
           
 Iterable<ServerDetails> listNodes()
           
 Iterable<ServerDetails> listNodesByIds(Iterable<String> ids)
           
 void rebootNode(String id)
           
 void resumeNode(String id)
           
 void suspendNode(String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
Constructor Detail

GleSYSComputeServiceAdapter

@Inject
public GleSYSComputeServiceAdapter(GleSYSApi api,
                                          GleSYSAsyncApi aapi,
                                          @Named(value="jclouds.user-threads")
                                          com.google.common.util.concurrent.ListeningExecutorService userExecutor,
                                          org.jclouds.compute.reference.ComputeServiceConstants.Timeouts timeouts,
                                          com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerDetails> createNodeWithGroupEncodedIntoName(String group,
                                                                                                                             String name,
                                                                                                                             org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

listHardwareProfiles

public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

listImages

public Set<OSTemplate> listImages()
Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

getImage

public OSTemplate getImage(String id)
Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

listNodes

public Iterable<ServerDetails> listNodes()
Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

listNodesByIds

public Iterable<ServerDetails> listNodesByIds(Iterable<String> ids)
Specified by:
listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

listLocations

public Set<String> listLocations()
Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

getNode

public ServerDetails getNode(String id)
Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

destroyNode

public void destroyNode(String id)
Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

rebootNode

public void rebootNode(String id)
Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

resumeNode

public void resumeNode(String id)
Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>

suspendNode

public void suspendNode(String id)
Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerDetails,org.jclouds.compute.domain.Hardware,OSTemplate,String>


Copyright © 2009-2013 The Apache Software Foundation. All Rights Reserved.