org.jclouds.aws.domain.Region.regionProperties()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(20.1k)|赞(0)|评价(0)|浏览(105)

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

Region.regionProperties介绍

暂无

代码示例

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,SG,AU-NSW,JP-13");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ISO3166_CODES, "IE");
 return properties;
}

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-OH,US-CA,US-OR,CA,BR-SP,IE,GB-LND,FR-IDF,DE-HE,SG,AU-NSW,IN-MH,JP-13,KR-11,CN-11");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 return properties;
}

代码示例来源:origin: apache/jclouds

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-OH,US-CA,US-OR,CA,BR-SP,IE,GB-LND,FR-IDF,DE-HE,SG,AU-NSW,IN-MH,JP-13,KR-11,CN-11");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 return properties;
}

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,DE-HE,SG,AU-NSW,IN-MH,JP-13,KR-11");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 return properties;
}

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-OH,US-CA,US-OR,CA,BR-SP,IE,GB-LND,DE-HE,SG,AU-NSW,IN-MH,JP-13,KR-11,CN-11");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 return properties;
}

代码示例来源:origin: io.cloudsoft.jclouds.api/sts

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,SG,AU-NSW,JP-13");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ISO3166_CODES, "IE");
 return properties;
}

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,SG,AU-NSW,JP-13");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ISO3166_CODES, "IE");
 return properties;
}

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

public static Properties regionPropertiesS3() {
 Properties properties = regionProperties();
 properties.setProperty(PROPERTY_REGIONS, Joiner.on(',').join(DEFAULT_S3));
 // note that due to US_STANDARD the codes include US instead of US-VA
 properties.setProperty(PROPERTY_ISO3166_CODES, "US,US-CA,US-OR,BR-SP,IE,SG,AU-NSW,JP-13");
 properties.setProperty(PROPERTY_REGION + "." + US_STANDARD + "." + ISO3166_CODES, "US");
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + "." + ISO3166_CODES, "IE");
 return properties;
}

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

public static Properties defaultProperties() {
 Properties properties = new Properties();
 // sometimes, like in ec2, stop takes a very long time, perhaps
 // due to volume management. one example spent 2 minutes moving
 // from stopping->stopped state on an ec2 micro
 properties.setProperty(TIMEOUT_NODE_SUSPENDED, 120 * 1000 + "");
 properties.putAll(Region.regionProperties());
 // Amazon Linux, Amazon Windows, alestic, canonical, and rightscale
 properties.setProperty(PROPERTY_EC2_AMI_QUERY,
      "owner-id=137112412989,801119661308,063491364108,099720109477,411009282317;state=available;image-type=machine");
 // amis that work with the cluster instances
 properties.setProperty(PROPERTY_EC2_CC_REGIONS, Region.US_EAST_1 + "," + Region.US_WEST_2 + "," + Region.EU_WEST_1);
 properties
      .setProperty(
          PROPERTY_EC2_CC_AMI_QUERY,
          "virtualization-type=hvm;architecture=x86_64;owner-id=137112412989,099720109477;hypervisor=xen;state=available;image-type=machine;root-device-type=ebs");
 properties.setProperty(TEMPLATE, "osFamily=AMZN_LINUX,os64Bit=true");
 return properties;
}

代码示例来源:origin: org.apache.jclouds.provider/aws-ec2

public static Properties defaultProperties() {
 Properties properties = new Properties();
 // sometimes, like in ec2, stop takes a very long time, perhaps
 // due to volume management. one example spent 2 minutes moving
 // from stopping->stopped state on an ec2 micro
 properties.setProperty(TIMEOUT_NODE_SUSPENDED, 120 * 1000 + "");
 properties.putAll(Region.regionProperties());
 // Amazon Linux, Amazon Windows, alestic, canonical, and rightscale
 properties.setProperty(PROPERTY_EC2_AMI_QUERY,
      "owner-id=137112412989,801119661308,063491364108,099720109477,411009282317;state=available;image-type=machine");
 // amis that work with the cluster instances
 properties.setProperty(PROPERTY_EC2_CC_REGIONS, Region.US_EAST_1 + "," + Region.US_WEST_2 + "," + Region.EU_WEST_1);
 properties
      .setProperty(
          PROPERTY_EC2_CC_AMI_QUERY,
          "virtualization-type=hvm;architecture=x86_64;owner-id=137112412989,099720109477;hypervisor=xen;state=available;image-type=machine;root-device-type=ebs");
 properties.setProperty(TEMPLATE, "osFamily=AMZN_LINUX,os64Bit=true");
 return properties;
}

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

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + US_EAST_1 + ".endpoint",
    "https://sqs.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_1 + ".endpoint",
    "https://sqs.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_2 + ".endpoint",
    "https://sqs.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + SA_EAST_1 + ".endpoint",
    "https://sqs.sa-east-1.amazonaws.com");      
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + ".endpoint",
    "https://sqs.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_1 + ".endpoint",
    "https://sqs.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_2 + ".endpoint",
    "https://sqs.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_NORTHEAST_1 + ".endpoint",
    "https://sqs.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: apache/jclouds

