public class Ameto
extends java.lang.Object
| Constructor and Description |
|---|
Ameto(java.lang.String url,
java.lang.String apiToken) |
| Modifier and Type | Method and Description |
|---|---|
Asset |
add(java.io.InputStream assetContent,
java.lang.String name)
Uploads the specified asset content.
|
Asset |
add(java.nio.file.Path file) |
Pipeline |
add(java.lang.String name,
Operator firstOperator,
Operator... operators)
Adds the specified pipeline to ameto.
|
java.util.Set<Asset> |
getAssets()
Returns Assets that have been uploaded to Ameto.
|
java.util.List<Job> |
getJobs()
Returns a list of all jobs.
|
java.util.Set<Pipeline> |
getPipelines()
Returns a collection of all pipelines.
|
void |
remove(Asset asset)
Removes the specified asset from Ameto.
|
void |
remove(ProcessedAsset asset)
Removes the specified processed asset from Ameto.
|
public Pipeline add(java.lang.String name, Operator firstOperator, Operator... operators)
name - Pipeline namefirstOperator - First processing stepoperators - Subsequent processing stepsAmetoException - if communication with the API was not possible or the response returned an error.public java.util.Set<Pipeline> getPipelines()
AmetoException - if communication with the API was not possible or the response returned an error.public java.util.Set<Asset> getAssets()
AmetoException - if the asset list could not be retrievedpublic Asset add(java.nio.file.Path file)
public Asset add(java.io.InputStream assetContent, java.lang.String name)
assetContent - Binary content of the assetname - Name of the asset.AmetoException - if an error occurs during asset uploadpublic void remove(Asset asset)
asset - Asset to be deletedpublic void remove(ProcessedAsset asset)
asset - Processed asset to be deletedpublic java.util.List<Job> getJobs()
AmetoException - if the request could not be sent