org.jclouds.joyent.cloudapi.v6_5.compute
Class JoyentCloudComputeServiceAdapter

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.compute.JoyentCloudComputeServiceAdapter
All Implemented Interfaces:
org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

public class JoyentCloudComputeServiceAdapter
extends Object
implements org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

The adapter used by the JoyentCloudComputeServiceContextModule to interface the JoyentCloud-specific domain model to the computeService generic domain model.

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jclouds.compute.ComputeServiceAdapter
org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<N>
 
Field Summary
protected  JoyentCloudApi cloudApiApi
           
protected  com.google.common.base.Supplier<Set<String>> datacenterIds
           
protected  org.jclouds.logging.Logger logger
           
 
Constructor Summary
JoyentCloudComputeServiceAdapter(JoyentCloudApi cloudApiApi, com.google.common.base.Supplier<Set<String>> datacenterIds)
           
 
Method Summary
 org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<MachineInDatacenter> createNodeWithGroupEncodedIntoName(String group, String name, org.jclouds.compute.domain.Template template)
           
 void destroyNode(String id)
           
 DatasetInDatacenter getImage(String id)
           
 MachineInDatacenter getNode(String id)
           
 Iterable<PackageInDatacenter> listHardwareProfiles()
           
 Iterable<DatasetInDatacenter> listImages()
           
 Iterable<org.jclouds.domain.Location> listLocations()
           
 Iterable<MachineInDatacenter> listNodes()
           
 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

cloudApiApi

protected final JoyentCloudApi cloudApiApi

datacenterIds

protected final com.google.common.base.Supplier<Set<String>> datacenterIds
Constructor Detail

JoyentCloudComputeServiceAdapter

@Inject
public JoyentCloudComputeServiceAdapter(JoyentCloudApi cloudApiApi,
                                               com.google.common.base.Supplier<Set<String>> datacenterIds)
Method Detail

createNodeWithGroupEncodedIntoName

public org.jclouds.compute.ComputeServiceAdapter.NodeAndInitialCredentials<MachineInDatacenter> createNodeWithGroupEncodedIntoName(String group,
                                                                                                                                   String name,
                                                                                                                                   org.jclouds.compute.domain.Template template)
Specified by:
createNodeWithGroupEncodedIntoName in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

listHardwareProfiles

public Iterable<PackageInDatacenter> listHardwareProfiles()
Specified by:
listHardwareProfiles in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

listImages

public Iterable<DatasetInDatacenter> listImages()
Specified by:
listImages in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

listNodes

public Iterable<MachineInDatacenter> listNodes()
Specified by:
listNodes in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

listLocations

public Iterable<org.jclouds.domain.Location> listLocations()
Specified by:
listLocations in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

getNode

public MachineInDatacenter getNode(String id)
Specified by:
getNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

getImage

public DatasetInDatacenter getImage(String id)
Specified by:
getImage in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

destroyNode

public void destroyNode(String id)
Specified by:
destroyNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

rebootNode

public void rebootNode(String id)
Specified by:
rebootNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

resumeNode

public void resumeNode(String id)
Specified by:
resumeNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

suspendNode

public void suspendNode(String id)
Specified by:
suspendNode in interface org.jclouds.compute.ComputeServiceAdapter<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>


Copyright © 2009-2012 jclouds. All Rights Reserved.