-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dbcaffd
commit dff7c6c
Showing
142 changed files
with
12,200 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package.Aws-haig-s3fs-spi = { | ||
interfaces = (1.0); | ||
|
||
# Use NoOpBuild. See https://w.amazon.com/index.php/BrazilBuildSystem/NoOpBuild | ||
build-system = no-op; | ||
build-tools = { | ||
1.0 = { | ||
NoOpBuild = 1.0; | ||
}; | ||
}; | ||
|
||
# Use runtime-dependencies for when you want to bring in additional | ||
# packages when deploying. | ||
# Use dependencies instead if you intend for these dependencies to | ||
# be exported to other packages that build against you. | ||
dependencies = { | ||
1.0 = { | ||
}; | ||
}; | ||
|
||
runtime-dependencies = { | ||
1.0 = { | ||
}; | ||
}; | ||
|
||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
* | ||
* This generated file contains a sample Java library project to get you started. | ||
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle | ||
* User Manual available at https://docs.gradle.org/7.3.3/userguide/building_java_projects.html | ||
*/ | ||
|
||
plugins { | ||
// Apply the java-library plugin for API and implementation separation. | ||
id 'java-library' | ||
id 'maven-publish' | ||
id 'jacoco' | ||
id 'com.github.johnrengelman.shadow' version '7.1.2' | ||
} | ||
|
||
repositories { | ||
// Use Maven Central for resolving dependencies. | ||
mavenCentral() | ||
} | ||
|
||
group = 'software.aws.haig' | ||
archivesBaseName = 'aws-s3-java-nio-spi' | ||
version = '1.0.0' | ||
|
||
apply plugin: 'java' | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
|
||
|
||
dependencies { | ||
// Use JUnit test framework. | ||
testImplementation 'junit:junit:4.13.2' | ||
implementation 'org.mockito:mockito-core:4.3.1' | ||
|
||
// This dependency is exported to consumers, that is to say found on their compile classpath. | ||
// api 'org.apache.commons:commons-math3:3.6.1' | ||
|
||
// This dependency is used internally, and not exposed to consumers on their own compile classpath. | ||
implementation 'software.amazon.awssdk:bom:2.17.129' | ||
implementation 'software.amazon.awssdk:s3:2.17.129' | ||
implementation 'org.slf4j:slf4j-api:1.7.36' | ||
implementation 'ch.qos.logback:logback-classic:1.2.10' | ||
implementation 'ch.qos.logback:logback-core:1.2.10' | ||
// cannot use caffeine v3 because that requires java 11 | ||
implementation('com.github.ben-manes.caffeine:caffeine:2.9.3') | ||
} | ||
|
||
publishing { | ||
publications { | ||
s3fsSpiLibrary(MavenPublication) { | ||
from components.java | ||
} | ||
} | ||
} | ||
|
||
test { | ||
finalizedBy jacocoTestReport | ||
} | ||
|
||
jacocoTestReport { | ||
dependsOn test | ||
reports { | ||
xml.required = true | ||
xml.outputLocation = file("build/brazil-documentation/coverage.xml") | ||
} | ||
} |
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file added
BIN
+6.35 KB
build/classes/java/main/software/amazon/nio/spi/s3/PosixLikePathRepresentation.class
Binary file not shown.
Binary file added
BIN
+10.3 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3BasicFileAttributes.class
Binary file not shown.
Binary file added
BIN
+14.9 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3ClientStore.class
Binary file not shown.
Binary file added
BIN
+5.16 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3DirectReadableByteChannel.class
Binary file not shown.
Binary file added
BIN
+1.26 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3FileAttributeView.class
Binary file not shown.
Binary file added
BIN
+5.91 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3FileSystem.class
Binary file not shown.
Binary file added
BIN
+1.33 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3FileSystemProvider$1.class
Binary file not shown.
Binary file added
BIN
+20.9 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3FileSystemProvider.class
Binary file not shown.
Binary file added
BIN
+1.82 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3Path$S3PathIterator.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.7 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3ReadAheadByteChannel.class
Binary file not shown.
Binary file added
BIN
+7.02 KB
build/classes/java/main/software/amazon/nio/spi/s3/S3SeekableByteChannel.class
Binary file not shown.
Binary file added
BIN
+5.68 KB
build/classes/java/main/software/amazon/nio/spi/s3/config/S3NioSpiConfiguration.class
Binary file not shown.
Binary file added
BIN
+2.04 KB
build/classes/java/main/software/amazon/nio/spi/s3/util/TimeOutUtils.class
Binary file not shown.
Binary file added
BIN
+4.97 KB
build/classes/java/test/software/amazon/nio/spi/s3/PosixLikePathRepresentationTest.class
Binary file not shown.
Binary file added
BIN
+9.38 KB
build/classes/java/test/software/amazon/nio/spi/s3/S3ClientStoreTest.class
Binary file not shown.
Binary file added
BIN
+15.2 KB
build/classes/java/test/software/amazon/nio/spi/s3/S3FileSystemProviderTest.class
Binary file not shown.
Binary file added
BIN
+4.27 KB
build/classes/java/test/software/amazon/nio/spi/s3/S3FileSystemTest.class
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.24 KB
build/classes/java/test/software/amazon/nio/spi/s3/S3ReadAheadByteChannelTest.class
Binary file not shown.
Binary file added
BIN
+5.6 KB
build/classes/java/test/software/amazon/nio/spi/s3/S3SeekableByteChannelTest.class
Binary file not shown.
Binary file added
BIN
+2.1 KB
build/classes/java/test/software/amazon/nio/spi/s3/config/S3NioSpiConfigurationTest.class
Binary file not shown.
Binary file added
BIN
+2.5 KB
build/classes/java/test/software/amazon/nio/spi/s3/util/TimeOutUtilsTest.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Main</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">s3fs-spi</a> > <a href="index.html" class="el_package">examples</a> > <span class="el_class">Main</span></div><h1>Main</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">73 of 73</td><td class="ctr2">0%</td><td class="bar">10 of 10</td><td class="ctr2">0%</td><td class="ctr1">8</td><td class="ctr2">8</td><td class="ctr1">12</td><td class="ctr2">12</td><td class="ctr1">3</td><td class="ctr2">3</td></tr></tfoot><tbody><tr><td id="a1"><a href="Main.java.html#L23" class="el_method">main(String[])</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="62" alt="62"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="8" alt="8"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">5</td><td class="ctr2" id="g0">5</td><td class="ctr1" id="h0">11</td><td class="ctr2" id="i0">11</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a2"><a href="Main.java.html#L20" class="el_method">static {...}</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="15" height="10" title="8" alt="8"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="30" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">0%</td><td class="ctr1" id="f1">2</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h1">1</td><td class="ctr2" id="i1">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a0"><a href="Main.java.html#L20" class="el_method">Main()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c2">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j2">1</td><td class="ctr2" id="k2">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Main.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">s3fs-spi</a> > <a href="index.source.html" class="el_package">examples</a> > <span class="el_source">Main.java</span></div><h1>Main.java</h1><pre class="source lang-java linenums">/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package examples; | ||
|
||
import software.amazon.nio.spi.s3.S3Path; | ||
|
||
import java.io.IOException; | ||
import java.net.URI; | ||
import java.nio.file.Files; | ||
import java.nio.file.Path; | ||
import java.nio.file.Paths; | ||
|
||
/** | ||
* Demo class that will read text from S3 URIs that you provide on the command line. Your standard AWS credential chain | ||
* is used for permissions. | ||
*/ | ||
<span class="nc bnc" id="L20" title="All 2 branches missed.">public class Main {</span> | ||
public static void main(String[] args) throws IOException { | ||
|
||
<span class="nc bnc" id="L23" title="All 2 branches missed."> if(args.length == 0){</span> | ||
<span class="nc" id="L24"> System.out.println("Provide one or more S3 URIs to read from.");</span> | ||
<span class="nc" id="L25"> System.exit(1);</span> | ||
} | ||
|
||
<span class="nc bnc" id="L28" title="All 2 branches missed."> for (String pathString : args) {</span> | ||
|
||
// if the URI starts with "s3:" then Paths will use the s3fs spi to handle the paths and reading | ||
<span class="nc" id="L31"> final Path path = Paths.get(URI.create(pathString));</span> | ||
|
||
// proves that the correct path type is being used | ||
<span class="nc bnc" id="L34" title="All 4 branches missed."> assert path instanceof S3Path;</span> | ||
|
||
<span class="nc" id="L36"> System.out.println("*** READING FROM "+path.toUri()+" ***");</span> | ||
<span class="nc" id="L37"> Files.readAllLines(path)</span> | ||
<span class="nc" id="L38"> .forEach(System.out::println);</span> | ||
<span class="nc" id="L39"> System.out.println("*** FINISHED READING OBJECT ***\n");</span> | ||
} | ||
<span class="nc" id="L41"> }</span> | ||
} | ||
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>examples</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.source.html" class="el_source">Source Files</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">s3fs-spi</a> > <span class="el_package">examples</span></div><h1>examples</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">73 of 73</td><td class="ctr2">0%</td><td class="bar">10 of 10</td><td class="ctr2">0%</td><td class="ctr1">8</td><td class="ctr2">8</td><td class="ctr1">12</td><td class="ctr2">12</td><td class="ctr1">3</td><td class="ctr2">3</td><td class="ctr1">1</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="Main.html" class="el_class">Main</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="73" alt="73"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="10" alt="10"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">8</td><td class="ctr2" id="g0">8</td><td class="ctr1" id="h0">12</td><td class="ctr2" id="i0">12</td><td class="ctr1" id="j0">3</td><td class="ctr2" id="k0">3</td><td class="ctr1" id="l0">1</td><td class="ctr2" id="m0">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>examples</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb', 'coveragetable'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="index.html" class="el_class">Classes</a><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">s3fs-spi</a> > <span class="el_package">examples</span></div><h1>examples</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td><td class="sortable ctr1" id="l" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="m" onclick="toggleSort(this)">Classes</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">73 of 73</td><td class="ctr2">0%</td><td class="bar">10 of 10</td><td class="ctr2">0%</td><td class="ctr1">8</td><td class="ctr2">8</td><td class="ctr1">12</td><td class="ctr2">12</td><td class="ctr1">3</td><td class="ctr2">3</td><td class="ctr1">1</td><td class="ctr2">1</td></tr></tfoot><tbody><tr><td id="a0"><a href="Main.java.html" class="el_source">Main.java</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="73" alt="73"/></td><td class="ctr2" id="c0">0%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="120" height="10" title="10" alt="10"/></td><td class="ctr2" id="e0">0%</td><td class="ctr1" id="f0">8</td><td class="ctr2" id="g0">8</td><td class="ctr1" id="h0">12</td><td class="ctr2" id="i0">12</td><td class="ctr1" id="j0">3</td><td class="ctr2" id="k0">3</td><td class="ctr1" id="l0">1</td><td class="ctr2" id="m0">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |
Oops, something went wrong.