public class MotuClient extends PlainMotuClient
| Constructor and Description |
|---|
MotuClient(String serviceURL) |
| Modifier and Type | Method and Description |
|---|---|
Collection<StatusModeResponse> |
checkAllStatus(Collection<StatusModeResponse> requests)
Retrieves the status of all given requests.
|
ProductMetadataInfo |
describeProduct(String service,
String product) |
void |
downloadProduct(DownloadRequest request)
Download the dataset corresponding to the given request, by splitting
requests if needed.
|
File |
downloadProduct(DownloadRequest request,
File destFile,
String... splitParameters)
Download the dataset corresponding to the given request, by splitting
requests if needed.
|
File |
downloadProduct(DownloadRequest request,
String... splitParameters) |
MotuCatalogue |
getCatalogue()
Query the server to get a catalog of available services and associated
products.
|
Long |
getPreferredDownloadSize()
Return the preferred download size set for this client.
|
RequestSize |
getSize(DownloadRequest request)
A more robust implementation of the super.getSize, as it makes sure that
all parameters are set.
|
RequestSize |
getSize(String service,
String product)
Return the full size of the given product, within the given service.
|
Collection<String> |
listProductsNames(String service)
Return the list of products (i.e.
|
Collection<ServiceMetadata> |
listServices()
Return the list of services exposed by this Motu server
|
void |
setPreferredDownloadSize(Long preferredDownloadSize)
Set the preferred size of chunks.
|
checkStatus, describeCoverage, describeProduct, getCasProxy, getServiceURL, queueProductDownload, setPassword, setUsername, waitForCompletepublic MotuClient(String serviceURL)
serviceURL - the URL of the Motu server.public Long getPreferredDownloadSize()
public void setPreferredDownloadSize(Long preferredDownloadSize)
preferredDownloadSize - the preferred size of downloaded chunks.public void downloadProduct(DownloadRequest request) throws Exception
request - the request for dataset.Exceptionpublic RequestSize getSize(DownloadRequest request) throws Exception
getSize in class PlainMotuClientrequest - all parameters also accepted by "downloadProdyct"Exceptionpublic RequestSize getSize(String service, String product) throws Exception
service - product - Exceptionpublic ProductMetadataInfo describeProduct(String service, String product) throws Exception
Exceptionpublic File downloadProduct(DownloadRequest request, File destFile, String... splitParameters) throws Exception
request - the request for dataset.splitParameters - the parameters along which the request has to be split.Exceptionpublic File downloadProduct(DownloadRequest request, String... splitParameters) throws Exception
Exceptionpublic Collection<ServiceMetadata> listServices() throws Exception
Exceptionpublic Collection<String> listProductsNames(String service) throws Exception
service - Exceptionpublic Collection<StatusModeResponse> checkAllStatus(Collection<StatusModeResponse> requests) throws Exception
requests - the requests whose status has to be checked.Exceptionpublic MotuCatalogue getCatalogue() throws Exception
ExceptionCopyright © 2017. All Rights Reserved.