Optimize file path builder and have separate handler for streaming file trunk
authorSaranya Krishnakumar <saranya_k@apple.com>
Mon, 27 Jun 2022 17:47:26 +0000 (10:47 -0700)
committerYifan Cai <yifan_cai@apple.com>
Mon, 27 Jun 2022 17:48:32 +0000 (10:48 -0700)
commit24a08f22707901f7641e48f0c26e54b05c0e03c3
tree5e14300ce8ca28958f06697aa677ca1b66eb653f
parent2e233ec579e4d2a23021116027d75e776e7ad9ec
Optimize file path builder and have separate handler for streaming file

patch by Francisco Guerrero, Saranya Krishnakumar; reviewed by Yifan Cai, Dinesh Joshi for CASSANDRASC-37
28 files changed:
.circleci/config.yml
common/build.gradle
common/src/main/java/org/apache/cassandra/sidecar/common/data/QualifiedTableName.java [new file with mode: 0644]
common/src/main/java/org/apache/cassandra/sidecar/common/data/SSTableComponent.java [new file with mode: 0644]
common/src/main/java/org/apache/cassandra/sidecar/common/data/StreamSSTableComponentRequest.java [new file with mode: 0644]
common/src/main/java/org/apache/cassandra/sidecar/common/utils/ValidationUtils.java [new file with mode: 0644]
common/src/test/java/org/apache/cassandra/sidecar/common/ValidationUtilsTest.java [new file with mode: 0644]
gradle.properties
src/main/java/org/apache/cassandra/sidecar/MainModule.java
src/main/java/org/apache/cassandra/sidecar/cluster/instance/InstanceMetadata.java
src/main/java/org/apache/cassandra/sidecar/cluster/instance/InstanceMetadataImpl.java
src/main/java/org/apache/cassandra/sidecar/models/ComponentInfo.java [deleted file]
src/main/java/org/apache/cassandra/sidecar/models/HttpResponse.java
src/main/java/org/apache/cassandra/sidecar/routes/FileStreamHandler.java [new file with mode: 0644]
src/main/java/org/apache/cassandra/sidecar/routes/StreamSSTableComponent.java [deleted file]
src/main/java/org/apache/cassandra/sidecar/routes/StreamSSTableComponentHandler.java [new file with mode: 0644]
src/main/java/org/apache/cassandra/sidecar/snapshots/SnapshotPathBuilder.java [new file with mode: 0644]
src/main/java/org/apache/cassandra/sidecar/utils/CachedFilePathBuilder.java [deleted file]
src/main/java/org/apache/cassandra/sidecar/utils/FilePathBuilder.java [deleted file]
src/main/java/org/apache/cassandra/sidecar/utils/FileStreamer.java
src/main/java/org/apache/cassandra/sidecar/utils/InstanceMetadataFetcher.java
src/test/java/org/apache/cassandra/sidecar/FilePathBuilderTest.java [deleted file]
src/test/java/org/apache/cassandra/sidecar/LoggerHandlerInjectionTest.java
src/test/java/org/apache/cassandra/sidecar/StreamSSTableComponentTest.java
src/test/java/org/apache/cassandra/sidecar/TestModule.java
src/test/java/org/apache/cassandra/sidecar/ThrottleTest.java
src/test/java/org/apache/cassandra/sidecar/snapshots/AbstractSnapshotPathBuilderTest.java [new file with mode: 0644]
src/test/java/org/apache/cassandra/sidecar/snapshots/SnapshotPathBuilderTest.java [new file with mode: 0644]