org.jclouds.compute.stub.config
Class StubComputeServiceDependenciesModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.compute.stub.config.StubComputeServiceDependenciesModule
- All Implemented Interfaces:
- com.google.inject.Module
public class StubComputeServiceDependenciesModule
- extends com.google.inject.AbstractModule
| 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 |
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
StubComputeServiceDependenciesModule
public StubComputeServiceDependenciesModule()
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.