-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
43 changed files
with
9,003,316 additions
and
480 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
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
12 changes: 12 additions & 0 deletions
12
src/main/java/io/github/jpmorganchase/fusion/api/APIDownloader.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,12 @@ | ||
package io.github.jpmorganchase.fusion.api; | ||
|
||
import java.io.InputStream; | ||
|
||
public interface APIDownloader { | ||
|
||
void callAPIFileDownload(String apiPath, String fileName, String catalog, String dataset) | ||
throws APICallException, FileDownloadException; | ||
|
||
InputStream callAPIFileDownload(String apiPath, String catalog, String dataset) | ||
throws APICallException, FileDownloadException; | ||
} |
28 changes: 0 additions & 28 deletions
28
src/main/java/io/github/jpmorganchase/fusion/api/APIManager.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,33 +1,5 @@ | ||
package io.github.jpmorganchase.fusion.api; | ||
|
||
import java.io.InputStream; | ||
|
||
public interface APIManager { | ||
String callAPI(String apiPath) throws APICallException; | ||
|
||
void callAPIFileDownload(String apiPath, String downloadFolder, String fileName) throws APICallException; | ||
|
||
void callAPIFileDownload(String apiPath, String fileName) throws APICallException, FileDownloadException; | ||
|
||
InputStream callAPIFileDownload(String apiPath) throws APICallException, FileDownloadException; | ||
|
||
int callAPIFileUpload( | ||
String apiPath, | ||
String fileName, | ||
String catalogName, | ||
String dataset, | ||
String fromDate, | ||
String toDate, | ||
String createdDate) | ||
throws APICallException; | ||
|
||
int callAPIFileUpload( | ||
String apiPath, | ||
InputStream data, | ||
String catalogName, | ||
String dataset, | ||
String fromDate, | ||
String toDate, | ||
String createdDate) | ||
throws APICallException; | ||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/io/github/jpmorganchase/fusion/api/APIUploader.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,26 @@ | ||
package io.github.jpmorganchase.fusion.api; | ||
|
||
import java.io.InputStream; | ||
|
||
public interface APIUploader { | ||
|
||
void callAPIFileUpload( | ||
String apiPath, | ||
String fileName, | ||
String catalogName, | ||
String dataset, | ||
String fromDate, | ||
String toDate, | ||
String createdDate) | ||
throws APICallException; | ||
|
||
void callAPIFileUpload( | ||
String apiPath, | ||
InputStream data, | ||
String catalogName, | ||
String dataset, | ||
String fromDate, | ||
String toDate, | ||
String createdDate) | ||
throws APICallException; | ||
} |
4 changes: 3 additions & 1 deletion
4
src/main/java/io/github/jpmorganchase/fusion/api/ApiInputValidationException.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
4 changes: 3 additions & 1 deletion
4
src/main/java/io/github/jpmorganchase/fusion/api/FileDownloadException.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
14 changes: 14 additions & 0 deletions
14
src/main/java/io/github/jpmorganchase/fusion/api/FileUploadException.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,14 @@ | ||
package io.github.jpmorganchase.fusion.api; | ||
|
||
import io.github.jpmorganchase.fusion.exception.FusionException; | ||
|
||
public class FileUploadException extends FusionException { | ||
|
||
public FileUploadException(String s) { | ||
super(s); | ||
} | ||
|
||
public FileUploadException(String s, Throwable throwable) { | ||
super(s, throwable); | ||
} | ||
} |
Oops, something went wrong.