org.jclouds.joyent.cloudapi.v6_5.compute.config
Class JoyentCloudComputeServiceContextModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.config.BaseComputeServiceContextModule
          extended by org.jclouds.compute.config.ComputeServiceAdapterContextModule<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>
              extended by org.jclouds.joyent.cloudapi.v6_5.compute.config.JoyentCloudComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module

public class JoyentCloudComputeServiceContextModule
extends org.jclouds.compute.config.ComputeServiceAdapterContextModule<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,org.jclouds.domain.Location>

Module for building a compute service context for Cloud Api

Author:
Adrian Cole

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
org.jclouds.compute.config.ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, org.jclouds.compute.config.ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
 
Field Summary
static Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
           
 
Constructor Summary
JoyentCloudComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)
           
protected  com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyMap(com.google.common.cache.CacheLoader<DatacenterAndName,KeyAndPrivateKey> in)
           
protected  org.jclouds.compute.options.TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, org.jclouds.compute.options.TemplateOptions options)
           
protected  Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus()
           
 
Methods inherited from class org.jclouds.compute.config.ComputeServiceAdapterContextModule
defineAddNodeWithTagStrategy, defineDestroyNodeStrategy, defineGetImageStrategy, defineGetNodeMetadataStrategy, defineListNodesStrategy, defineRebootNodeStrategy, defineStartNodeStrategy, defineStopNodeStrategy, provideHardware, provideImages
 
Methods inherited from class org.jclouds.compute.config.BaseComputeServiceContextModule
bindCredentialsOverriderFunction, indexer, osFamilyToCredentials, provideImageExtension, provideImageMap, provideOsVersionMap, provideSizeMap, provideTemplateOptionallyFromProperties, shouldEagerlyParseImages, supplyImageCache, supplyImageCache, supplyNonParsingImageCache, supplySizeCache
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

toPortableNodeStatus

public static final Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus
Constructor Detail

JoyentCloudComputeServiceContextModule

public JoyentCloudComputeServiceContextModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class org.jclouds.compute.config.BaseComputeServiceContextModule

provideTemplateOptions

protected org.jclouds.compute.options.TemplateOptions provideTemplateOptions(com.google.inject.Injector injector,
                                                                             org.jclouds.compute.options.TemplateOptions options)
Overrides:
provideTemplateOptions in class org.jclouds.compute.config.BaseComputeServiceContextModule

keyMap

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyMap(com.google.common.cache.CacheLoader<DatacenterAndName,KeyAndPrivateKey> in)

createLocationIndexedById

@Provides
@Singleton
protected com.google.common.base.Supplier<Map<String,org.jclouds.domain.Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)

toPortableNodeStatus

@Singleton
@Provides
protected Map<Machine.State,org.jclouds.compute.domain.NodeMetadata.Status> toPortableNodeStatus()


Copyright © 2009-2012 jclouds. All Rights Reserved.