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 Classes Modifier and Type Class Description static class
StubComputeServiceDependenciesModule.StubSocketOpen
-
Field Summary
Fields Modifier and Type Field Description 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
Constructors Constructor Description StubComputeServiceDependenciesModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected Integer
provideGroupIdForIdentity(com.google.common.base.Supplier<Credentials> creds)
protected ConcurrentMap<String,SecurityGroup>
provideGroups(com.google.common.base.Supplier<Credentials> creds)
protected com.google.common.collect.Multimap<String,SecurityGroup>
provideGroupsForNode(com.google.common.base.Supplier<Credentials> creds)
protected Integer
provideNodeIdForIdentity(com.google.common.base.Supplier<Credentials> creds)
protected 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, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
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
-
-
Method Detail
-
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
-
-