org.jclouds.location.Region.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(5.4k)|赞(0)|评价(0)|浏览(73)

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

Region.<init>介绍

暂无

代码示例

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

/**
* clones like {@code openstack-nova-ec2}, which don't support multiple regions don't return region in the XML
* output.
*/
@Inject
DescribeAvailabilityZonesResponseHandler(@Region Supplier<String> defaultRegion) {
 this.defaultRegion = defaultRegion;
}

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

/**
* 
* @return the Region codes configured
*/
@Provides
@Region
Set<String> getConfiguredRegions();

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

@Inject
protected EC2ImageSupplier(@Region Supplier<Set<String>> regions, DescribeImagesParallel describer,
   @Named(PROPERTY_EC2_AMI_OWNERS) String[] amiOwners, Supplier<LoadingCache<RegionAndName, ? extends Image>> cache,
   EC2ImageParser parser) {
 this.regions = regions;
 this.describer = describer;
 this.amiOwners = amiOwners;
 this.cache = cache;
 this.parser = parser;
}

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

@Inject
public BindRegionToXmlPayload(@Region  Supplier<String> defaultRegionForEndpointSupplier,
   @Bucket Supplier<String> defaultRegionForServiceSupplier, @Region Supplier<Set<String>> regionsSupplier) {
 this.defaultRegionForEndpointSupplier = defaultRegionForEndpointSupplier;
 this.defaultRegionForServiceSupplier = defaultRegionForServiceSupplier;
 this.regionsSupplier = checkNotNull(regionsSupplier, "regions");
}

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

@Inject
protected EC2ListNodesStrategy(EC2Client client, @Region Supplier<Set<String>> regions,
    Function<RunningInstance, NodeMetadata> runningInstanceToNodeMetadata,
    @Named(Constants.PROPERTY_USER_THREADS) ListeningExecutorService userExecutor) {
 this.client =  checkNotNull(client, "client");
 this.regions =  checkNotNull(regions, "regions");
 this.runningInstanceToNodeMetadata = checkNotNull(runningInstanceToNodeMetadata, "runningInstanceToNodeMetadata");
 this.userExecutor =  checkNotNull(userExecutor, "userExecutor");
}

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

@Inject
protected RegionIdToURIFromConfigurationOrDefaultToProvider(ValueOfConfigurationKeyOrNull config, @Provider Supplier<URI> providerURI,
    @Region Supplier<Set<String>> regionIds) {
 super(config, providerURI, regionIds, PROPERTY_REGION);
}

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

@Inject
public BaseReservationHandler(DateCodecFactory dateCodecFactory, @Region Supplier<String> defaultRegion) {
 this.dateCodec = dateCodecFactory.iso8601();
 this.defaultRegion = defaultRegion;
}

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

@Provides
@Bucket
@Singleton
protected Supplier<String> defaultRegionForBucket(@Region Supplier<String> defaultRegion) {
 return defaultRegion;
}

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

@Provides
@Singleton
@Region
protected Supplier<String> implicitRegionIdSupplier(AtomicReference<AuthorizationException> authException,
    @Named(PROPERTY_SESSION_INTERVAL) long seconds, ImplicitRegionIdSupplier uncached) {
 return MemoizedRetryOnTimeOutButNotOnAuthorizationExceptionSupplier.create(authException, uncached, seconds,
      TimeUnit.SECONDS);
}

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

@Inject
OnlyLocationOrFirstRegionOptionallyMatchingRegionId(@Region Supplier<String> regionSupplier,
    @Memoized Supplier<Set<? extends Location>> locationsSupplier) {
 this.regionSupplier = checkNotNull(regionSupplier, "regionSupplier");
 this.locationsSupplier = checkNotNull(locationsSupplier, "locationsSupplier");
}

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

@Inject
protected ZoneIdToURIFromJoinOnRegionIdToURI(@Region Supplier<Map<String, Supplier<URI>>> regionIdToURISupplier,
   @Zone Supplier<Map<String, Supplier<Set<String>>>> regionIdToZoneIdsSupplier) {
 this.regionIdToURISupplier = regionIdToURISupplier;
 this.regionIdToZoneIdsSupplier = regionIdToZoneIdsSupplier;
}

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

@Inject
public DescribeAvailabilityZonesInRegion(EC2Client client, @Region Supplier<Set<String>> regions) {
 this.client = client.getAvailabilityZoneAndRegionServices();
 this.regions = regions;
}

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

@Inject
AttachmentHandler(DateCodecFactory dateCodecFactory, @Region Supplier<String> defaultRegion) {
 this.dateCodec = dateCodecFactory.iso8601();
 this.defaultRegion = defaultRegion;
}

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

@Singleton
@Provides
@org.jclouds.location.Region
Supplier<String> provideDefaultRegion() {
 return Suppliers.ofInstance(defaultRegion);
}

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

@Singleton
@Provides
@org.jclouds.location.Region
Supplier<String> provideDefaultRegion() {
 return Suppliers.ofInstance("SHOULDNTSEETHISASXMLHASREGIONDATA");
}

相关文章

微信公众号

最新文章

更多

Region类方法