org.jclouds.location.Provider类的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(7.6k)|赞(0)|评价(0)|浏览(121)

本文整理了Java中org.jclouds.location.Provider类的一些代码示例,展示了Provider类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Provider类的具体详情如下:
包路径:org.jclouds.location.Provider
类名称:Provider

Provider介绍

暂无

代码示例

代码示例来源:origin: com.amysta.jclouds/jclouds-core

@Inject
RegionToEndpointOrProviderIfNull(@Provider String defaultProvider, @Provider Supplier<URI> defaultUri,
   @Region Supplier<Map<String, Supplier<URI>>> regionToEndpointSupplier) {
 this.defaultProvider = defaultProvider;
 this.defaultUri = defaultUri;
 this.regionToEndpointSupplier = regionToEndpointSupplier;
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public ShareUrl(@Provider Supplier<Credentials> creds, @Provider Supplier<URI> provider,
   @TimeStamp javax.inject.Provider<Long> timeStampProvider, Crypto crypto) {
 this.creds = creds;
 this.provider = provider;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
}

代码示例来源:origin: com.amysta.jclouds.api/docker

@Inject
DockerSSLContextSupplier(@Provider Supplier<Credentials> creds, @Named(DockerApiMetadata.DOCKER_CA_CERT_PATH) String caCertPath, @Named(DockerApiMetadata.DOCKER_CA_CERT_DATA) String caCertData) {
 this.creds = creds;
 this.caCertPath = caCertPath;
 this.caCertData = caCertData;
}

代码示例来源:origin: io.cloudsoft.jclouds.provider/aws-s3

@Inject
public AWSRequestAuthorizeSignature(SignatureWire signatureWire, @Named(PROPERTY_AUTH_TAG) String authTag,
    @Named(PROPERTY_S3_VIRTUAL_HOST_BUCKETS) boolean isVhostStyle,
    @Named(PROPERTY_S3_SERVICE_PATH) String servicePath, @Named(PROPERTY_HEADER_TAG) String headerTag,
    @org.jclouds.location.Provider Supplier<Credentials> creds,
    @TimeStamp Provider<String> timeStampProvider, Crypto crypto, HttpUtils utils) {
 super(signatureWire, authTag, isVhostStyle, servicePath, headerTag, creds, timeStampProvider, crypto, 
     utils);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@Singleton
protected Supplier<AuthenticationResponse> provideAuthenticationResponseSupplier(
   final LoadingCache<Credentials, AuthenticationResponse> cache, @Provider final Supplier<Credentials> creds) {
 return new Supplier<AuthenticationResponse>() {
   @Override
   public AuthenticationResponse get() {
    return cache.getUnchecked(creds.get());
   }
 };
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@Singleton
@Provider
protected Supplier<URI> provideProvider(AtomicReference<AuthorizationException> authException,
    @Named(PROPERTY_SESSION_INTERVAL) long seconds, ProviderURISupplier uncached) {
 return MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException, uncached, seconds,
      TimeUnit.SECONDS);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
public ComputeServiceContextImpl(@Provider Context backend, @Provider TypeToken<? extends Context> backendType,
    ComputeService computeService, Utils utils) {
 super(backend, backendType);
 this.computeService = checkNotNull(computeService, "computeService");
 this.utils = checkNotNull(utils, "utils");
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
@Named("NODE_ID")
protected Integer provideNodeIdForIdentity(@Provider Supplier<Credentials> creds) throws ExecutionException {
 return nodeIds.get(creds.get().identity).incrementAndGet();
}

代码示例来源:origin: Nextdoor/bender

@Inject
public Aws4SignerForQueryString(SignatureWire signatureWire,
   @Named(PROPERTY_S3_VIRTUAL_HOST_BUCKETS) boolean isVhostStyle,
   @Named(PROPERTY_HEADER_TAG) String headerTag,
   @Provider Supplier<Credentials> creds, @TimeStamp Supplier<Date> timestampProvider,
   ServiceAndRegion serviceAndRegion, Crypto crypto) {
 super(signatureWire, headerTag, creds, timestampProvider, serviceAndRegion, crypto);
}

代码示例来源:origin: org.jclouds.api/atmos

@Inject
public ShareUrl(@Provider Supplier<Credentials> creds, @Provider Supplier<URI> provider,
   @TimeStamp javax.inject.Provider<Long> timeStampProvider, Crypto crypto) {
 this.creds = creds;
 this.provider = provider;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
}

代码示例来源:origin: org.apache.jclouds.api/docker

@Inject
DockerSSLContextSupplier(@Provider Supplier<Credentials> creds, @Named(DockerApiMetadata.DOCKER_CA_CERT_PATH) String caCertPath, @Named(DockerApiMetadata.DOCKER_CA_CERT_DATA) String caCertData) {
 this.creds = creds;
 this.caCertPath = caCertPath;
 this.caCertData = caCertData;
}

代码示例来源:origin: Nextdoor/bender

@Inject
public AWSRequestAuthorizeSignature(SignatureWire signatureWire, @Named(PROPERTY_AUTH_TAG) String authTag,
    @Named(PROPERTY_S3_VIRTUAL_HOST_BUCKETS) boolean isVhostStyle,
    @Named(PROPERTY_S3_SERVICE_PATH) String servicePath, @Named(PROPERTY_HEADER_TAG) String headerTag,
    @org.jclouds.location.Provider Supplier<Credentials> creds,
    @TimeStamp Provider<String> timeStampProvider, Crypto crypto, HttpUtils utils) {
 super(signatureWire, authTag, isVhostStyle, servicePath, headerTag, creds, timeStampProvider, crypto, 
     utils);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Provides
 @Singleton
 Function<Endpoint, String> provideProvider(@Provider final String provider) {
   return new Function<Endpoint, String>() {
    public String apply(Endpoint in) {
      return provider;
    }
   };
 }
}

代码示例来源:origin: org.jclouds/jclouds-core

@Provides
@Singleton
@Provider
protected Supplier<URI> provideProvider(AtomicReference<AuthorizationException> authException,
    @Named(PROPERTY_SESSION_INTERVAL) long seconds, ProviderURISupplier uncached) {
 return MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException, uncached, seconds,
      TimeUnit.SECONDS);
}

代码示例来源:origin: jclouds/legacy-jclouds

@Inject
NodesParsedFromSupplier(@Provider Supplier<InputStream> supplier, Function<InputStream, LoadingCache<String, Node>> parser) {
 this.supplier = checkNotNull(supplier, "supplier");
 this.parser = checkNotNull(parser, "parser");
}

代码示例来源:origin: org.apache.jclouds/jclouds-compute

@Provides
@Named("NODE_ID")
protected final Integer provideNodeIdForIdentity(@Provider Supplier<Credentials> creds) throws ExecutionException {
 return nodeIds.get(creds.get().identity).incrementAndGet();
}

代码示例来源:origin: org.apache.jclouds.api/s3

@Inject
public Aws4SignerForChunkedUpload(SignatureWire signatureWire,
   @Named(PROPERTY_HEADER_TAG) String headerTag,
   @Named(PROPERTY_JCLOUDS_S3_CHUNKED_SIZE) int userDataBlockSize,
   @Provider Supplier<Credentials> creds, @TimeStamp Supplier<Date> timestampProvider,
   ServiceAndRegion serviceAndRegion, Crypto crypto) {
 super(signatureWire, headerTag, creds, timestampProvider, serviceAndRegion, crypto);
 this.userDataBlockSize = userDataBlockSize;
}

代码示例来源:origin: Nextdoor/bender

@Inject
RegionToEndpointOrProviderIfNull(@Provider String defaultProvider, @Provider Supplier<URI> defaultUri,
   @Region Supplier<Map<String, Supplier<URI>>> regionToEndpointSupplier) {
 this.defaultProvider = defaultProvider;
 this.defaultUri = defaultUri;
 this.regionToEndpointSupplier = regionToEndpointSupplier;
}

代码示例来源:origin: org.apache.jclouds.api/atmos

@Inject
public ShareUrl(@Provider Supplier<Credentials> creds, @Provider Supplier<URI> provider,
   @TimeStamp javax.inject.Provider<Long> timeStampProvider, Crypto crypto) {
 this.creds = creds;
 this.provider = provider;
 this.timeStampProvider = timeStampProvider;
 this.crypto = crypto;
}

代码示例来源:origin: org.apache.jclouds.api/oauth

@Inject JWTBearerTokenFlow(AuthorizeToken loader, @Named(PROPERTY_SESSION_INTERVAL) long tokenDuration,
   @Provider Supplier<Credentials> credentialsSupplier, OAuthConfigFactory oauthConfigFactory) {
 this.credentialsSupplier = credentialsSupplier;
 this.oauthConfigFactory = oauthConfigFactory;
 // since the session interval is also the token expiration time requested to the server make the token expire a
 // bit before the deadline to make sure there aren't session expiration exceptions
 long cacheExpirationSeconds = tokenDuration > 30 ? tokenDuration - 30 : tokenDuration;
 this.tokenCache = CacheBuilder.newBuilder().expireAfterWrite(cacheExpirationSeconds, SECONDS).build(loader);
}

相关文章