org.jclouds.compute.stub.config
Class StubComputeServiceDependenciesModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.compute.stub.config.StubComputeServiceDependenciesModule
All Implemented Interfaces:
com.google.inject.Module

public class StubComputeServiceDependenciesModule
extends com.google.inject.AbstractModule


Nested Class Summary
static class StubComputeServiceDependenciesModule.StubSocketOpen
           
 
Field Summary
protected static com.google.common.cache.LoadingCache<String,ConcurrentMap<String,NodeMetadata>> backing
           
protected static com.google.common.cache.LoadingCache<String,ConcurrentMap<String,SecurityGroup>> groupBacking
           
protected static com.google.common.cache.LoadingCache<String,AtomicInteger> groupIds
           
protected static com.google.common.cache.LoadingCache<String,com.google.common.collect.Multimap<String,SecurityGroup>> groupsForNodeBacking
           
protected static com.google.common.cache.LoadingCache<String,AtomicInteger> nodeIds
           
 
Constructor Summary
StubComputeServiceDependenciesModule()
           
 
Method Summary
protected  void configure()
           
protected  Integer provideGroupIdForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
protected  ConcurrentMap<String,SecurityGroup> provideGroups(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
protected  com.google.common.collect.Multimap<String,SecurityGroup> provideGroupsForNode(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
protected  Integer provideNodeIdForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
protected  ConcurrentMap<String,NodeMetadata> provideNodesForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
           
 
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

backing

protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String,NodeMetadata>> backing

groupBacking

protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String,SecurityGroup>> groupBacking

groupsForNodeBacking

protected static final com.google.common.cache.LoadingCache<String,com.google.common.collect.Multimap<String,SecurityGroup>> groupsForNodeBacking

nodeIds

protected static final com.google.common.cache.LoadingCache<String,AtomicInteger> nodeIds

groupIds

protected static final com.google.common.cache.LoadingCache<String,AtomicInteger> groupIds
Constructor Detail

StubComputeServiceDependenciesModule

public StubComputeServiceDependenciesModule()
Method Detail

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

provideNodesForIdentity

@Provides
@Singleton
protected ConcurrentMap<String,NodeMetadata> provideNodesForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
                                                              throws ExecutionException
Throws:
ExecutionException

provideGroups

@Provides
@Singleton
protected ConcurrentMap<String,SecurityGroup> provideGroups(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
                                                     throws ExecutionException
Throws:
ExecutionException

provideGroupsForNode

@Provides
@Singleton
protected com.google.common.collect.Multimap<String,SecurityGroup> provideGroupsForNode(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
                                                                                 throws ExecutionException
Throws:
ExecutionException

provideNodeIdForIdentity

@Provides
@Named(value="NODE_ID")
protected Integer provideNodeIdForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
                                    throws ExecutionException
Throws:
ExecutionException

provideGroupIdForIdentity

@Provides
@Named(value="GROUP_ID")
protected Integer provideGroupIdForIdentity(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds)
                                     throws ExecutionException
Throws:
ExecutionException


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