public class TerremarkVCloudRestClientModule<S,A> extends RestClientModule<S,A>
Modifier and Type | Class and Description |
---|---|
static class |
TerremarkVCloudRestClientModule.OrgCatalogItemSupplier |
static class |
TerremarkVCloudRestClientModule.OrgCatalogSupplier |
static class |
TerremarkVCloudRestClientModule.OrgMapSupplier |
static class |
TerremarkVCloudRestClientModule.OrgNameToKeysListSupplier |
static class |
TerremarkVCloudRestClientModule.OrgVDCSupplier |
static class |
TerremarkVCloudRestClientModule.URItoVDC |
asyncClientType, syncClientType
authException, sync2Async, URI_SUPPLIER_TYPE
Constructor and Description |
---|
TerremarkVCloudRestClientModule() |
TerremarkVCloudRestClientModule(Map<Class<?>,Class<?>> delegateMap) |
Modifier and Type | Method and Description |
---|---|
protected void |
bindErrorHandlers()
overrides this to change the default error handlers for the http engine
ex.
|
protected void |
configure() |
protected void |
installDefaultVCloudEndpointsModule() |
protected void |
installLocations() |
protected com.google.common.base.Supplier<URI> |
provideAuthenticationURI(TerremarkVCloudVersionsClient versionService,
String version) |
protected com.google.common.base.Supplier<Org> |
provideOrg(com.google.common.base.Supplier<Map<String,? extends Org>> orgSupplier,
com.google.common.base.Supplier<ReferenceType> defaultOrg) |
protected com.google.common.base.Supplier<Map<String,Map<String,? extends Catalog>>> |
provideOrgCatalogItemMapSupplierCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.OrgCatalogSupplier supplier) |
protected com.google.common.base.Supplier<Map<String,Map<String,Map<String,? extends CatalogItem>>>> |
provideOrgCatalogItemSupplierCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.OrgCatalogItemSupplier supplier) |
protected com.google.common.base.Supplier<URI> |
provideOrgListURI(com.google.common.base.Supplier<VCloudSession> sessionSupplier) |
protected com.google.common.base.Supplier<Map<String,? extends Org>> |
provideOrgMapCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.OrgMapSupplier supplier) |
protected com.google.common.base.Supplier<Map<String,ReferenceType>> |
provideOrgToKeysListCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.OrgNameToKeysListSupplier supplier) |
protected com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> |
provideOrgVDCSupplierCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.OrgVDCSupplier supplier) |
protected com.google.common.base.Supplier<Map<URI,? extends VDC>> |
provideURIToVDC(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudRestClientModule.URItoVDC supplier) |
protected com.google.common.base.Supplier<VCloudSession> |
provideVCloudTokenCache(long seconds,
AtomicReference<AuthorizationException> authException,
TerremarkVCloudLoginClient login) |
protected com.google.common.base.Supplier<Map<String,ReferenceType>> |
provideVDCtoORG(long seconds,
AtomicReference<AuthorizationException> authException,
org.jclouds.trmk.vcloud_0_8.config.TerremarkVCloudRestClientModule.OrgNameToOrgSupplier supplier) |
protected com.google.common.base.Supplier<Map<String,String>> |
provideVDCtoORG(com.google.common.base.Supplier<Map<String,? extends Org>> orgNameToOrgSupplier) |
protected com.google.common.base.Predicate<URI> |
successTester(com.google.inject.Injector injector,
long completed) |
bindAsyncClient, bindClient, bindRetryHandlers
delegationMap, seedAnnotationCache, timeouts
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected void configure()
configure
in class RestClientModule<S,A>
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,String>> provideVDCtoORG(com.google.common.base.Supplier<Map<String,? extends Org>> orgNameToOrgSupplier)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,? extends Org>> provideOrgMapCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.OrgMapSupplier supplier)
@Provides @Singleton protected com.google.common.base.Supplier<URI> provideOrgListURI(com.google.common.base.Supplier<VCloudSession> sessionSupplier)
protected void installDefaultVCloudEndpointsModule()
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,ReferenceType>> provideVDCtoORG(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, org.jclouds.trmk.vcloud_0_8.config.TerremarkVCloudRestClientModule.OrgNameToOrgSupplier supplier)
@Provides @Singleton protected com.google.common.base.Supplier<Map<URI,? extends VDC>> provideURIToVDC(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.URItoVDC supplier)
@Provides @Singleton protected com.google.common.base.Supplier<URI> provideAuthenticationURI(TerremarkVCloudVersionsClient versionService, String version)
@Provides @Singleton protected com.google.common.base.Supplier<Org> provideOrg(com.google.common.base.Supplier<Map<String,? extends Org>> orgSupplier, com.google.common.base.Supplier<ReferenceType> defaultOrg)
@Provides @Singleton protected com.google.common.base.Predicate<URI> successTester(com.google.inject.Injector injector, @Named(value="jclouds.vcloud.timeout.task-complete") long completed)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,Map<String,? extends Catalog>>> provideOrgCatalogItemMapSupplierCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.OrgCatalogSupplier supplier)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> provideOrgVDCSupplierCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.OrgVDCSupplier supplier)
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,Map<String,Map<String,? extends CatalogItem>>>> provideOrgCatalogItemSupplierCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.OrgCatalogItemSupplier supplier)
@Provides @Singleton protected com.google.common.base.Supplier<VCloudSession> provideVCloudTokenCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudLoginClient login)
protected void bindErrorHandlers()
RestClientModule
bind(HttpErrorHandler.class).annotatedWith(Redirection.class).to(ParseAWSErrorFromXmlContent.class); bind(HttpErrorHandler.class).annotatedWith(ClientError.class).to(ParseAWSErrorFromXmlContent.class); bind(HttpErrorHandler.class).annotatedWith(ServerError.class).to(ParseAWSErrorFromXmlContent.class);
bindErrorHandlers
in class RestClientModule<S,A>
@Provides @Singleton protected com.google.common.base.Supplier<Map<String,ReferenceType>> provideOrgToKeysListCache(@Named(value="jclouds.session-interval") long seconds, AtomicReference<AuthorizationException> authException, TerremarkVCloudRestClientModule.OrgNameToKeysListSupplier supplier)
protected void installLocations()
installLocations
in class RestModule
Copyright © 2009-2013 jclouds. All Rights Reserved.