public class StubComputeServiceDependenciesModule
extends com.google.inject.AbstractModule
Modifier and Type | Class and Description |
---|---|
static class |
StubComputeServiceDependenciesModule.StubSocketOpen |
Modifier and Type | Field and 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 and Description |
---|
StubComputeServiceDependenciesModule() |
Modifier and Type | Method and 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) |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String,NodeMetadata>> backing
protected static final com.google.common.cache.LoadingCache<String,ConcurrentMap<String,SecurityGroup>> groupBacking
protected static final com.google.common.cache.LoadingCache<String,com.google.common.collect.Multimap<String,SecurityGroup>> groupsForNodeBacking
protected static final com.google.common.cache.LoadingCache<String,AtomicInteger> nodeIds
protected static final com.google.common.cache.LoadingCache<String,AtomicInteger> groupIds
public StubComputeServiceDependenciesModule()
protected void configure()
configure
in class com.google.inject.AbstractModule
@Provides @Singleton protected final ConcurrentMap<String,NodeMetadata> provideNodesForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException
ExecutionException
@Provides @Singleton protected final ConcurrentMap<String,SecurityGroup> provideGroups(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException
ExecutionException
@Provides @Singleton protected final com.google.common.collect.Multimap<String,SecurityGroup> provideGroupsForNode(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException
ExecutionException
@Provides @Named(value="NODE_ID") protected final Integer provideNodeIdForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException
ExecutionException
@Provides @Named(value="GROUP_ID") protected final Integer provideGroupIdForIdentity(com.google.common.base.Supplier<Credentials> creds) throws ExecutionException
ExecutionException
Copyright © 2009-2016 The Apache Software Foundation. All Rights Reserved.