You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: google-cloud-storage/src/test/java/com/google/cloud/storage/benchmarking/StorageSharedBenchmarkingCli.java
+16-11Lines changed: 16 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,16 @@
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
-
* http://www.apache.org/licenses/LICENSE-2.0
9
-
*
10
-
* Unless required by applicable law or agreed to in writing, software
11
-
* distributed under the License is distributed on an "AS IS" BASIS,
12
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
-
* See the License for the specific language governing permissions and
14
-
* limitations under the License.
8
+
* http://www.apache.org/licenses/LICENSE-2.0
15
9
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
14
+
* limitations under the License.
16
15
*/
17
16
18
-
packagecom.google.cloud;
17
+
packagecom.google.cloud.storage.benchmarking;
19
18
20
19
importcom.google.api.core.ApiFuture;
21
20
importcom.google.api.core.ApiFutures;
@@ -66,7 +65,8 @@ public final class StorageSharedBenchmarkingCli implements Runnable {
66
65
@Option(
67
66
names = "-object_size",
68
67
defaultValue = "1048576..1048576",
69
-
description = "any positive integer, or an inclusive range such as min..max where min and max are positive integers")
68
+
description =
69
+
"any positive integer, or an inclusive range such as min..max where min and max are positive integers")
70
70
StringobjectSize;
71
71
72
72
@Option(
@@ -88,8 +88,13 @@ public static void main(String[] args) {
88
88
89
89
@Override
90
90
publicvoidrun() {
91
-
// TODO: Make this a switch once we add more workloads
92
-
runWorkload1();
91
+
switch (testType) {
92
+
case"w1r3":
93
+
runWorkload1();
94
+
break;
95
+
default:
96
+
thrownewIllegalStateException("Specify a workload to run");
Copy file name to clipboardExpand all lines: google-cloud-storage/src/test/java/com/google/cloud/storage/benchmarking/StorageSharedBenchmarkingUtils.java
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,17 +5,15 @@
5
5
* you may not use this file except in compliance with the License.
6
6
* You may obtain a copy of the License at
7
7
*
8
-
* http://www.apache.org/licenses/LICENSE-2.0
9
-
*
10
-
* Unless required by applicable law or agreed to in writing, software
11
-
* distributed under the License is distributed on an "AS IS" BASIS,
12
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
-
* See the License for the specific language governing permissions and
14
-
* limitations under the License.
8
+
* http://www.apache.org/licenses/LICENSE-2.0
15
9
*
10
+
* Unless required by applicable law or agreed to in writing, software
11
+
* distributed under the License is distributed on an "AS IS" BASIS,
12
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+
* See the License for the specific language governing permissions and
14
+
* limitations under the License.
16
15
*/
17
-
18
-
packagecom.google.cloud;
16
+
packagecom.google.cloud.storage.benchmarking;
19
17
20
18
importcom.google.cloud.storage.Blob;
21
19
importcom.google.cloud.storage.Storage;
@@ -26,7 +24,8 @@ class StorageSharedBenchmarkingUtils {
0 commit comments