Package 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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final com.google.common.cache.LoadingCache
<String, ConcurrentMap<String, NodeMetadata>> protected static final com.google.common.cache.LoadingCache
<String, ConcurrentMap<String, SecurityGroup>> protected static final com.google.common.cache.LoadingCache
<String, AtomicInteger> protected static final com.google.common.cache.LoadingCache
<String, com.google.common.collect.Multimap<String, SecurityGroup>> protected static final com.google.common.cache.LoadingCache
<String, AtomicInteger> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected final Integer
provideGroupIdForIdentity
(com.google.common.base.Supplier<Credentials> creds) protected final ConcurrentMap
<String, SecurityGroup> provideGroups
(com.google.common.base.Supplier<Credentials> creds) protected final com.google.common.collect.Multimap
<String, SecurityGroup> provideGroupsForNode
(com.google.common.base.Supplier<Credentials> creds) protected final Integer
provideNodeIdForIdentity
(com.google.common.base.Supplier<Credentials> creds) protected final ConcurrentMap
<String, NodeMetadata> provideNodesForIdentity
(com.google.common.base.Supplier<Credentials> creds) Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Field Details
-
backing
protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String, backingNodeMetadata>> -
groupBacking
protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String, groupBackingSecurityGroup>> -
groupsForNodeBacking
protected static final com.google.common.cache.LoadingCache<String,com.google.common.collect.Multimap<String, groupsForNodeBackingSecurityGroup>> -
nodeIds
-
groupIds
-
-
Constructor Details
-
StubComputeServiceDependenciesModule
public StubComputeServiceDependenciesModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
provideNodesForIdentity
@Provides @Singleton protected final ConcurrentMap<String,NodeMetadata> provideNodesForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException - Throws:
ExecutionException
-
provideGroups
@Provides @Singleton protected final ConcurrentMap<String,SecurityGroup> provideGroups(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException - Throws:
ExecutionException
-
provideGroupsForNode
@Provides @Singleton protected final com.google.common.collect.Multimap<String,SecurityGroup> provideGroupsForNode(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException - Throws:
ExecutionException
-
provideNodeIdForIdentity
@Provides @Named("NODE_ID") protected final Integer provideNodeIdForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException - Throws:
ExecutionException
-
provideGroupIdForIdentity
@Provides @Named("GROUP_ID") protected final Integer provideGroupIdForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException - Throws:
ExecutionException
-