/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
public static RegionMetadata create() { RegionMetadata metadata = createLegacyXmlRegionMetadata(); if (metadata == null) { metadata = new RegionMetadata(new PartitionsLoader().build()); } return metadata; }
/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
public static RegionMetadata create() { RegionMetadata metadata = createLegacyXmlRegionMetadata(); if (metadata == null) { metadata = new RegionMetadata(new PartitionsLoader().build()); } return metadata; }
@BeforeClass public static void setUp() { List<Region> regions = new LinkedList<Region>(); Region region = new Region("us-east-1", null); region.getServiceEndpoints().put("s3", "s3.amazonaws.com"); regions.add(region); region = new Region("us-west-1", null); region.getServiceEndpoints().put("s3", "s3-us-west-1.amazonaws.com"); regions.add(region); regions.add(new Region("cn-north-1", "amazonaws.com.cn")); metadata = new RegionMetadata(regions); }
/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
/** * Parses the specified input stream and returns a {@code RegionMetadata} * object. * * @param input the input stream to parse * @return the parsed region metadata * @throws IOException on error */ public static RegionMetadata parse(final InputStream input) throws IOException { return new RegionMetadata(internalParse(input, false)); }
public static RegionMetadata create() { RegionMetadata metadata = createLegacyXmlRegionMetadata(); if (metadata == null) { metadata = new RegionMetadata(new PartitionsLoader().build()); } return metadata; }