Class ElasticStackComputeServiceAdapter

java.lang.Object
org.jclouds.elasticstack.compute.ElasticStackComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>

@Singleton public class ElasticStackComputeServiceAdapter extends Object implements org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
defines the connection between the ElasticStackApi implementation and the jclouds ComputeService
  • Field Details

    • logger

      @Named("jclouds.compute") protected org.jclouds.logging.Logger logger
  • Constructor Details

    • ElasticStackComputeServiceAdapter

      @Inject public ElasticStackComputeServiceAdapter(ElasticStackApi client, com.google.common.base.Predicate<DriveInfo> driveNotClaimed, com.google.common.base.Supplier<Map<String,WellKnownImage>> preinstalledImages, com.google.common.cache.LoadingCache<String,DriveInfo> cache, @Named("jclouds.elasticstack.vnc-password") String defaultVncPassword, @Named("jclouds.user-threads") com.google.common.util.concurrent.ListeningExecutorService userExecutor)
  • Method Details

    • createNodeWithGroupEncodedIntoName

      public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<ServerInfo> createNodeWithGroupEncodedIntoName(String tag, String name, org.jclouds.compute.domain.Template template)
      Specified by:
      createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • listHardwareProfiles

      public Iterable<org.jclouds.compute.domain.Hardware> listHardwareProfiles()
      Specified by:
      listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • listImages

      public Iterable<DriveInfo> listImages()
      look up the current standard images and do not error out, if they are not found.
      Specified by:
      listImages in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • listNodes

      public Iterable<ServerInfo> listNodes()
      Specified by:
      listNodes in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • listNodesByIds

      public Iterable<ServerInfo> listNodesByIds(Iterable<String> ids)
      Specified by:
      listNodesByIds in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • listLocations

      public Iterable<org.jclouds.domain.Location> listLocations()
      Specified by:
      listLocations in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • getNode

      public ServerInfo getNode(String id)
      Specified by:
      getNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • getImage

      public DriveInfo getImage(String id)
      Specified by:
      getImage in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • destroyNode

      public void destroyNode(String id)
      Specified by:
      destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • rebootNode

      public void rebootNode(String id)
      Specified by:
      rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • resumeNode

      public void resumeNode(String id)
      Specified by:
      resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<ServerInfo,org.jclouds.compute.domain.Hardware,DriveInfo,org.jclouds.domain.Location>
    • suspendNode

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