-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from qbicsoftware/development
Release PR
- Loading branch information
Showing
73 changed files
with
1,899 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
measurement-provider/src/main/java/life/qbic/data_access/measurements/api/FileInfo.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
measurement-provider/src/main/java/life/qbic/data_access/measurements/api/Measurement.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...rement-provider/src/main/java/life/qbic/data_access/measurements/api/MeasurementData.java
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
...rovider/src/main/java/life/qbic/data_access/measurements/api/MeasurementDataProvider.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
...rement-provider/src/main/java/life/qbic/data_access/measurements/api/MeasurementInfo.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
measurement-provider/src/main/java/life/qbic/data_download/measurements/api/FileInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package life.qbic.data_download.measurements.api; | ||
|
||
/** | ||
* Information about a file | ||
*/ | ||
public record FileInfo(String path, long length, long crc32, long registrationMillis, long lastModifiedMillis) { | ||
|
||
} |
8 changes: 8 additions & 0 deletions
8
measurement-provider/src/main/java/life/qbic/data_download/measurements/api/Measurement.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package life.qbic.data_download.measurements.api; | ||
|
||
/** | ||
* A measurement | ||
*/ | ||
public record Measurement(MeasurementId id, MeasurementInfo info, MeasurementData data) { | ||
|
||
} |
10 changes: 10 additions & 0 deletions
10
...ment-provider/src/main/java/life/qbic/data_download/measurements/api/MeasurementData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package life.qbic.data_download.measurements.api; | ||
|
||
import java.io.InputStream; | ||
|
||
/** | ||
* Measurement data | ||
*/ | ||
public interface MeasurementData { | ||
InputStream stream(); | ||
} |
10 changes: 10 additions & 0 deletions
10
...vider/src/main/java/life/qbic/data_download/measurements/api/MeasurementDataProvider.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package life.qbic.data_download.measurements.api; | ||
|
||
/** | ||
* Provides measurement data given a measurement | ||
*/ | ||
public interface MeasurementDataProvider { | ||
|
||
MeasurementData loadData(MeasurementId measurementId); | ||
|
||
} |
9 changes: 2 additions & 7 deletions
9
...asurements/api/MeasurementDataReader.java → ...asurements/api/MeasurementDataReader.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...s/measurements/api/MeasurementFinder.java → ...d/measurements/api/MeasurementFinder.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ccess/measurements/api/MeasurementId.java → ...nload/measurements/api/MeasurementId.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...ment-provider/src/main/java/life/qbic/data_download/measurements/api/MeasurementInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package life.qbic.data_download.measurements.api; | ||
|
||
/** | ||
* Information about a measurement | ||
*/ | ||
public record MeasurementInfo(long size, int fileCount) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module life.qbic.data_access.measurements { | ||
exports life.qbic.data_access.measurements.api; | ||
module life.qbic.data_download.measurements { | ||
exports life.qbic.data_download.measurements.api; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 12 additions & 9 deletions
21
.../life/qbic/data_access/openbis/ApiV3.java → ...ife/qbic/data_download/openbis/ApiV3.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,27 @@ | ||
package life.qbic.data_access.openbis; | ||
package life.qbic.data_download.openbis; | ||
|
||
import ch.ethz.sis.openbis.generic.asapi.v3.IApplicationServerApi; | ||
import ch.ethz.sis.openbis.generic.dssapi.v3.IDataStoreServerApi; | ||
import ch.systemsx.cisd.common.spring.HttpInvokerUtils; | ||
import java.time.Duration; | ||
import java.time.temporal.ChronoUnit; | ||
|
||
/** | ||
* TODO! | ||
* <b>short description</b> | ||
* | ||
* <p>detailed description</p> | ||
* | ||
* @since <version tag> | ||
* A provider for openbis apis v3 | ||
*/ | ||
public class ApiV3 { | ||
|
||
private static final Duration TIMEOUT = Duration.of(5, ChronoUnit.DAYS); | ||
|
||
private ApiV3() { | ||
//hide the implicit constructor | ||
} | ||
|
||
public static IApplicationServerApi applicationServer(String url) { | ||
return HttpInvokerUtils.createServiceStub(IApplicationServerApi.class, url + IApplicationServerApi.SERVICE_URL, 100_000L); | ||
return HttpInvokerUtils.createServiceStub(IApplicationServerApi.class, url + IApplicationServerApi.SERVICE_URL, TIMEOUT.toMillis()); | ||
} | ||
public static IDataStoreServerApi dataStoreServer(String url) { | ||
return HttpInvokerUtils.createStreamSupportingServiceStub(IDataStoreServerApi.class, url + IDataStoreServerApi.SERVICE_URL, 100_000L); | ||
return HttpInvokerUtils.createStreamSupportingServiceStub(IDataStoreServerApi.class, url + IDataStoreServerApi.SERVICE_URL, TIMEOUT.toMillis()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.