Skip to content

Commit

Permalink
Updated to BP API 5.4 (#592)
Browse files Browse the repository at this point in the history
  • Loading branch information
RachelTucker authored Oct 6, 2021
1 parent c98b59b commit 4738083
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 1 deletion.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,20 @@ bridges, please see [SLF4j.org](http://www.slf4j.org/manual.html).
In addition to unit tests in the main `ds3-sdk` module, there are additional integration tests in the `ds3-integration` module. Please see the integration [README](ds3-sdk-integration/README.md) for details on running the tests. To just run the SDK's unit tests use:

./gradlew clean ds3-sdk:test

## Creating a New Release

Update the version of the SDK before creating a new release. The format is `<major>.<minor>.<patch>`, where the
`<major>.<minor>` numbers must match the version of BP. The `<patch>` is an incrementing number that increments with
each SDK release for a given major/minor release.

The build number is specified in the `build.gradle` file:

```
allprojects {
group = 'com.spectralogic.ds3'
version = '5.4.0'
}
```

When a release is created in github, it is automatically published on [jitpack.io](https://jitpack.io/#SpectraLogic/ds3_java_sdk).
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ plugins {

allprojects {
group = 'com.spectralogic.ds3'
version = '5.3.0'
version = '5.4.0'
}

subprojects {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ public class ModifyDataPathBackendSpectraS3Request extends AbstractRequest {

private boolean defaultVerifyDataPriorToImport;

private double iomCacheLimitationPercent;

private boolean iomEnabled;

private int maxAggregatedBlobsPerChunk;

private Integer partiallyVerifyLastPercentOfTapes;

private UnavailableMediaUsagePolicy unavailableMediaPolicy;
Expand Down Expand Up @@ -107,13 +111,27 @@ public ModifyDataPathBackendSpectraS3Request withDefaultVerifyDataPriorToImport(
}


public ModifyDataPathBackendSpectraS3Request withIomCacheLimitationPercent(final double iomCacheLimitationPercent) {
this.iomCacheLimitationPercent = iomCacheLimitationPercent;
this.updateQueryParam("iom_cache_limitation_percent", iomCacheLimitationPercent);
return this;
}


public ModifyDataPathBackendSpectraS3Request withIomEnabled(final boolean iomEnabled) {
this.iomEnabled = iomEnabled;
this.updateQueryParam("iom_enabled", iomEnabled);
return this;
}


public ModifyDataPathBackendSpectraS3Request withMaxAggregatedBlobsPerChunk(final int maxAggregatedBlobsPerChunk) {
this.maxAggregatedBlobsPerChunk = maxAggregatedBlobsPerChunk;
this.updateQueryParam("max_aggregated_blobs_per_chunk", maxAggregatedBlobsPerChunk);
return this;
}


public ModifyDataPathBackendSpectraS3Request withPartiallyVerifyLastPercentOfTapes(final Integer partiallyVerifyLastPercentOfTapes) {
this.partiallyVerifyLastPercentOfTapes = partiallyVerifyLastPercentOfTapes;
this.updateQueryParam("partially_verify_last_percent_of_tapes", partiallyVerifyLastPercentOfTapes);
Expand Down Expand Up @@ -188,11 +206,21 @@ public boolean getDefaultVerifyDataPriorToImport() {
}


public double getIomCacheLimitationPercent() {
return this.iomCacheLimitationPercent;
}


public boolean getIomEnabled() {
return this.iomEnabled;
}


public int getMaxAggregatedBlobsPerChunk() {
return this.maxAggregatedBlobsPerChunk;
}


public Integer getPartiallyVerifyLastPercentOfTapes() {
return this.partiallyVerifyLastPercentOfTapes;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@ public class DataPathBackend {
@JsonProperty("InstanceId")
private UUID instanceId;

@JsonProperty("IomCacheLimitationPercent")
private double iomCacheLimitationPercent;

@JsonProperty("IomEnabled")
private boolean iomEnabled;

@JsonProperty("LastHeartbeat")
private Date lastHeartbeat;

@JsonProperty("MaxAggregatedBlobsPerChunk")
private int maxAggregatedBlobsPerChunk;

@JsonProperty("PartiallyVerifyLastPercentOfTapes")
private Integer partiallyVerifyLastPercentOfTapes;

Expand Down Expand Up @@ -158,6 +164,15 @@ public void setInstanceId(final UUID instanceId) {
}


public double getIomCacheLimitationPercent() {
return this.iomCacheLimitationPercent;
}

public void setIomCacheLimitationPercent(final double iomCacheLimitationPercent) {
this.iomCacheLimitationPercent = iomCacheLimitationPercent;
}


public boolean getIomEnabled() {
return this.iomEnabled;
}
Expand All @@ -176,6 +191,15 @@ public void setLastHeartbeat(final Date lastHeartbeat) {
}


public int getMaxAggregatedBlobsPerChunk() {
return this.maxAggregatedBlobsPerChunk;
}

public void setMaxAggregatedBlobsPerChunk(final int maxAggregatedBlobsPerChunk) {
this.maxAggregatedBlobsPerChunk = maxAggregatedBlobsPerChunk;
}


public Integer getPartiallyVerifyLastPercentOfTapes() {
return this.partiallyVerifyLastPercentOfTapes;
}
Expand Down

0 comments on commit 4738083

Please sign in to comment.