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,Location>
              extended by org.jclouds.joyent.cloudapi.v6_5.compute.config.JoyentCloudComputeServiceContextModule
All Implemented Interfaces:
com.google.inject.Module

public class JoyentCloudComputeServiceContextModule
extends ComputeServiceAdapterContextModule<MachineInDatacenter,PackageInDatacenter,DatasetInDatacenter,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
ComputeServiceAdapterContextModule.AddDefaultCredentialsToImage, ComputeServiceAdapterContextModule.LocationsFromComputeServiceAdapterModule<N,H,I,L>
 
Field Summary
static Map<Machine.State,NodeMetadata.Status> toPortableNodeStatus
           
 
Constructor Summary
JoyentCloudComputeServiceContextModule()
           
 
Method Summary
protected  void configure()
           
protected  com.google.common.base.Supplier<Map<String,Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)
           
protected  com.google.common.cache.LoadingCache<DatacenterAndName,KeyAndPrivateKey> keyMap(com.google.common.cache.CacheLoader<DatacenterAndName,KeyAndPrivateKey> in)
           
protected  SecureRandom provideSecureRandom()
           
protected  TemplateOptions provideTemplateOptions(com.google.inject.Injector injector, TemplateOptions options)
          The default options if none are provided.
protected  Map<Machine.State,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,NodeMetadata.Status> toPortableNodeStatus
Constructor Detail

JoyentCloudComputeServiceContextModule

public JoyentCloudComputeServiceContextModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class BaseComputeServiceContextModule

provideTemplateOptions

protected TemplateOptions provideTemplateOptions(com.google.inject.Injector injector,
                                                 TemplateOptions options)
Description copied from class: BaseComputeServiceContextModule
The default options if none are provided.

Overrides:
provideTemplateOptions in class 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,Location>> createLocationIndexedById(com.google.common.base.Supplier<Set<? extends Location>> locations)

provideSecureRandom

@Provides
@Singleton
protected SecureRandom provideSecureRandom()

toPortableNodeStatus

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


Copyright © 2009-2012 jclouds. All Rights Reserved.