public class ThreddsController extends Object
| Constructor and Description |
|---|
ThreddsController(String path,
String targetToken) |
| Modifier and Type | Method and Description |
|---|---|
org.gcube.data.transfer.model.plugins.thredds.ThreddsCatalog |
createCatalog(String name) |
void |
createEmptyFolder(String targetPath) |
void |
deleteThreddsFile(String location) |
boolean |
existsThreddsFile(String location) |
org.gcube.data.transfer.model.plugins.thredds.ThreddsCatalog |
getCatalog() |
org.gcube.data.transfer.model.RemoteFileDescriptor |
getFileDescriptor() |
org.gcube.data.transfer.model.RemoteFileDescriptor |
getFileDescriptor(String path) |
InputStream |
getInputStream(String path) |
org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo |
getThreddsInfo() |
void |
lockFolder(String processId) |
String |
readThreddsFile(String location) |
org.gcube.data.transfer.library.TransferResult |
transferFile(org.gcube.data.transfer.model.Destination dest,
URL url,
Set<org.gcube.data.transfer.model.PluginInvocation> invocations) |
public ThreddsController(String path, String targetToken) throws InternalException
InternalExceptionpublic final org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo getThreddsInfo()
public void lockFolder(String processId) throws UnableToLockException
UnableToLockExceptionpublic void deleteThreddsFile(String location) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic boolean existsThreddsFile(String location)
public String readThreddsFile(String location) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic void createEmptyFolder(String targetPath) throws InternalException
InternalExceptionpublic org.gcube.data.transfer.model.plugins.thredds.ThreddsCatalog createCatalog(String name) throws InternalException
InternalExceptionpublic org.gcube.data.transfer.model.plugins.thredds.ThreddsCatalog getCatalog()
public org.gcube.data.transfer.model.RemoteFileDescriptor getFileDescriptor()
throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic org.gcube.data.transfer.model.RemoteFileDescriptor getFileDescriptor(String path) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic InputStream getInputStream(String path) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic org.gcube.data.transfer.library.TransferResult transferFile(org.gcube.data.transfer.model.Destination dest,
URL url,
Set<org.gcube.data.transfer.model.PluginInvocation> invocations)
throws org.gcube.data.transfer.library.faults.InvalidSourceException,
org.gcube.data.transfer.library.faults.SourceNotSetException,
org.gcube.data.transfer.library.faults.FailedTransferException,
org.gcube.data.transfer.library.faults.InitializationException,
org.gcube.data.transfer.library.faults.InvalidDestinationException,
org.gcube.data.transfer.library.faults.DestinationNotSetException
org.gcube.data.transfer.library.faults.InvalidSourceExceptionorg.gcube.data.transfer.library.faults.SourceNotSetExceptionorg.gcube.data.transfer.library.faults.FailedTransferExceptionorg.gcube.data.transfer.library.faults.InitializationExceptionorg.gcube.data.transfer.library.faults.InvalidDestinationExceptionorg.gcube.data.transfer.library.faults.DestinationNotSetExceptionCopyright © 2021. All Rights Reserved.