public class Commons extends Object
| Constructor and Description |
|---|
Commons() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanupFolder(String toCleanPath,
String destinationToken) |
static void |
deleteThreddsFile(String location) |
static org.gcube.data.transfer.library.DataTransferClient |
getDTClient(String threddsHostName) |
static String |
getThreddsHost() |
static org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo |
getThreddsInfo() |
static void |
lockFolder(String folderPath,
String processId) |
static String |
readThreddsFile(String location) |
public static String getThreddsHost()
public static org.gcube.data.transfer.library.DataTransferClient getDTClient(String threddsHostName) throws org.gcube.data.transfer.library.faults.UnreachableNodeException, org.gcube.data.transfer.library.faults.ServiceNotFoundException
org.gcube.data.transfer.library.faults.UnreachableNodeExceptionorg.gcube.data.transfer.library.faults.ServiceNotFoundExceptionpublic static String readThreddsFile(String location) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic static void deleteThreddsFile(String location) throws RemoteFileNotFoundException
RemoteFileNotFoundExceptionpublic static final org.gcube.data.transfer.model.plugins.thredds.ThreddsInfo getThreddsInfo()
public static void lockFolder(String folderPath, String processId) throws UnableToLockException
UnableToLockExceptionCopyright © 2021. All Rights Reserved.