Commit 9b7d8f9
committed
Make some final changes to the GCS NIO API
This change prepares GCS NIO to be merged into master, by making some
last minute API changes.
- Documentation has been added to many methods to clarify the preferred
method for instantiating the library, which is the non-SPI version.
- Unit tests have been updated to not rely on the SPI, because there's
no way to guarantee clean isolation of SPI usage across tests. We'll
be relying on integration testing to test the SPI interface.
- The unit testing methodology has changed somewhat. FakeStorageRpc
should be a private final field on the test class so, if desired,
we'll be able to have the tests dip directly into fake memory.
- IOException has been added back to the throws of file system close, in
case we decide to implement the "close all owned channels" thing into
that method in the future.
- The getters on the configuration class have been made package-private,
since there's no foreseeable reason they would be needed by the user.
- Injectable constructors have been added for Dagger 2 users.
In a future change, a README.md file will be added to replace the
documentation in the package-info.java file.1 parent e85256c commit 9b7d8f9
File tree
15 files changed
+931
-807
lines changed- gcloud-java-contrib/gcloud-java-nio
- src
- main/java/com/google/gcloud/storage/contrib/nio
- test/java/com/google/gcloud/storage/contrib/nio
- gcloud-java-storage/src/main/java/com/google/gcloud/storage/testing
15 files changed
+931
-807
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
52 | 58 | | |
53 | 59 | | |
54 | 60 | | |
| |||
Lines changed: 24 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
| 18 | + | |
38 | 19 | | |
39 | 20 | | |
40 | | - | |
| 21 | + | |
41 | 22 | | |
42 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
43 | 26 | | |
44 | 27 | | |
45 | 28 | | |
| |||
54 | 37 | | |
55 | 38 | | |
56 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
57 | 46 | | |
58 | 47 | | |
59 | 48 | | |
60 | 49 | | |
61 | 50 | | |
62 | 51 | | |
63 | | - | |
| 52 | + | |
64 | 53 | | |
65 | 54 | | |
66 | 55 | | |
67 | 56 | | |
68 | 57 | | |
69 | | - | |
70 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
71 | 61 | | |
72 | | - | |
| 62 | + | |
73 | 63 | | |
74 | 64 | | |
75 | 65 | | |
| |||
79 | 69 | | |
80 | 70 | | |
81 | 71 | | |
82 | | - | |
| 72 | + | |
83 | 73 | | |
84 | 74 | | |
85 | 75 | | |
| |||
130 | 120 | | |
131 | 121 | | |
132 | 122 | | |
133 | | - | |
134 | | - | |
135 | | - | |
| 123 | + | |
136 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
137 | 128 | | |
138 | 129 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 130 | | |
143 | 131 | | |
144 | 132 | | |
| |||
Lines changed: 53 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| 22 | + | |
18 | 23 | | |
19 | 24 | | |
20 | 25 | | |
21 | | - | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
28 | 34 | | |
29 | 35 | | |
30 | 36 | | |
31 | | - | |
| 37 | + | |
32 | 38 | | |
33 | 39 | | |
34 | 40 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 41 | + | |
| 42 | + | |
48 | 43 | | |
| 44 | + | |
49 | 45 | | |
50 | | - | |
| 46 | + | |
51 | 47 | | |
52 | 48 | | |
53 | 49 | | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
| 64 | + | |
58 | 65 | | |
| 66 | + | |
59 | 67 | | |
60 | 68 | | |
61 | 69 | | |
62 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
63 | 79 | | |
64 | 80 | | |
65 | 81 | | |
| |||
69 | 85 | | |
70 | 86 | | |
71 | 87 | | |
72 | | - | |
73 | 88 | | |
| 89 | + | |
74 | 90 | | |
75 | 91 | | |
| 92 | + | |
76 | 93 | | |
77 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
78 | 97 | | |
79 | 98 | | |
80 | 99 | | |
| |||
113 | 132 | | |
114 | 133 | | |
115 | 134 | | |
116 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
117 | 138 | | |
118 | 139 | | |
119 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
120 | 146 | | |
121 | 147 | | |
122 | | - | |
| 148 | + | |
123 | 149 | | |
124 | 150 | | |
125 | 151 | | |
| |||
147 | 173 | | |
148 | 174 | | |
149 | 175 | | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
150 | 179 | | |
151 | 180 | | |
152 | 181 | | |
| |||
0 commit comments