Skip to content

Commit 4738083

Browse files
authored
Updated to BP API 5.4 (#592)
1 parent c98b59b commit 4738083

File tree

4 files changed

+70
-1
lines changed

4 files changed

+70
-1
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,20 @@ bridges, please see [SLF4j.org](http://www.slf4j.org/manual.html).
9191
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:
9292

9393
./gradlew clean ds3-sdk:test
94+
95+
## Creating a New Release
96+
97+
Update the version of the SDK before creating a new release. The format is `<major>.<minor>.<patch>`, where the
98+
`<major>.<minor>` numbers must match the version of BP. The `<patch>` is an incrementing number that increments with
99+
each SDK release for a given major/minor release.
100+
101+
The build number is specified in the `build.gradle` file:
102+
103+
```
104+
allprojects {
105+
group = 'com.spectralogic.ds3'
106+
version = '5.4.0'
107+
}
108+
```
109+
110+
When a release is created in github, it is automatically published on [jitpack.io](https://jitpack.io/#SpectraLogic/ds3_java_sdk).

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ plugins {
3636

3737
allprojects {
3838
group = 'com.spectralogic.ds3'
39-
version = '5.3.0'
39+
version = '5.4.0'
4040
}
4141

4242
subprojects {

ds3-sdk/src/main/java/com/spectralogic/ds3client/commands/spectrads3/ModifyDataPathBackendSpectraS3Request.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,12 @@ public class ModifyDataPathBackendSpectraS3Request extends AbstractRequest {
4141

4242
private boolean defaultVerifyDataPriorToImport;
4343

44+
private double iomCacheLimitationPercent;
45+
4446
private boolean iomEnabled;
4547

48+
private int maxAggregatedBlobsPerChunk;
49+
4650
private Integer partiallyVerifyLastPercentOfTapes;
4751

4852
private UnavailableMediaUsagePolicy unavailableMediaPolicy;
@@ -107,13 +111,27 @@ public ModifyDataPathBackendSpectraS3Request withDefaultVerifyDataPriorToImport(
107111
}
108112

109113

114+
public ModifyDataPathBackendSpectraS3Request withIomCacheLimitationPercent(final double iomCacheLimitationPercent) {
115+
this.iomCacheLimitationPercent = iomCacheLimitationPercent;
116+
this.updateQueryParam("iom_cache_limitation_percent", iomCacheLimitationPercent);
117+
return this;
118+
}
119+
120+
110121
public ModifyDataPathBackendSpectraS3Request withIomEnabled(final boolean iomEnabled) {
111122
this.iomEnabled = iomEnabled;
112123
this.updateQueryParam("iom_enabled", iomEnabled);
113124
return this;
114125
}
115126

116127

128+
public ModifyDataPathBackendSpectraS3Request withMaxAggregatedBlobsPerChunk(final int maxAggregatedBlobsPerChunk) {
129+
this.maxAggregatedBlobsPerChunk = maxAggregatedBlobsPerChunk;
130+
this.updateQueryParam("max_aggregated_blobs_per_chunk", maxAggregatedBlobsPerChunk);
131+
return this;
132+
}
133+
134+
117135
public ModifyDataPathBackendSpectraS3Request withPartiallyVerifyLastPercentOfTapes(final Integer partiallyVerifyLastPercentOfTapes) {
118136
this.partiallyVerifyLastPercentOfTapes = partiallyVerifyLastPercentOfTapes;
119137
this.updateQueryParam("partially_verify_last_percent_of_tapes", partiallyVerifyLastPercentOfTapes);
@@ -188,11 +206,21 @@ public boolean getDefaultVerifyDataPriorToImport() {
188206
}
189207

190208

209+
public double getIomCacheLimitationPercent() {
210+
return this.iomCacheLimitationPercent;
211+
}
212+
213+
191214
public boolean getIomEnabled() {
192215
return this.iomEnabled;
193216
}
194217

195218

219+
public int getMaxAggregatedBlobsPerChunk() {
220+
return this.maxAggregatedBlobsPerChunk;
221+
}
222+
223+
196224
public Integer getPartiallyVerifyLastPercentOfTapes() {
197225
return this.partiallyVerifyLastPercentOfTapes;
198226
}

ds3-sdk/src/main/java/com/spectralogic/ds3client/models/DataPathBackend.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,18 @@ public class DataPathBackend {
5252
@JsonProperty("InstanceId")
5353
private UUID instanceId;
5454

55+
@JsonProperty("IomCacheLimitationPercent")
56+
private double iomCacheLimitationPercent;
57+
5558
@JsonProperty("IomEnabled")
5659
private boolean iomEnabled;
5760

5861
@JsonProperty("LastHeartbeat")
5962
private Date lastHeartbeat;
6063

64+
@JsonProperty("MaxAggregatedBlobsPerChunk")
65+
private int maxAggregatedBlobsPerChunk;
66+
6167
@JsonProperty("PartiallyVerifyLastPercentOfTapes")
6268
private Integer partiallyVerifyLastPercentOfTapes;
6369

@@ -158,6 +164,15 @@ public void setInstanceId(final UUID instanceId) {
158164
}
159165

160166

167+
public double getIomCacheLimitationPercent() {
168+
return this.iomCacheLimitationPercent;
169+
}
170+
171+
public void setIomCacheLimitationPercent(final double iomCacheLimitationPercent) {
172+
this.iomCacheLimitationPercent = iomCacheLimitationPercent;
173+
}
174+
175+
161176
public boolean getIomEnabled() {
162177
return this.iomEnabled;
163178
}
@@ -176,6 +191,15 @@ public void setLastHeartbeat(final Date lastHeartbeat) {
176191
}
177192

178193

194+
public int getMaxAggregatedBlobsPerChunk() {
195+
return this.maxAggregatedBlobsPerChunk;
196+
}
197+
198+
public void setMaxAggregatedBlobsPerChunk(final int maxAggregatedBlobsPerChunk) {
199+
this.maxAggregatedBlobsPerChunk = maxAggregatedBlobsPerChunk;
200+
}
201+
202+
179203
public Integer getPartiallyVerifyLastPercentOfTapes() {
180204
return this.partiallyVerifyLastPercentOfTapes;
181205
}

0 commit comments

Comments
 (0)