Skip to content

Commit

Permalink
Eliminating kf profile from the codebase (#476)
Browse files Browse the repository at this point in the history
* Eliminating kf profile from the codebase

* Assigning default value to partSize
  • Loading branch information
Azher2Ali authored Aug 22, 2024
1 parent 0decbbf commit 03e4931
Show file tree
Hide file tree
Showing 10 changed files with 6 additions and 329 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,13 @@
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Parameters(
separators = "=",
commandDescription = "Mount a read-only FUSE file system view of the remote storage repository")
@Profile("!kf")
public class MountCommand extends RepositoryAccessCommand {

/** Constants. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,13 @@
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Parameters(
separators = "=",
commandDescription = "Upload file object(s) to the remote storage repository")
@Profile("!kf")
public class UploadCommand extends RepositoryAccessCommand {

/** Options. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,13 @@
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@Parameters(
separators = "=",
commandDescription = "Locally store/display some or all of a remote SAM/BAM file object")
@Profile("!kf")
public class ViewCommand extends RepositoryAccessCommand {

public enum OutputFormat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class StorageConfig {
@Value("${storage.url}")
private String endpoint;

@Value("${kf.download.partSize}")
@Value("${download.partSize}")
private int partSize;

@Autowired private DownloadStateStore downloadStateStore;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,9 @@
import lombok.NonNull;
import lombok.val;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

@Service
@Profile("!kf")
public class LegacyMetadataService implements MetadataService {

@Autowired private LegacyMetadataClient legacyMetadataClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package bio.overture.score.client.storage.score;
package bio.overture.score.client.storage;

import static org.springframework.http.HttpMethod.DELETE;
import static org.springframework.http.HttpMethod.GET;
Expand All @@ -27,7 +27,6 @@
import bio.overture.score.client.exception.NotResumableException;
import bio.overture.score.client.exception.NotRetryableException;
import bio.overture.score.client.exception.RetryableException;
import bio.overture.score.client.storage.AbstractStorageService;
import bio.overture.score.core.model.DataChannel;
import bio.overture.score.core.model.ObjectInfo;
import bio.overture.score.core.model.ObjectSpecification;
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 03e4931

Please sign in to comment.