public static Properties defaultProperties() {
 Properties properties = new Properties();
 // sometimes, like in ec2, stop takes a very long time, perhaps
 // due to volume management. one example spent 2 minutes moving
 // from stopping->stopped state on an ec2 micro
 properties.setProperty(TIMEOUT_NODE_SUSPENDED, 120 * 1000 + "");
 properties.putAll(Region.regionProperties());
 // Amazon Linux, Amazon Windows, alestic, canonical, and rightscale
 properties.setProperty(PROPERTY_EC2_AMI_QUERY,
      "owner-id=137112412989,801119661308,063491364108,099720109477,411009282317;state=available;image-type=machine");
 // amis that work with the cluster instances
 properties.setProperty(PROPERTY_EC2_CC_REGIONS, Region.US_EAST_1 + "," + Region.US_WEST_2 + "," + Region.EU_WEST_1);
 properties
      .setProperty(
          PROPERTY_EC2_CC_AMI_QUERY,
          "virtualization-type=hvm;architecture=x86_64;owner-id=137112412989,099720109477;hypervisor=xen;state=available;image-type=machine;root-device-type=ebs");
 properties.setProperty(TEMPLATE, "osFamily=AMZN_LINUX,os64Bit=true");
 return properties;
}

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

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + Region.US_EAST_1 + ".endpoint",
    "https://monitoring.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_1 + ".endpoint",
    "https://monitoring.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_2 + ".endpoint",
    "https://monitoring.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.SA_EAST_1 + ".endpoint",
    "https://monitoring.sa-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.EU_WEST_1 + ".endpoint",
    "https://monitoring.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_1 + ".endpoint",
    "https://monitoring.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_2 + ".endpoint",
    "https://monitoring.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_NORTHEAST_1 + ".endpoint",
    "https://monitoring.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: org.jclouds.provider/aws-sqs

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + US_EAST_1 + ".endpoint",
    "https://sqs.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_1 + ".endpoint",
    "https://sqs.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_2 + ".endpoint",
    "https://sqs.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + SA_EAST_1 + ".endpoint",
    "https://sqs.sa-east-1.amazonaws.com");      
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + ".endpoint",
    "https://sqs.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_1 + ".endpoint",
    "https://sqs.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_2 + ".endpoint",
    "https://sqs.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_NORTHEAST_1 + ".endpoint",
    "https://sqs.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: apache/jclouds

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + US_EAST_1 + ".endpoint",
    "https://sqs.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_1 + ".endpoint",
    "https://sqs.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_2 + ".endpoint",
    "https://sqs.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + SA_EAST_1 + ".endpoint",
    "https://sqs.sa-east-1.amazonaws.com");      
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + ".endpoint",
    "https://sqs.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_1 + ".endpoint",
    "https://sqs.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_2 + ".endpoint",
    "https://sqs.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_NORTHEAST_1 + ".endpoint",
    "https://sqs.ap-northeast-1.amazonaws.com");
 return properties;
}

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

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + Region.US_EAST_1 + ".endpoint",
    "https://monitoring.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_1 + ".endpoint",
    "https://monitoring.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_2 + ".endpoint",
    "https://monitoring.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.SA_EAST_1 + ".endpoint",
    "https://monitoring.sa-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.EU_WEST_1 + ".endpoint",
    "https://monitoring.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_1 + ".endpoint",
    "https://monitoring.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_2 + ".endpoint",
    "https://monitoring.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_NORTHEAST_1 + ".endpoint",
    "https://monitoring.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: org.apache.jclouds.provider/aws-cloudwatch

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + Region.US_EAST_1 + ".endpoint",
    "https://monitoring.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_1 + ".endpoint",
    "https://monitoring.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_2 + ".endpoint",
    "https://monitoring.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.SA_EAST_1 + ".endpoint",
    "https://monitoring.sa-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.EU_WEST_1 + ".endpoint",
    "https://monitoring.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_1 + ".endpoint",
    "https://monitoring.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_2 + ".endpoint",
    "https://monitoring.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_NORTHEAST_1 + ".endpoint",
    "https://monitoring.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: org.jclouds.provider/aws-cloudwatch

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + Region.US_EAST_1 + ".endpoint",
    "https://monitoring.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_1 + ".endpoint",
    "https://monitoring.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_2 + ".endpoint",
    "https://monitoring.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.SA_EAST_1 + ".endpoint",
    "https://monitoring.sa-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.EU_WEST_1 + ".endpoint",
    "https://monitoring.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_1 + ".endpoint",
    "https://monitoring.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_2 + ".endpoint",
    "https://monitoring.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_NORTHEAST_1 + ".endpoint",
    "https://monitoring.ap-northeast-1.amazonaws.com");
 return properties;
}

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

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + US_EAST_1 + ".endpoint",
    "https://sqs.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_1 + ".endpoint",
    "https://sqs.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + US_WEST_2 + ".endpoint",
    "https://sqs.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + SA_EAST_1 + ".endpoint",
    "https://sqs.sa-east-1.amazonaws.com");      
 properties.setProperty(PROPERTY_REGION + "." + EU_WEST_1 + ".endpoint",
    "https://sqs.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_1 + ".endpoint",
    "https://sqs.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_SOUTHEAST_2 + ".endpoint",
    "https://sqs.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + AP_NORTHEAST_1 + ".endpoint",
    "https://sqs.ap-northeast-1.amazonaws.com");
 return properties;
}

代码示例来源:origin: apache/jclouds

public static Properties defaultProperties() {
 Properties properties = new Properties();
 properties.putAll(Region.regionProperties());
 properties.setProperty(PROPERTY_REGION + "." + Region.US_EAST_1 + ".endpoint",
    "https://monitoring.us-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_1 + ".endpoint",
    "https://monitoring.us-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.US_WEST_2 + ".endpoint",
    "https://monitoring.us-west-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.SA_EAST_1 + ".endpoint",
    "https://monitoring.sa-east-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.EU_WEST_1 + ".endpoint",
    "https://monitoring.eu-west-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_1 + ".endpoint",
    "https://monitoring.ap-southeast-1.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_SOUTHEAST_2 + ".endpoint",
    "https://monitoring.ap-southeast-2.amazonaws.com");
 properties.setProperty(PROPERTY_REGION + "." + Region.AP_NORTHEAST_1 + ".endpoint",
    "https://monitoring.ap-northeast-1.amazonaws.com");
 return properties;
}

相关文章